Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2005 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.beasys.commerce.foundation
Interface SmartEntityReference

All Known Implementing Classes:
  com.beasys.commerce.foundation.plugin.bmp.BMPSmartEntityReference, PersistenceHelper.DefaultSmartEntityReference

public interface SmartEntityReference

A smart handle optimizes the the use of handles for entity beans by storing a local copy of the primary key (SmartKey) for the BSC Entity. This optimizes one of the most commonly performed operations of retrieving the key without accessing the remote object. This also makes it possible to compare the entities referenced by the smart handles.

See Also:
  `Entity`

Method Summary
`int` | `compareTo(EJBObject ejbObject)`
`int` | `compareTo(SmartEntityReference smartEntityReference)`
`EJBObject` | `getEJBObject()` Returns the EJBObject.
`String` | `getJNDIName()`
`void` | `setEJBObject(EJBObject ejbObject)`

Method Detail

### compareTo

    public int compareTo(EJBObject ejbObject)

### compareTo

    public int compareTo(SmartEntityReference smartEntityReference)

### getEJBObject

    public EJBObject getEJBObject()

  Returns the EJBObject. If the SmartHandle is empty, it returns null.

### getJNDIName

    public String getJNDIName()

### setEJBObject

    public void setEJBObject(EJBObject ejbObject)

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2005 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 BEA Systems, Inc. All Rights Reserved