|
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.EntityImpl | +--com.beasys.commerce.foundation.ConfigurableEntityImpl
This is the implementation of the Configurable Entity that combines the pluggable method features of Business Policy, Runtime Configuration, and Persistence. For each remote interface that is derived from the ConfigurableEntity, there must be an equivalent ConfigurableEntityImpl that mirrors its methods.
ConfigurableEntity
, Serialized FormFields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier,
__containingEntity,
__mapKey,
__sequenceNumber,
_ctx,
_isDirty |
Constructor Summary | |
ConfigurableEntityImpl()
Default constructor. |
Method Summary | |
void |
addBusinessPolicy(java.lang.String policyKey,
BusinessPolicy policy)
Set the named policy on the object. |
void |
addCachedPropertyMapped(java.lang.String scope,
java.lang.String key,
java.lang.String mapKey,
java.lang.Object value)
Add the specified value to the cache. |
void |
addCachedPropertyValue(java.lang.String scope,
java.lang.String key,
java.lang.Object value)
Add the specified value to the cache. |
void |
addPropertyValue(java.lang.String scopeName,
java.lang.String key,
java.lang.Object propertyValue)
Add a Property to a collection associated with this entity. |
void |
addPropertyValueMapped(java.lang.String scopeName,
java.lang.String propertyKey,
java.lang.String mappedKey,
java.lang.Object propertyValue)
|
java.lang.String |
buildPolicyKey(java.lang.String policyKey)
Build policy key is a helper function that builds a property name for the business policy that will not collide with user specified keys. |
static PropertyMapKey |
createMapKey(java.lang.String scopeName,
java.lang.String key)
Helper function that will allocate a PropertyMapKey from a scope name and property name. |
void |
ejbActivate()
ejbActivate method. |
SmartKey |
ejbCreate(SmartKey key)
ejbCreate method. |
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(SmartKey key)
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
BusinessPolicy |
getBusinessPolicy(java.lang.String policyKey)
Get the named policy from the object. |
java.lang.Object |
getCachedProperty(java.lang.String scope,
java.lang.String key)
Retrieve the value associated with the key from the object cache |
PersistableHandle |
getPersistableHandle()
This method is used to create a long lived handle to an EJB object that can be persisted into a database. |
java.lang.Object |
getProperty(java.lang.String key,
java.lang.Object defaultValue)
Retrieve the value associated with the key. |
java.lang.Object |
getProperty(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor,
java.lang.Object defaultValue)
Retrieve the value associated with the key. |
java.lang.String |
getPropertyAsString(java.lang.String key,
java.lang.String defaultValue)
Retrieve the String value associated with the key and return the result rendered as a string. |
java.lang.String |
getPropertyAsString(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor,
java.lang.String defaultValue)
Equivalent to getProperty except that the return value is turned into a string. |
java.lang.Object |
getPropertyDefault(java.lang.String scope,
java.lang.String key,
ConfigurableEntity explicitSuccessor)
Retrieve the default value from the Schema for the named key and the specified scope. |
java.util.Map |
getPropertyMap()
Allocate the property map and load it using the EntityPropertyManager. |
java.lang.Object |
getPropertyNoDefault(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor)
Retrieve the value associated with the named key in the specified scope but does not return a default value if the property does not exist for the entity of in the hierarchy of successors. |
ConfigurableEntity |
getSuccessor(java.lang.String scopeName)
Retrieve the successor associated with this ConfigurableEntity for the specified scope. |
long |
getUniqueId()
Retrieve the unique identifier generated for this ConfigurableEntity. |
BusinessPolicy |
removeBusinessPolicy(java.lang.String policyKey)
Remove the named policy from the object. |
void |
removeCachedProperties()
Clear all the entries in the cache. |
void |
removeCachedProperties(java.lang.String scope)
Clear all entries in the cache for the specified scope. |
java.lang.Object |
removeCachedProperty(java.lang.String scope,
java.lang.String key)
Retrieve the value associated with the key from the object cache |
java.lang.Object |
removeCachedPropertyMapped(java.lang.String scope,
java.lang.String key,
java.lang.String mapKey)
Remove the value at the specified key from a named property that represents a map. |
void |
removeCachedPropertyValue(java.lang.String scope,
java.lang.String key,
java.lang.Object value)
Add the specified value to the cache. |
java.lang.Object |
removeProperty(java.lang.String key)
This is the simplest way to remove a property. |
java.lang.Object |
removeProperty(java.lang.String scopeName,
java.lang.String key)
Remove property from this ConfigurableEntity |
void |
removePropertyValue(java.lang.String scopeName,
java.lang.String key,
java.lang.Object propertyValue)
Add a Property to this entity. |
java.lang.Object |
removePropertyValueMapped(java.lang.String scopeName,
java.lang.String propertyKey,
java.lang.String mappedKey)
|
ConfigurableEntity |
removeSuccessor(java.lang.String scopeName)
Remove the successor for the specified scope. |
void |
setCachedProperty(java.lang.String scope,
java.lang.String key,
java.lang.Object value)
Add the specified value to the cache. |
void |
setProperty(java.lang.String key,
java.lang.Object property)
This is the the simplest way to set a property. |
void |
setProperty(java.lang.String scopeName,
java.lang.String key,
java.lang.Object property)
Add a property to this Entity and associated it with the specified scope and key |
void |
setSuccessor(java.lang.String scopeName,
ConfigurableEntity successor)
This sets the successor for this object. |
static java.lang.String |
upcaseFirst(java.lang.String s)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ConfigurableEntityImpl()
Method Detail |
public void addBusinessPolicy(java.lang.String policyKey, BusinessPolicy policy) throws java.rmi.RemoteException
public void addCachedPropertyMapped(java.lang.String scope, java.lang.String key, java.lang.String mapKey, java.lang.Object value) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.StringmapKey
- java.lang.String the key into which the property will be mappedvalue
- java.lang.Object the value to be set.public void addCachedPropertyValue(java.lang.String scope, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.Stringvalue
- java.lang.Object the value to be set.public void addPropertyValue(java.lang.String scopeName, java.lang.String key, java.lang.Object propertyValue) throws java.rmi.RemoteException
public void addPropertyValueMapped(java.lang.String scopeName, java.lang.String propertyKey, java.lang.String mappedKey, java.lang.Object propertyValue) throws java.rmi.RemoteException
public java.lang.String buildPolicyKey(java.lang.String policyKey)
public static PropertyMapKey createMapKey(java.lang.String scopeName, java.lang.String key)
scope
- java.lang.Stringkey
- java.lang.Stringpublic void ejbActivate() throws java.rmi.RemoteException
public SmartKey ejbCreate(SmartKey key) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void ejbPostCreate(SmartKey key) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
public void ejbStore() throws java.rmi.RemoteException
public java.lang.Object getCachedProperty(java.lang.String scope, java.lang.String key) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.Stringpublic BusinessPolicy getBusinessPolicy(java.lang.String policyKey) throws java.rmi.RemoteException
public PersistableHandle getPersistableHandle() throws java.rmi.RemoteException
public java.lang.Object getProperty(java.lang.String key, java.lang.Object defaultValue) throws java.rmi.RemoteException
key
- java.lang.StringdefaultValue
- java.lang.ObjectgetProperty
public java.lang.Object getProperty(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.Object defaultValue) throws java.rmi.RemoteException
key
- java.lang.Stringpublic java.lang.String getPropertyAsString(java.lang.String key, java.lang.String defaultValue) throws java.rmi.RemoteException
key
- java.lang.Stringpublic java.lang.String getPropertyAsString(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.String defaultValue) throws java.rmi.RemoteException
key
- java.lang.Stringpublic java.lang.Object getPropertyDefault(java.lang.String scope, java.lang.String key, ConfigurableEntity explicitSuccessor) throws java.rmi.RemoteException
public java.util.Map getPropertyMap() throws java.rmi.RemoteException
public java.lang.Object getPropertyNoDefault(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor) throws java.rmi.RemoteException
public ConfigurableEntity getSuccessor(java.lang.String scopeName)
public BusinessPolicy removeBusinessPolicy(java.lang.String policyKey) throws java.rmi.RemoteException
public void removeCachedProperties() throws java.rmi.RemoteException
scope
- the scope for which properties are to be removed.public void removeCachedProperties(java.lang.String scope) throws java.rmi.RemoteException
scope
- the scope for which properties are to be removed.public java.lang.Object removeCachedProperty(java.lang.String scope, java.lang.String key) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.Stringpublic void removeCachedPropertyValue(java.lang.String scope, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.Stringvalue
- java.lang.Object the value to be set.public java.lang.Object removeCachedPropertyMapped(java.lang.String scope, java.lang.String key, java.lang.String mapKey) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.StringmapKey
- java.lang.String the key into which the property will be mappedpublic java.lang.Object removeProperty(java.lang.String key) throws java.rmi.RemoteException
key
- The name under which the property is bound.public java.lang.Object removeProperty(java.lang.String scopeName, java.lang.String key) throws java.rmi.RemoteException
public void removePropertyValue(java.lang.String scopeName, java.lang.String key, java.lang.Object propertyValue) throws java.rmi.RemoteException
public java.lang.Object removePropertyValueMapped(java.lang.String scopeName, java.lang.String propertyKey, java.lang.String mappedKey) throws java.rmi.RemoteException
public ConfigurableEntity removeSuccessor(java.lang.String scopeName) throws java.rmi.RemoteException
public void setProperty(java.lang.String key, java.lang.Object property) throws java.rmi.RemoteException
key
- The string to which the property will be boundproperty
- The value that will be bound to that namepublic void setProperty(java.lang.String scopeName, java.lang.String key, java.lang.Object property) throws java.rmi.RemoteException
scopeName
- The scopeName and key uniquely identify the propertyNamekey
- property
- The value to associate with the property.public void setSuccessor(java.lang.String scopeName, ConfigurableEntity successor) throws java.rmi.RemoteException
successor
- public void setCachedProperty(java.lang.String scope, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException
scope
- java.lang.Stringkey
- java.lang.Stringvalue
- java.lang.Object the value to be set.public long getUniqueId() throws java.rmi.RemoteException
public static java.lang.String upcaseFirst(java.lang.String s)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |