|
© 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.SessionImpl
This is the base implementation of the Business Smart Component (BSC) Session interface. For each BSC Session derived interface, there will be a corresponding BSC SessionImpl with business methods that are mirrored. It also provides storage for an SessionContext and an implementation of the Set and Get Session Context methods.
Session Beans also implement the SmartUpdate API. See the EntityImpl
comments for more details. Although SmartUpdate is intended primarily
for BMP, Session Beans may find it useful as well.
,
Serialized FormField Summary | |
SessionContext |
_ctx
|
protected Context |
_environmentNamingContext
|
protected Hashtable |
_environmentPropertyCache
|
protected boolean |
_isDirty
|
Constructor Summary | |
SessionImpl()
SessionImpl constructor. |
Method Summary | |
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. |
void |
ejbCreate()
ejbCreate method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate()
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove 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 |
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()
Instantiates PersistenceHelperPlugin based on "...PersistenceHelperPlugin" property in commerce.properties file. |
SessionContext |
getSessionContext()
getSessionContext method. |
void |
setSessionContext(SessionContext ctx)
setSessionContext method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public SessionContext _ctx
protected transient Context _environmentNamingContext
protected transient Hashtable _environmentPropertyCache
protected transient boolean _isDirty
Constructor Detail |
public SessionImpl()
Method Detail |
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 SessionBean
EJBException
public void ejbCreate() throws CreateException, EJBException
CreateException
EJBException
public void ejbPassivate() throws EJBException
ejbPassivate
in interface SessionBean
EJBException
public void ejbPostCreate() throws CreateException, EJBException
CreateException
EJBException
public void ejbRemove() throws EJBException
ejbRemove
in interface SessionBean
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
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()
public SessionContext getSessionContext()
public void setSessionContext(SessionContext ctx) throws EJBException
setSessionContext
in interface SessionBean
EJBException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |