| 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.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| Field Summary | |
 java.lang.String | 
__classIdentifier
 | 
 SmartEntityReference | 
__containingEntity
 | 
 java.lang.Object | 
__mapKey
 | 
 java.lang.Long | 
__sequenceNumber
 | 
 com.beasys.commerce.foundation.EntityContext | 
_ctx
 | 
protected  javax.naming.Context | 
_environmentNamingContext
 | 
protected  java.util.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(java.lang.String attributeIdentifier,
                       java.util.Collection collection)
 | 
 void | 
clearRelationalBinding(java.lang.String attributeIdentifier,
                       java.util.Collection collection,
                       java.lang.Object o)
 | 
 void | 
clearRelationalBinding(java.lang.String attributeIdentifier,
                       java.util.Map map)
 | 
 void | 
clearRelationalBinding(java.lang.String attributeIdentifier,
                       java.util.Map map,
                       java.lang.Object key)
 | 
protected  java.util.Collection | 
doRelationalBinding(java.lang.String attributeIdentifier,
                    java.util.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  java.util.Map | 
doRelationalBinding(java.lang.String attributeIdentifier,
                    java.util.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(java.lang.String attributeIdentifier,
                             Belonging value)
Add relational information to a belonging This feature is implemented by a plugin and by default is turned off  | 
protected  com.beasys.commerce.foundation.EJBObject | 
doRelationalBindingOnElement(java.lang.String attributeIdentifier,
                             com.beasys.commerce.foundation.EJBObject value)
Add relational information to an EJBObject This feature is implemented by a plugin and by default is turned off  | 
protected  java.lang.Object | 
doRelationalBindingOnElement(java.lang.String attributeIdentifier,
                             java.lang.Object value)
Add relational information to a dependent object.  | 
protected  Belonging | 
doRelationalBindingOnSingleton(java.lang.String attributeIdentifier,
                               Belonging value)
Add relational information to a belonging This feature is implemented by a plugin and by default is turned off  | 
protected  com.beasys.commerce.foundation.EJBObject | 
doRelationalBindingOnSingleton(java.lang.String attributeIdentifier,
                               com.beasys.commerce.foundation.EJBObject ejbObject)
Add relational information to an EJBObject This feature is implemented by a plugin and by default is turned off  | 
protected  java.lang.Object | 
doRelationalBindingOnSingleton(java.lang.String attributeIdentifier,
                               java.lang.Object value)
Add relational information to a dependent object.  | 
protected  java.lang.Object | 
doRelationalBindingWithMapKey(java.lang.String attributeIdentifier,
                              Belonging belonging,
                              java.lang.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  com.beasys.commerce.foundation.EJBObject | 
doRelationalBindingWithMapKey(java.lang.String attributeIdentifier,
                              com.beasys.commerce.foundation.EJBObject ejbObject,
                              java.lang.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  java.lang.Object | 
doRelationalBindingWithMapKey(java.lang.String attributeIdentifier,
                              java.lang.Object object,
                              java.lang.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.  | 
 java.util.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  java.util.Collection | 
enumerateRelationalBinding(java.lang.String attributeIdentifier,
                           java.util.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  java.util.Map | 
enumerateRelationalBinding(java.lang.String attributeIdentifier,
                           java.util.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  | 
 java.lang.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  | 
 com.beasys.commerce.foundation.EJBObject | 
get__containingEntity()
Get foreign key information about the bean that contains this object  | 
 SmartEntityReference | 
get__containingEntityReference()
 | 
 java.lang.Object | 
get__mapKey()
get map key  | 
 java.lang.Long | 
get__sequenceNumber()
Get the sequencer number  | 
 com.beasys.commerce.foundation.EntityContext | 
getEntityContext()
getEntityContext method.  | 
protected  javax.naming.Context | 
getEnvironmentNamingContext()
Returns the bean's environment naming context.  | 
 java.lang.Object | 
getEnvironmentProperty(java.lang.String propertyName)
This method returns the value of the specified environment property.  | 
 java.lang.Object | 
getEnvironmentProperty(java.lang.String propertyName,
                       java.lang.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  java.util.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(java.lang.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(com.beasys.commerce.foundation.EJBObject containingEntity)
Provides foreign key information about the bean that contains this object  | 
 void | 
set__containingEntityReference(SmartEntityReference smartEntityReference)
 | 
 void | 
set__mapKey(java.lang.Object mapKey)
Provides map key information  | 
 void | 
setEntityContext(com.beasys.commerce.foundation.EntityContext ctx)
setEntityContext method.  | 
 void | 
unsetEntityContext()
unsetEntityContext method.  | 
| Field Detail | 
public transient boolean _isDirty
public com.beasys.commerce.foundation.EntityContext _ctx
protected transient SmartBMP _smartBMP
protected transient javax.naming.Context _environmentNamingContext
protected transient java.util.Hashtable _environmentPropertyCache
public SmartEntityReference __containingEntity
public java.lang.Object __mapKey
public java.lang.Long __sequenceNumber
public java.lang.String __classIdentifier
| Constructor Detail | 
public EntityImpl()
| Method Detail | 
protected void bscInitializeAttributes(SmartKey pk)
                                throws javax.ejb.CreateException
public void ejbActivate()
                 throws javax.ejb.EJBException
public SmartKey ejbCreate(SmartKey pk)
                   throws javax.ejb.CreateException,
                          javax.ejb.EJBException
public java.util.Enumeration ejbFindAll()
                                 throws com.beasys.commerce.foundation.FinderException,
                                        javax.ejb.EJBException
public SmartKey ejbFindByPrimaryKey(SmartKey pk)
                             throws com.beasys.commerce.foundation.FinderException,
                                    javax.ejb.EJBException
public void ejbLoad()
             throws javax.ejb.EJBException
public void ejbPassivate()
                  throws javax.ejb.EJBException
public void ejbPostCreate(SmartKey key)
                   throws javax.ejb.CreateException,
                          javax.ejb.EJBException
public void ejbRemove()
               throws com.beasys.commerce.foundation.RemoveException,
                      javax.ejb.EJBException
public void ejbStore()
              throws javax.ejb.EJBException
public void setEntityContext(com.beasys.commerce.foundation.EntityContext ctx)
                      throws javax.ejb.EJBException
public void unsetEntityContext()
                        throws javax.ejb.EJBException
public com.beasys.commerce.foundation.EntityContext getEntityContext()
protected final javax.naming.Context getEnvironmentNamingContext()
                                                          throws javax.naming.NamingException
javax.naming.NamingException - - if a naming exception is encounteredprotected final java.util.Hashtable getEnvironmentPropertyCache()
public final java.lang.Object getEnvironmentProperty(java.lang.String propertyName)
                                              throws javax.naming.NamingException
javax.naming.NamingException - - if a naming exception is encountered
public final java.lang.Object getEnvironmentProperty(java.lang.String propertyName,
                                                     java.lang.Object defaultValue)
                                              throws javax.naming.NamingException
javax.naming.NamingException - - if a naming exception is encounteredprotected final SmartBMP getSmartBMP()
protected final SmartBMP initSmartBMP()
                               throws SystemException
public final boolean isModified()
public java.lang.Long get__sequenceNumber()
get__sequenceNumber in interface RelationalReferencepublic java.lang.Object get__mapKey()
RelationalReferenceget__mapKey in interface RelationalReferencecom.beasys.commerce.foundation.RelationalReferencejava.lang.ClassCastException - source object is not an instance of the remote interface of the containing class.public void set__mapKey(java.lang.Object mapKey)
RelationalReferenceset__mapKey in interface RelationalReferencecom.beasys.commerce.foundation.RelationalReferencemapKey - the key if this object is used in a mappublic SmartEntityReference get__containingEntityReference()
public void set__containingEntityReference(SmartEntityReference smartEntityReference)
public void set__containingEntity(com.beasys.commerce.foundation.EJBObject containingEntity)
set__containingEntity in interface RelationalReferenceejbObject - remote interface of the containing beanjava.lang.ClassCastException - source object is not an instance of %EntityType%public com.beasys.commerce.foundation.EJBObject get__containingEntity()
get__containingEntity in interface RelationalReferenceprotected void set__classIdentifier(java.lang.String classIdentifier)
public java.lang.String get__classIdentifier()
get__classIdentifier in interface RelationalReferencepublic void set__containingBelonging(Belonging belonging)
set__containingBelonging in interface RelationalReferenceejbObject - remote interface of the containing beanpublic Belonging get__containingBelonging()
get__containingBelonging in interface RelationalReferencejava.lang.ClassCastException - source object is not an instance of the remote interface of the containing class.
protected final java.lang.Object doRelationalBindingOnElement(java.lang.String attributeIdentifier,
                                                              java.lang.Object value)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersvalue - instance of a dependent objectentityImpl - implementation of an entity bean
protected final Belonging doRelationalBindingOnElement(java.lang.String attributeIdentifier,
                                                       Belonging value)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersbelonging - instance of a belongingentityImpl - implementation of an entity bean
protected final com.beasys.commerce.foundation.EJBObject doRelationalBindingOnElement(java.lang.String attributeIdentifier,
                                                                                      com.beasys.commerce.foundation.EJBObject value)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersejbObject - instance of an EJB objectentityImpl - implementation of an entity bean
protected final java.lang.Object doRelationalBindingOnSingleton(java.lang.String attributeIdentifier,
                                                                java.lang.Object value)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersvalue - instance of a dependent objectentityImpl - implementation of an entity bean
protected final Belonging doRelationalBindingOnSingleton(java.lang.String attributeIdentifier,
                                                         Belonging value)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersbelonging - instance of a belongingentityImpl - implementation of an entity bean
protected final com.beasys.commerce.foundation.EJBObject doRelationalBindingOnSingleton(java.lang.String attributeIdentifier,
                                                                                        com.beasys.commerce.foundation.EJBObject ejbObject)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersejbObject - instance of an EJB objectentityImpl - implementation of an entity bean
protected final java.lang.Object doRelationalBindingWithMapKey(java.lang.String attributeIdentifier,
                                                               java.lang.Object object,
                                                               java.lang.Object key)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection - the target collection
protected final com.beasys.commerce.foundation.EJBObject doRelationalBindingWithMapKey(java.lang.String attributeIdentifier,
                                                                                       com.beasys.commerce.foundation.EJBObject ejbObject,
                                                                                       java.lang.Object key)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection - the target collection
protected final java.lang.Object doRelationalBindingWithMapKey(java.lang.String attributeIdentifier,
                                                               Belonging belonging,
                                                               java.lang.Object key)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection - the target collection
protected final java.util.Collection doRelationalBinding(java.lang.String attributeIdentifier,
                                                         java.util.Collection collection)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection - the target collection
protected final java.util.Map doRelationalBinding(java.lang.String attributeIdentifier,
                                                  java.util.Map map)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersmap - the target map
protected final java.util.Collection enumerateRelationalBinding(java.lang.String attributeIdentifier,
                                                                java.util.Collection collection)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellerscollection - the target collection
protected final java.util.Map enumerateRelationalBinding(java.lang.String attributeIdentifier,
                                                         java.util.Map map)
attributeIdentifier - identifier for an attribute on a bean e.g. examples.buybeans.BeanieHat.numberOfPropellersmap - the target map
public final void clearRelationalBinding(java.lang.String attributeIdentifier,
                                         java.util.Collection collection)
public final void clearRelationalBinding(java.lang.String attributeIdentifier,
                                         java.util.Collection collection,
                                         java.lang.Object o)
public final void clearRelationalBinding(java.lang.String attributeIdentifier,
                                         java.util.Map map,
                                         java.lang.Object key)
public final void clearRelationalBinding(java.lang.String attributeIdentifier,
                                         java.util.Map map)
public final PersistenceHelperPlugin getPersistenceHelperPlugin()
  | 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||