|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.datamanager.kernel.Pool
The Pool is a collection of Entities. It can be searched, subscribed to, and modified, by adding and removing Entities.
| Method Summary | |
void |
add(DataManagerEvent event)
Adds an event to the Pool. |
void |
add(Entity entity)
Links an entity to the Pool. |
boolean |
equals(Object object)
Returns true if the given Object is equivalent to this Pool. |
protected void |
fireEvent(DataManagerEvent event)
Fires an event. |
static Pool |
getDefaultPool()
Reports the default Pool. |
protected void |
loadAssistant()
The EventGeneratorAssistant is transient, so this method is used to reload the EventGeneratorAssistant when needed. |
void |
persist()
Persists this Pool and all its Entities. |
void |
remove(Entity entity)
Removes all the entity's entity links as well as its link to the pool. |
Entity[] |
search(EntityConstraint constraint)
Searches for all entities in the Pool satisfying the parameterized constraint. |
void |
subscribe(EventHandler handler,
EventConstraint constraint)
Subscribes an EventHandler with an EntityConstraint to the Pool. |
void |
unsubscribe(EventHandler handler)
Unsubscribes an EventHandler. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
protected void loadAssistant()
protected void fireEvent(DataManagerEvent event)
event - An event to fire.
public static Pool getDefaultPool()
throws DataManagerException
DataManagerException
public Entity[] search(EntityConstraint constraint)
throws DataManagerException
constraint - A constraint to filter entities from the Pool.
DataManagerException
public void add(Entity entity)
throws DataManagerException
entity - The Entity to add to the Pool.
DataManagerException
public void add(DataManagerEvent event)
throws DataManagerException
event - The event to add to the Pool.
DataManagerException
public void remove(Entity entity)
throws DataManagerException
entity - The Entity to remove from the Pool.
DataManagerException
public void subscribe(EventHandler handler,
EventConstraint constraint)
throws DataManagerException
subscribe in interface EventGeneratorhandler - The EventHandler to subscribe.constraint - The constraint that identifies the events of interest
to the EventHandler.
DataManagerException
public void unsubscribe(EventHandler handler)
throws DataManagerException
unsubscribe in interface EventGeneratorhandler - The EventHandler to unsubscribe.
DataManagerException
public void persist()
throws DataManagerException
DataManagerExceptionpublic boolean equals(Object object)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||