|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.datamanager.kernel.Entity
|
+--org.datamanager.kernel.CachingProxyEntity
Entities that proxy for and lazily cache the information of other Entities. The implicit assumption is that these underlying Entities will not be modified through any other mechanism but through their enclosing CachingProxyEntitys.
| Constructor Summary | |
protected |
CachingProxyEntity(Entity proxiedEntity)
Creates a new CachingProxyEntity proxying for the given Entity. |
| Method Summary | |
protected void |
addBase(org.datamanager.kernel.Identifier base)
Add an Entity to the list of bases. |
void |
attach(Entity attribute)
Attach the given Entity as an attribute. |
void |
attach(org.datamanager.kernel.Identifier attribute)
Attach the Entity with the given Identifier as an attribute. |
void |
detach(Entity attribute)
Detach the given Entity. |
void |
detach(org.datamanager.kernel.Identifier attribute)
Detach the Entity with the given Identifier. |
void |
finalize()
|
Entity[] |
getAttributes(EntityConstraint constraint)
Request a constrained set of all entities linked to the Entity. |
Entity[] |
getBases(EntityConstraint constraint)
Request a constrained set of all entities of which the Entity is an attribute. |
String |
getName()
Request the Entity's name. |
EntityValue |
getValue()
Request the Entity's value. |
protected void |
removeBase(org.datamanager.kernel.Identifier base)
Remove an Entity from the list of bases. |
protected void |
setAttributes(org.datamanager.kernel.Identifier[] attributeIdentifiers)
Sets the list of all attributes on this Entity. |
protected void |
setBases(org.datamanager.kernel.Identifier[] baseIdentifiers)
Sets the list of all bases on this Entity. |
void |
setValue(EntityValue newValue)
Request a change of the Entity's value. |
void |
subscribe(EventHandler listener,
EventConstraint constraint)
Subscribe to the Entity for DataManagerEvents satisfying the given EventConstraint. |
String |
toString()
A toString() method that overrides the one in Object. |
void |
unsubscribe(EventHandler handler)
Remove all event subscriptions for which the EventHandler is subscribed. |
void |
writeBack()
Writes any locally changed data back to the proxied Entity. |
| Methods inherited from class org.datamanager.kernel.Entity |
chooseEntities, constraintAcceptsEntity, create, getEntities, makeIdentifierList |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected CachingProxyEntity(Entity proxiedEntity)
| Method Detail |
public void writeBack()
throws DataManagerException
DataManagerException
public void finalize()
throws DataManagerException
finalize in class ObjectDataManagerException
public void attach(Entity attribute)
throws DataManagerException
Entity
attach in class Entityattribute - The Entity to attach.
DataManagerException
public void detach(Entity attribute)
throws DataManagerException
Entity
detach in class Entityattribute - The Entity to detach.
DataManagerException
public void attach(org.datamanager.kernel.Identifier attribute)
throws DataManagerException
Entity
attach in class Entityattribute - The Identifier of the Entity to attach.
DataManagerException
protected void setAttributes(org.datamanager.kernel.Identifier[] attributeIdentifiers)
throws DataManagerException
Entity
setAttributes in class EntityDataManagerException
protected void addBase(org.datamanager.kernel.Identifier base)
throws DataManagerException
Entity
addBase in class Entitybase - The Identifier of the Entity that is a new base.
DataManagerException
protected void setBases(org.datamanager.kernel.Identifier[] baseIdentifiers)
throws DataManagerException
Entity
setBases in class EntityDataManagerException
public void detach(org.datamanager.kernel.Identifier attribute)
throws DataManagerException
Entity
detach in class Entityattribute - The Identifier of the Entity to detach.
DataManagerException
protected void removeBase(org.datamanager.kernel.Identifier base)
throws DataManagerException
Entity
removeBase in class Entitybase - The Identifier of the Entity that will no longer
be a base.
DataManagerException
public String getName()
throws DataManagerException
Entity
getName in class EntityDataManagerException
public EntityValue getValue()
throws DataManagerException
Entity
getValue in class EntityDataManagerException
public void setValue(EntityValue newValue)
throws DataManagerException
Entity
setValue in class EntitynewValue - The new EntityValue that you wish to give the Entity.
DataManagerException
public Entity[] getAttributes(EntityConstraint constraint)
throws DataManagerException
Entity
getAttributes in class Entityconstraint - A constraint with which to filter attributes.
DataManagerException
public Entity[] getBases(EntityConstraint constraint)
throws DataManagerException
Entity
getBases in class Entityconstraint - The EntityConstraint that you wish to apply to get the
bases of the Entity.
DataManagerException
public void subscribe(EventHandler listener,
EventConstraint constraint)
throws DataManagerException
Entity
subscribe in interface EventGeneratorsubscribe in class Entitylistener - The EventHandler that will receive the events.constraint - The constraint used to filter events.
DataManagerException
public void unsubscribe(EventHandler handler)
throws DataManagerException
Entity
unsubscribe in interface EventGeneratorunsubscribe in class Entityhandler - The EventHandler to unsubscribe.
DataManagerExceptionpublic String toString()
Entity
toString in class Entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||