|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.EntityPool
EntityPool is the standard implementation of the IEntityPool interface. This entity collection class can store zero or more IEntity objects. The entities stored are not type specified and does not have to be defined by a single IEntityDescriptor. IEntityPool is not ordered and not accept EntityPool duplicates effectively makeing it at a "Set".
Nested Class Summary | |
protected class |
EntityPool.EntityPoolSet
|
Constructor Summary | |
EntityPool()
|
|
EntityPool(IEntityPool entityPool)
|
Method Summary | |
boolean |
addEntity(IEntity entity)
|
java.util.Set |
asSet()
|
void |
clear()
|
boolean |
contains(IEntity entity)
|
void |
deleteAll()
Deletes all contained entities. |
boolean |
doesAccept(IEntity entity)
|
boolean |
isDirty()
Return true if any (one or more) of the collections's contained entities has the DIRTY flag set to true that is have unsaved changes. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
void |
refreshAll()
Performs a refresh on all contained entities. |
boolean |
removeEntity(IEntity entity)
|
int |
size()
|
void |
storeAll()
Stores all contained entities that have the DIRTY flag set to true. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EntityPool()
public EntityPool(IEntityPool entityPool)
Method Detail |
public boolean isDirty()
isDirty
in interface IEntityPool
public void storeAll()
storeAll
in interface IEntityPool
public void deleteAll()
deleteAll
in interface IEntityPool
public void refreshAll()
refreshAll
in interface IEntityPool
public boolean addEntity(IEntity entity)
addEntity
in interface IEntityPool
public boolean removeEntity(IEntity entity)
removeEntity
in interface IEntityPool
public java.util.Iterator iterator()
iterator
in interface IEntityPool
public void clear()
clear
in interface IEntityPool
public int size()
size
in interface IEntityPool
public boolean isEmpty()
isEmpty
in interface IEntityPool
public boolean contains(IEntity entity)
contains
in interface IEntityPool
public boolean doesAccept(IEntity entity)
doesAccept
in interface IEntityPool
public java.util.Set asSet()
asSet
in interface IEntityPool
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |