|
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 | +--com.beasys.commerce.axiom.content.ContentImpl
The PersonalizationServer implementation of a Content entity bean.
Subclasses of Content can use this as a base class to gain access to much of the foundation intfrastructure.
Since many content management systems are case-insensitive, the Content impl can be configured to turn all keys passed as aguments to either upper or lower case. This is specified via the "PropertyCase" EJB environment value. If the value is "upper", all keys are turned to upper case. If the value is "lower", all keys are turned to lower case. If the value is anything or not specified, all keys are left unmodified.
This implementation of Content utilizes a SmartBMP object to handle the
creation, modification, and removal of Content objects. Additionally, for
the ContentHome.findBySearchParams(com.beasys.commerce.foundation.expression.Search)
method to operate
correctly, the SmartBMP this is configured for must have a
findBySearchParams(Search, EntityImpl) method which returns
an Enumeration of the appropriate primary key classes.
Primary Key = com.beasys.commerce.axiom.content.ContentPk
Content
,
ContentHome
,
ContentValue
, Serialized FormField Summary | |
java.lang.String |
identifier
The unique identifier of the Content. |
java.lang.String |
mimeType
The mimeType of the content. |
static int |
PROPERTY_CASE_LOWER
Constant for lower case property keys. |
static int |
PROPERTY_CASE_NONE
Constant for no modification to property keys. |
static int |
PROPERTY_CASE_UPPER
Constant for upper case property keys. |
int |
propertyCase
How this bean modifies property keys. |
Fields inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl |
DEFAULT_ENTITY_PROPERTY_MANAGER_HOME, DEFAULT_SCHEMA_GROUP_NAME, ENTITY_PROPERTY_MANAGER_HOME, propertyMap, SCHEMA_GROUP_NAME |
Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier, __containingEntity, __mapKey, __sequenceNumber, _ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty, _smartBMP |
Constructor Summary | |
ContentImpl()
Constructor. |
Method Summary | |
void |
addCachedPropertyMapped(java.lang.String scope,
java.lang.String key,
java.lang.String mapKey,
java.lang.Object val)
Override to possibly modify the case of the key. |
void |
addCachedPropertyValue(java.lang.String scope,
java.lang.String key,
java.lang.Object val)
Override to possibly modify the case of the key. |
void |
addPropertyValue(java.lang.String scope,
java.lang.String key,
java.lang.Object prop)
Override to possibly modify the case of the key. |
void |
addPropertyValueMapped(java.lang.String scope,
java.lang.String key,
java.lang.String mapKey,
java.lang.Object value)
Override to possibly modify the case of the key. |
protected void |
bscInitializeAttributes(ContentPk contentPk)
Initialize the instance variables. |
Expression |
convertExpression(Expression expr)
Convert an expression to the bean's preferred case. |
java.lang.String |
convertKey(java.lang.String key)
Convert a string to the bean's preferred case. |
Search |
convertParams(Search params)
Convert search parameters to the bean's preferred case. |
void |
ejbActivate()
Called when the bean is activated. |
ContentPk |
ejbCreate(ContentPk contentPk)
Create an instance of a Content object. |
ContentPk |
ejbFindByPrimaryKey(ContentPk pk)
Find a bean by its primary key. |
java.util.Enumeration |
ejbFindBySearchParams(Search params)
Return the list of PK objects which match the search parameters. |
void |
ejbLoad()
Called when the bean should load its data. |
void |
ejbPassivate()
Called when the bean is passivated. |
void |
ejbPostCreate(ContentPk contentPk)
Called after a create finishes. |
void |
ejbRemove()
Called when the bean should remove it self from the persistant store. |
void |
ejbStore()
Called when the bean should update its persistant store with its data. |
java.lang.Object |
getCachedProperty(java.lang.String scope,
java.lang.String key)
Override to possibly modify the case of the key. |
ContentValue |
getContentByValue()
Get all of Content's attributes. |
java.lang.String |
getIdentifier()
Get the value of the identifier. |
protected java.lang.Object |
getImplicitProperty(java.lang.String scope,
java.lang.String key,
ConfigurableEntity successor,
boolean useDefault)
Override to possibly modify the case of the key. |
java.lang.String |
getMimeType()
Get the value of mimeType |
java.lang.Object |
getProperty(java.lang.String key)
Override to possibly modify the case of the key. |
java.lang.Object |
removeCachedProperty(java.lang.String scope,
java.lang.String key)
Override to possibly modify the case of the key. |
java.lang.Object |
removeCachedPropertyMapped(java.lang.String scope,
java.lang.String key,
java.lang.String mapKey)
Override to possibly modify the case of the key. |
void |
removeCachedPropertyValue(java.lang.String scope,
java.lang.String key,
java.lang.Object val)
Override to possibly modify the case of the key. |
java.lang.Object |
removeProperty(java.lang.String key)
Override to possibly modify the case of the key. |
java.lang.Object |
removeProperty(java.lang.String scope,
java.lang.String key)
Override to possibly modify the case of the key. |
java.lang.Object |
removePropertyValue(java.lang.String scope,
java.lang.String key,
java.lang.Object prop)
Override to possibly modify the case of the key. |
java.lang.Object |
removePropertyValueMapped(java.lang.String scope,
java.lang.String key,
java.lang.String mapKey)
Override to possibly modify the case of the key. |
void |
setCachedProperty(java.lang.String scope,
java.lang.String key,
java.lang.Object value)
Override to possibly modify the case of the key. |
void |
setContentByValue(ContentValue value)
Set all of Content's attributes to the passed in value. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
Called before any operations are performed on the bean. |
void |
setIdentifier(java.lang.String value)
Set the value of the identifier for this bean. |
void |
setMimeType(java.lang.String mimeType)
Set the value of mimeType |
void |
setProperty(java.lang.String key,
java.lang.Object prop)
Override to possibly modify the case of the key. |
void |
setProperty(java.lang.String scope,
java.lang.String key,
java.lang.Object prop)
Override to possibly modify the case of the key. |
void |
unsetEntityContext()
Called when the bean is done. |
Methods inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl |
addBusinessPolicy, buildPolicyKey, createMapKey, ejbCreate, ejbPostCreate, getBusinessPolicy, getPersistableHandle, getProperty, getProperty, getPropertyAsString, getPropertyAsString, getPropertyDefault, getPropertyMap, getPropertyNoDefault, getSuccessor, getUniqueId, removeBusinessPolicy, removeCachedProperties, removeCachedProperties, removeSuccessor, setSuccessor, upcaseFirst, useEntityPropertyManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int PROPERTY_CASE_NONE
public static int PROPERTY_CASE_LOWER
public static int PROPERTY_CASE_UPPER
public int propertyCase
This value should one of: PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, or PROPERTY_CASE_UPPER. It will be initialize in the setEntityContent() method.
public java.lang.String identifier
public java.lang.String mimeType
Constructor Detail |
public ContentImpl() throws javax.ejb.CreateException
javax.ejb.CreateException
- thrown on an error creating the bean instance.Method Detail |
public ContentValue getContentByValue() throws java.rmi.RemoteException
java.rmi.RemoteException
- thrown on an error.public void setContentByValue(ContentValue value) throws java.rmi.RemoteException
Note: Primary key attributes are not set.
ContentValue
- the Content value objectjava.rmi.RemoteException
- thrown on an error.public ContentPk ejbCreate(ContentPk contentPk) throws javax.ejb.CreateException, java.rmi.RemoteException
java.rmi.RemoteException
- thrown on an error.javax.ejb.CreateException
- thrown on a creation error.protected void bscInitializeAttributes(ContentPk contentPk) throws javax.ejb.CreateException, java.rmi.RemoteException
java.rmi.RemoteException
- thrown on an error.javax.ejb.CreateException
- thrown on a creation error.public void ejbPostCreate(ContentPk contentPk) throws javax.ejb.CreateException, java.rmi.RemoteException
This just delagates to the super class.
java.rmi.RemoteException
- thrown on an error.javax.ejb.CreateException
- thrown on a creation error.public void ejbLoad() throws javax.ejb.EJBException
This delagates to the super class, which should invokethe SmartBMP's refresh() method.
ejbLoad
in class ConfigurableEntityImpl
public void ejbStore() throws javax.ejb.EJBException
This delagates to the super class, which should invoke the SmartBMP's update() method.
ejbStore
in class ConfigurableEntityImpl
public void ejbRemove() throws javax.ejb.RemoveException
ejbRemove
in class ConfigurableEntityImpl
javax.ejb.RemoveException
- thrown on removal an error.public void ejbActivate() throws javax.ejb.EJBException
ejbActivate
in class ConfigurableEntityImpl
javax.ejb.EJBException
- thrown on an error.public void ejbPassivate() throws javax.ejb.EJBException
ejbPassivate
in class ConfigurableEntityImpl
javax.ejb.EJBException
- thrown on an error.public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException
This method configures the propertyCase of the bean from the "PropertyCase" EJB environment value.
setEntityContext
in class EntityImpl
javax.ejb.EJBException
- thrown on an error.public void unsetEntityContext() throws javax.ejb.EJBException
unsetEntityContext
in class EntityImpl
javax.ejb.EJBException
- thrown on an error.public ContentPk ejbFindByPrimaryKey(ContentPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
java.rmi.RemoteException
- thrown on an error.javax.ejb.FinderException
- thrown on an error.public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType
- mimeType to be addedpublic java.lang.String getIdentifier()
public void setIdentifier(java.lang.String value)
public java.util.Enumeration ejbFindBySearchParams(Search params) throws javax.ejb.FinderException
This will attempt to invoke the FindBySearchParams(Search) method on the bean's SmartBMP instance.
javax.ejb.FinderException
- thrown on an error.public java.lang.Object getProperty(java.lang.String key) throws SystemException
getProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void setProperty(java.lang.String key, java.lang.Object prop) throws SystemException
setProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object removeProperty(java.lang.String key) throws SystemException
removeProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void setProperty(java.lang.String scope, java.lang.String key, java.lang.Object prop) throws SystemException
setProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object removeProperty(java.lang.String scope, java.lang.String key) throws SystemException
removeProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void addPropertyValue(java.lang.String scope, java.lang.String key, java.lang.Object prop) throws SystemException
addPropertyValue
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object removePropertyValue(java.lang.String scope, java.lang.String key, java.lang.Object prop) throws SystemException
removePropertyValue
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void addPropertyValueMapped(java.lang.String scope, java.lang.String key, java.lang.String mapKey, java.lang.Object value) throws SystemException
addPropertyValueMapped
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object removePropertyValueMapped(java.lang.String scope, java.lang.String key, java.lang.String mapKey) throws SystemException
removePropertyValueMapped
in class ConfigurableEntityImpl
SystemException
- thrown on an error.protected java.lang.Object getImplicitProperty(java.lang.String scope, java.lang.String key, ConfigurableEntity successor, boolean useDefault) throws SystemException
getImplicitProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void setCachedProperty(java.lang.String scope, java.lang.String key, java.lang.Object value) throws SystemException
setCachedProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object getCachedProperty(java.lang.String scope, java.lang.String key) throws SystemException
getCachedProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object removeCachedProperty(java.lang.String scope, java.lang.String key) throws SystemException
removeCachedProperty
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void addCachedPropertyValue(java.lang.String scope, java.lang.String key, java.lang.Object val) throws SystemException
addCachedPropertyValue
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void removeCachedPropertyValue(java.lang.String scope, java.lang.String key, java.lang.Object val) throws SystemException
removeCachedPropertyValue
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public void addCachedPropertyMapped(java.lang.String scope, java.lang.String key, java.lang.String mapKey, java.lang.Object val) throws SystemException
addCachedPropertyMapped
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.Object removeCachedPropertyMapped(java.lang.String scope, java.lang.String key, java.lang.String mapKey) throws SystemException
removeCachedPropertyMapped
in class ConfigurableEntityImpl
SystemException
- thrown on an error.public java.lang.String convertKey(java.lang.String key)
propertyCase
public Search convertParams(Search params)
params
- the search parameters.convertExpression(com.beasys.commerce.foundation.expression.Expression)
public Expression convertExpression(Expression expr)
expr
- the expression.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |