|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EntityPropertyManager is the remote interface for a session bean that manages persistence of ConfigurableEntity EJB's and their properties. The default implementation uses the WLPS database as its backing store, other implementations may use other datastores such as an LDAP server.
Each ConfigurableEntity must have an ejb-ref in its deployment descriptor that can be used to identify the correct EntityPropertyManager to use.
ConfigurableEntity
Method Summary | |
long |
createUniqueId(java.lang.String jndiHomeName,
java.lang.String pkString)
Create a record for a new ConfigurableEntity, as identified by the given jndiHomeName and pkString. |
java.lang.String[] |
getDynamicProperties(PropertyLocator locator,
java.lang.String propertySet)
Returns a list of dynamically assigned properties for the given entity, that have been named with the given property set name. |
java.lang.String[] |
getEntityNames(java.lang.String jndiName)
Return a list of Entity names that have this jndi name. |
java.lang.String |
getHomeName(long anEntityId)
Get the JNDI home name for the entity identified by the given entity id |
EntityPropertyCache |
getProperties(PropertyLocator locator)
Returns an EntityPropertyCache full of all properties that are persisted for the given ConfigurableEntity |
java.lang.Object |
getProperty(PropertyLocator locator,
java.lang.String propertySet,
java.lang.String propertyName)
Returns the value of the property defined for the specified property and property set. |
PropertyLocator |
getPropertyLocator(long anEntityId)
Get the PropertyLocator for the entity identified by the given entity id |
long |
getUniqueId(java.lang.String homeName,
java.lang.String pkString)
Returns the number that uniquely identifies the entity specified by the home name and the pk string. |
void |
removeEntity(PropertyLocator locator)
Remove all properties, and the entity record, for the entity identified by the given property locator |
void |
removeProperties(PropertyLocator locator)
Removes all property values associated with the entity specified by the property locator.scope |
java.lang.Object |
removeProperty(PropertyLocator locator,
java.lang.String propertySet,
java.lang.String propertyName)
Removes a specific property value from the entity specified by the property locator. |
void |
setProperty(PropertyLocator locator,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Sets the property identified by the given property set and property name to the given value for the entity specified by the given property locator. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public EntityPropertyCache getProperties(PropertyLocator locator) throws java.rmi.RemoteException, EntityNotFoundException
locator
- a PropertyLocator that identifies the entitypublic java.lang.Object getProperty(PropertyLocator locator, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, EntityNotFoundException
If the property does not have a value persisted, then null is returned.
locator
- a PropertyLocator identifying the entity to look uppropertySet
- the name of the property setpropertyName
- the name of the propertypublic long getUniqueId(java.lang.String homeName, java.lang.String pkString) throws java.rmi.RemoteException, EntityNotFoundException
If the entity is not found, -1 will be returned.
homeName
- the entity's JNDI home namepkString
- the entity's string identifierpublic void removeProperties(PropertyLocator locator) throws java.rmi.RemoteException, EntityNotFoundException
locator
- a PropertyLocator identifying the entity to modifypublic java.lang.Object removeProperty(PropertyLocator locator, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, EntityNotFoundException
locator
- a PropertyLocator identifying the entity to modifypropertySet
- the property set containing the property to removepropertyName
- the name of the property to removepublic void setProperty(PropertyLocator locator, java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value) throws java.rmi.RemoteException, PropertyValidationException, EntityNotFoundException
locator
- a PropertyLocator identifying the entity to modifypropertySet
- the property set containing the property to modifypropertyName
- the name of the property to modifyvalue
- the value to persist for the given property and entitypublic java.lang.String[] getDynamicProperties(PropertyLocator locator, java.lang.String propertySet) throws java.rmi.RemoteException, EntityNotFoundException
Dynamic properties could exist if the property set definition has been changed to remove a property but the given entity still has a value for this property. They could also exist if the entity has properties that were set using the property set name as the scope, but the property set definition does not contain the properties.
If the given property set name is null then this method returns the property names that were set for this entity using null for the property set name.
locator
- a PropertyLocator identifying the entity to look uppropertySet
- the propertySet to look uppublic long createUniqueId(java.lang.String jndiHomeName, java.lang.String pkString) throws java.rmi.RemoteException, ConfigurableEntityCreateException
jndiHomeName
- the entity's home namepkString
- the entity's identifier stringpublic void removeEntity(PropertyLocator locator) throws java.rmi.RemoteException, EntityNotFoundException
locator
- the PropertyLocator identifying the entity to removepublic java.lang.String getHomeName(long anEntityId) throws java.rmi.RemoteException, EntityNotFoundException
anEntityId
- the unique id for the entity to look uppublic PropertyLocator getPropertyLocator(long anEntityId) throws java.rmi.RemoteException, EntityNotFoundException
anEntityId
- the unique id for the entity to look uppublic java.lang.String[] getEntityNames(java.lang.String jndiName) throws java.rmi.RemoteException
jndiName
- the jndiName to query
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |