|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.EntityImpl
This is the base implementation of the Business Smart Component (BSC) entity interface. For each BSC Entity derived interface, there will be a corresponding BSC EntityImpl with business methods that are mirrored. It also provides storage for an EntityContext and an implementation of the Set and Get Entity Context methods.
Entity
,
Serialized FormField Summary | |
String |
__classIdentifier
|
SmartEntityReference |
__containingEntity
|
Object |
__mapKey
|
Long |
__sequenceNumber
|
EntityContext |
_ctx
|
protected Context |
_environmentNamingContext
|
protected Hashtable |
_environmentPropertyCache
|
boolean |
_isDirty
|
protected SmartBMP |
_smartBMP
|
Constructor Summary | |
EntityImpl()
EntityImpl constructor. |
Method Summary | |
protected void |
bscInitializeAttributes(SmartKey pk)
Initialize this object's attributes. |
void |
clearRelationalBinding(String attributeIdentifier,
Collection collection)
|
void |
clearRelationalBinding(String attributeIdentifier,
Collection collection,
Object o)
|
void |
clearRelationalBinding(String attributeIdentifier,
Map map)
|
void |
clearRelationalBinding(String attributeIdentifier,
Map map,
Object key)
|
protected Collection |
doRelationalBinding(String attributeIdentifier,
Collection collection)
Add relational information to each element in a collection, AND synchronize the collection with the persistence cache This feature is implemented by a plugin and by default is turned off |
protected Map |
doRelationalBinding(String attributeIdentifier,
Map map)
Add relational information to each element in a map, AND synchronize the map with the persistence cache This feature is implemented by a plugin and by default is turned off |
protected Belonging |
doRelationalBindingOnElement(String attributeIdentifier,
Belonging value)
Add relational information to a belonging This feature is implemented by a plugin and by default is turned off |
protected EJBObject |
doRelationalBindingOnElement(String attributeIdentifier,
EJBObject value)
Add relational information to an EJBObject This feature is implemented by a plugin and by default is turned off |
protected Object |
doRelationalBindingOnElement(String attributeIdentifier,
Object value)
Add relational information to a dependent object. |
protected Belonging |
doRelationalBindingOnSingleton(String attributeIdentifier,
Belonging value)
Add relational information to a belonging This feature is implemented by a plugin and by default is turned off |
protected EJBObject |
doRelationalBindingOnSingleton(String attributeIdentifier,
EJBObject ejbObject)
Add relational information to an EJBObject This feature is implemented by a plugin and by default is turned off |
protected Object |
doRelationalBindingOnSingleton(String attributeIdentifier,
Object value)
Add relational information to a dependent object. |
protected Object |
doRelationalBindingWithMapKey(String attributeIdentifier,
Belonging belonging,
Object key)
Add relational information to an element in a map, AND synchronize the element with the persistence cache This feature is implemented by a plugin and by default is turned off |
protected EJBObject |
doRelationalBindingWithMapKey(String attributeIdentifier,
EJBObject ejbObject,
Object key)
Add relational information to an element in a map, AND synchronize the element with the persistence cache This feature is implemented by a plugin and by default is turned off |
protected Object |
doRelationalBindingWithMapKey(String attributeIdentifier,
Object object,
Object key)
Add relational information to an element in a map, AND synchronize the element with the persistence cache This feature is implemented by a plugin and by default is turned off |
void |
ejbActivate()
ejbActivate method. |
SmartKey |
ejbCreate(SmartKey pk)
ejbCreate method. |
Enumeration |
ejbFindAll()
ejbFindAll method. |
SmartKey |
ejbFindByPrimaryKey(SmartKey pk)
ejbFindByPrimaryKey method. |
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(SmartKey key)
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
protected Collection |
enumerateRelationalBinding(String attributeIdentifier,
Collection collection)
Add relational information to each element in a collection, but do not synchronize the collection with the persistence cache This feature is implemented by a plugin and by default is turned off |
protected Map |
enumerateRelationalBinding(String attributeIdentifier,
Map map)
Add relational information to each element in a map, but do not synchronize the map with the persistence cache This feature is implemented by a plugin and by default is turned off |
String |
get__classIdentifier()
Get class identifier for this object (used to persist subclasses in a single collection or map) |
Belonging |
get__containingBelonging()
Get foreign key information about the bean that contains this object |
EJBObject |
get__containingEntity()
Get foreign key information about the bean that contains this object |
SmartEntityReference |
get__containingEntityReference()
|
Object |
get__mapKey()
get map key |
Long |
get__sequenceNumber()
Get the sequencer number |
EntityContext |
getEntityContext()
getEntityContext method. |
protected Context |
getEnvironmentNamingContext()
Returns the bean's environment naming context. |
Object |
getEnvironmentProperty(String propertyName)
This method returns the value of the specified environment property. |
Object |
getEnvironmentProperty(String propertyName,
Object defaultValue)
This method returns the value of the specified environment property or the specified default value if the environment property is not found. |
protected Hashtable |
getEnvironmentPropertyCache()
Returns the bean's environment property cache |
PersistenceHelperPlugin |
getPersistenceHelperPlugin()
Returns a PersistenceHelperPlugin object for the entity bean. |
protected SmartBMP |
getSmartBMP()
Returns the smartBMP cache. |
protected SmartBMP |
initSmartBMP()
Attempts to initialize the SmartBMP cached information by looking up "SmartBMPClass" in the environment properties. |
boolean |
isModified()
This method is used by some containers to evaluate if the bean has been modified and it must be persisted. |
protected void |
set__classIdentifier(String classIdentifier)
Derived classes use this to set the class identifier |
void |
set__containingBelonging(Belonging belonging)
Provides foreign key information about the bean that contains this object |
void |
set__containingEntity(EJBObject containingEntity)
Provides foreign key information about the bean that contains this object |
void |
set__containingEntityReference(SmartEntityReference smartEntityReference)
|
void |
set__mapKey(Object mapKey)
Provides map key information |
void |
setEntityContext(EntityContext ctx)
setEntityContext method. |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public String __classIdentifier
public SmartEntityReference __containingEntity
public Object __mapKey
public Long __sequenceNumber
public EntityContext _ctx
protected transient Context _environmentNamingContext
protected transient Hashtable _environmentPropertyCache
public transient boolean _isDirty
protected transient SmartBMP _smartBMP
Constructor Detail |
public EntityImpl()
Method Detail |
protected void bscInitializeAttributes(SmartKey pk) throws CreateException
CreateException
public void clearRelationalBinding(String attributeIdentifier, Collection collection)
public void clearRelationalBinding(String attributeIdentifier, Collection collection, Object o)
public void clearRelationalBinding(String attributeIdentifier, Map map)
public void clearRelationalBinding(String attributeIdentifier, Map map, Object key)
protected Collection doRelationalBinding(String attributeIdentifier, Collection collection)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection
- the target collection
protected Map doRelationalBinding(String attributeIdentifier, Map map)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersmap
- the target map
protected Belonging doRelationalBindingOnElement(String attributeIdentifier, Belonging value)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellers
protected EJBObject doRelationalBindingOnElement(String attributeIdentifier, EJBObject value)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellers
protected Object doRelationalBindingOnElement(String attributeIdentifier, Object value)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersvalue
- instance of a dependent object
protected Belonging doRelationalBindingOnSingleton(String attributeIdentifier, Belonging value)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellers
protected EJBObject doRelationalBindingOnSingleton(String attributeIdentifier, EJBObject ejbObject)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersejbObject
- instance of an EJB object
protected Object doRelationalBindingOnSingleton(String attributeIdentifier, Object value)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersvalue
- instance of a dependent object
protected Object doRelationalBindingWithMapKey(String attributeIdentifier, Belonging belonging, Object key)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellers
protected EJBObject doRelationalBindingWithMapKey(String attributeIdentifier, EJBObject ejbObject, Object key)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellers
protected Object doRelationalBindingWithMapKey(String attributeIdentifier, Object object, Object key)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellers
public void ejbActivate() throws EJBException
ejbActivate
in interface EntityBean
EJBException
public SmartKey ejbCreate(SmartKey pk) throws CreateException, EJBException
CreateException
EJBException
public Enumeration ejbFindAll() throws FinderException, EJBException
FinderException
EJBException
public SmartKey ejbFindByPrimaryKey(SmartKey pk) throws FinderException, EJBException
FinderException
EJBException
public void ejbLoad() throws EJBException
ejbLoad
in interface EntityBean
EJBException
public void ejbPassivate() throws EJBException
ejbPassivate
in interface EntityBean
EJBException
public void ejbPostCreate(SmartKey key) throws CreateException, EJBException
CreateException
EJBException
public void ejbRemove() throws RemoveException, EJBException
ejbRemove
in interface EntityBean
RemoveException
EJBException
public void ejbStore() throws EJBException
ejbStore
in interface EntityBean
EJBException
protected Collection enumerateRelationalBinding(String attributeIdentifier, Collection collection)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection
- the target collection
protected Map enumerateRelationalBinding(String attributeIdentifier, Map map)
attributeIdentifier
- identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersmap
- the target map
public String get__classIdentifier()
get__classIdentifier
in interface RelationalReference
public Belonging get__containingBelonging()
get__containingBelonging
in interface RelationalReference
ClassCastException
- source object is not an instance of the remote interface of the containing class.public EJBObject get__containingEntity()
get__containingEntity
in interface RelationalReference
public SmartEntityReference get__containingEntityReference()
public Object get__mapKey()
RelationalReference
get__mapKey
in interface RelationalReference
public Long get__sequenceNumber()
get__sequenceNumber
in interface RelationalReference
public EntityContext getEntityContext()
protected Context getEnvironmentNamingContext() throws NamingException
NamingException
- - if a naming exception is encounteredpublic Object getEnvironmentProperty(String propertyName) throws NamingException
NamingException
- - if a naming exception is encounteredpublic Object getEnvironmentProperty(String propertyName, Object defaultValue) throws NamingException
NamingException
- - if a naming exception is encounteredprotected Hashtable getEnvironmentPropertyCache()
public PersistenceHelperPlugin getPersistenceHelperPlugin()
protected SmartBMP getSmartBMP()
protected SmartBMP initSmartBMP() throws SystemException
SystemException
public boolean isModified()
protected void set__classIdentifier(String classIdentifier)
public void set__containingBelonging(Belonging belonging)
set__containingBelonging
in interface RelationalReference
public void set__containingEntity(EJBObject containingEntity)
set__containingEntity
in interface RelationalReference
ClassCastException
- source object is not an instance of %EntityType%public void set__containingEntityReference(SmartEntityReference smartEntityReference)
public void set__mapKey(Object mapKey)
RelationalReference
set__mapKey
in interface RelationalReference
mapKey
- the key if this object is used in a mappublic void setEntityContext(EntityContext ctx) throws EJBException
setEntityContext
in interface EntityBean
EJBException
public void unsetEntityContext() throws EJBException
unsetEntityContext
in interface EntityBean
EJBException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |