|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.property.DirectPropertyManagerBean
A session bean that provides ConfigurableEntity functionality with minimal access through entity beans. This is accomplished by accessing the EntityPropertyManager directly, and reduces ejb locks so that there is less of a risk of deadlock.
Constructor Summary | |
DirectPropertyManagerBean()
|
Method Summary | |
void |
ejbActivate()
This method is required by the EJB Specification, but is not used by this class. |
void |
ejbCreate()
Creates the session bean. |
void |
ejbPassivate()
This method is required by the EJB Specification, but is not used by this class. |
void |
ejbRemove()
This method is required by the EJB Specification, but is not used by this class. |
java.lang.Object |
getDefaultValue(java.lang.String propertySet,
java.lang.String propertyName)
Retrieves the default value of a property |
ConfigurableEntity |
getEntity(java.lang.String profileKey,
java.lang.String profileType)
Instantiates a ConfigurableEntity based on the pk and profileType, and returns it cast as a ConfigurableEntity. |
long |
getEntityId(java.lang.String pk,
java.lang.String profileType)
Retrieves the unique numeric id of a configurable entity |
java.lang.Object |
getExplicitProperty(java.lang.String profileKey,
java.lang.String profileType,
java.lang.String propertyName)
Retrieve an explicit property from a configurable entity, if it exists. |
java.util.Map |
getProperties(java.lang.String pk,
java.lang.String profileType,
java.lang.String successorPk,
java.lang.String successorProfileType)
Retrieve all set properties for a particular ConfigurableEntity, following the successor chains as necessary. |
java.lang.Object |
getProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String successorPk,
java.lang.String successorProfileType,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object defaultValue)
Retrieve a property from a configurable entity. |
java.lang.Object |
removeProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String propertySet,
java.lang.String propertyName)
Removes the property from the given configurable entity. |
void |
setProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Sets a property for a configurable entity. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
static java.lang.String |
upcaseFirst(java.lang.String s)
Make the first letter of a string uppercase |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DirectPropertyManagerBean()
Method Detail |
public java.lang.Object getDefaultValue(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
propertySet
- the property set to look inpropertyName
- the name of the propertypublic java.util.Map getProperties(java.lang.String pk, java.lang.String profileType, java.lang.String successorPk, java.lang.String successorProfileType) throws java.rmi.RemoteException
pk
- the profile key of the entityprofileType
- the profile type of the entitysuccessorPk
- the profile key of an explicit successor to use (can be null)successorProfileType
- the profile type for an explicity successor (can be null)public java.lang.Object getProperty(java.lang.String pk, java.lang.String profileType, java.lang.String successorPk, java.lang.String successorProfileType, java.lang.String propertySet, java.lang.String propertyName, java.lang.Object defaultValue) throws java.rmi.RemoteException
pk
- the profile key of the entityprofileType
- the profile type of the entitysuccessorPk
- the profile key of the explicit successorsuccessorProfileType
- the type of the explicit successorpropertySet
- the property set to look inpropertyName
- the name of the property to retrievedefaultValue
- a value to return if none is foundpublic java.lang.Object getExplicitProperty(java.lang.String profileKey, java.lang.String profileType, java.lang.String propertyName) throws java.rmi.RemoteException
profileKey
- the profile key of the entityprofileType
- the profile type of the entitypropertyName
- the name of the property to retrievepublic void setProperty(java.lang.String pk, java.lang.String profileType, java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value) throws java.rmi.RemoteException
pk
- the key of the entity to updateprofileType
- the profile type of the entitypropertySet
- the property set of the property to setpropertyName
- the name of the property to setvalue
- the value to setpublic java.lang.Object removeProperty(java.lang.String pk, java.lang.String profileType, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
pk
- the key of the entity to updateprofileType
- the profile type of the entitypropertySet
- the property set of the property to setpropertyName
- the name of the property to setpublic long getEntityId(java.lang.String pk, java.lang.String profileType) throws java.rmi.RemoteException
pk
- the key of the entityprofileType
- the type of entitypublic ConfigurableEntity getEntity(java.lang.String profileKey, java.lang.String profileType) throws java.rmi.RemoteException
pk
- the key of the entity to retrieveprofileType
- the type to retrieve it aspublic static java.lang.String upcaseFirst(java.lang.String s)
public void ejbCreate()
public void ejbActivate()
public void ejbRemove()
public void ejbPassivate()
public final void setSessionContext(javax.ejb.SessionContext ctx)
ctx
- Context for session
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |