|
|||||||||||
| 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 IEntityPoolpublic void storeAll()
storeAll in interface IEntityPoolpublic void deleteAll()
deleteAll in interface IEntityPoolpublic void refreshAll()
refreshAll in interface IEntityPoolpublic boolean addEntity(IEntity entity)
addEntity in interface IEntityPoolpublic boolean removeEntity(IEntity entity)
removeEntity in interface IEntityPoolpublic java.util.Iterator iterator()
iterator in interface IEntityPoolpublic void clear()
clear in interface IEntityPoolpublic int size()
size in interface IEntityPoolpublic boolean isEmpty()
isEmpty in interface IEntityPoolpublic boolean contains(IEntity entity)
contains in interface IEntityPoolpublic boolean doesAccept(IEntity entity)
doesAccept in interface IEntityPoolpublic java.util.Set asSet()
asSet in interface IEntityPool
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||