|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.property.AbstractConfigurableEntity | +--com.bea.p13n.property.AbstractHierarchicalEntity
Lightweight implementation of HierarchicalEntity. Like AbstractConfigurableEntity, this does not provide any persistence for property values, and does not use property sets to validate property values or retrieve default property values. It provides successor functionality by storing references to its successor objects, rather than using the id's like the EJB implementation does. Any lightweight objects that require HierarchicalEntity functionality should extend this class.
Fields inherited from class com.bea.p13n.property.AbstractConfigurableEntity |
CE_METHOD_CACHE,
instanceClass,
PREFIX_GET,
PREFIX_SET,
propertyCache,
textFormatter |
Constructor Summary | |
AbstractHierarchicalEntity()
|
Method Summary | |
protected java.lang.Object |
getImplicitProperty(java.lang.String propertySet,
java.lang.String propertyName)
Override ConfigurableEntity.getImplicitProperty to do a successor search if the property was not found in this entity |
protected java.lang.Object |
getImplicitProperty(java.lang.String propertySet,
java.lang.String propertyName,
ConfigurableEntity explicitSuccessor)
|
java.lang.Object |
getProperty(java.lang.String propertySet,
java.lang.String propertyName,
ConfigurableEntity successor)
Retrieve the value associated with the named key in the specified property set. |
java.lang.String |
getPropertyAsString(java.lang.String propertySet,
java.lang.String propertyName,
ConfigurableEntity successor)
Convenience method to return the property as a String. |
java.lang.Object |
getPropertyNoDefault(java.lang.String propertySet,
java.lang.String propertyName,
ConfigurableEntity successor)
Retrieve the value associated with the property in the specified property set, but does not return a default value from the property's PropertyDefinition if the property does not exist for the entity or in the hierarchy of successors. |
ConfigurableEntity |
getSuccessor(java.lang.String propertySet)
Retrieve the successor for the specified property set. |
void |
removeSuccessor(java.lang.String propertySet)
Remove the successor for the specified propertySet. |
void |
setSuccessor(java.lang.String propertySet,
ConfigurableEntity successor)
This sets the successor for this object. |
Methods inherited from class com.bea.p13n.property.AbstractConfigurableEntity |
createMapKey,
getCachedProperty,
getExplicitProperty,
getExplicitSetter,
getJndiName,
getPkString,
getProperty,
getPropertyAsString,
getPropertyCache,
getPropertyNoDefault,
getUniqueId,
hasExplicitGetter,
hasExplicitSetter,
removeExplicitProperty,
removeProperty,
setExplicitProperty,
setProperty,
upcaseFirst |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AbstractHierarchicalEntity()
Method Detail |
public java.lang.Object getProperty(java.lang.String propertySet, java.lang.String propertyName, ConfigurableEntity successor) throws java.rmi.RemoteException
propertySet
- The name of the property setpropertyName
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.public java.lang.String getPropertyAsString(java.lang.String propertySet, java.lang.String propertyName, ConfigurableEntity successor) throws java.rmi.RemoteException
propertySet
- The name of the property setpropertyName
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.public java.lang.Object getPropertyNoDefault(java.lang.String propertySet, java.lang.String propertyName, ConfigurableEntity successor) throws java.rmi.RemoteException
propertySet
- The name of the property setpropertyName
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.protected java.lang.Object getImplicitProperty(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException
propertySet
- The name of the property setpropertyName
- The name of the property to retrieve.protected java.lang.Object getImplicitProperty(java.lang.String propertySet, java.lang.String propertyName, ConfigurableEntity explicitSuccessor) throws java.rmi.RemoteException
public ConfigurableEntity getSuccessor(java.lang.String propertySet) throws java.rmi.RemoteException
propertySet
- The name of the property setpublic void removeSuccessor(java.lang.String propertySet) throws java.rmi.RemoteException
public void setSuccessor(java.lang.String propertySet, ConfigurableEntity successor) throws java.rmi.RemoteException
successor
-
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |