BEA Systems, Inc.

com.beasys.commerce.foundation
Interface SmartEntityReference

All Known Implementing Classes:
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(javax.ejb.EJBObject ejbObject)
           
 int compareTo(SmartEntityReference smartEntityReference)
           
 javax.ejb.EJBObject getEJBObject()
          Returns the EJBObject.
 java.lang.String getJNDIName()
           
 void setEJBObject(javax.ejb.EJBObject ejbObject)
           
 

Method Detail

getEJBObject

public javax.ejb.EJBObject getEJBObject()
Returns the EJBObject. If the SmartHandle is empty, it returns null.

setEJBObject

public void setEJBObject(javax.ejb.EJBObject ejbObject)

getJNDIName

public java.lang.String getJNDIName()

compareTo

public int compareTo(javax.ejb.EJBObject ejbObject)

compareTo

public int compareTo(SmartEntityReference smartEntityReference)

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved