Interface EntityData<T,ID>
- Type Parameters:
T- type of entity to storeID- type of id of the entity to store. Can beVoidif no ID is used.
- All Known Implementing Classes:
LazyEntityData,NonLazyEntityData
public interface EntityData<T,ID>
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsEntity(T entity) ensureEntityAndReturnObjectsToStore(T entityToStore) getEntityById(ID id) longremoveEntityAndReturnObjectsToStore(T entityToRemove) voidsetIdGetter(IdGetter<T, ID> idGetter) Acceptsnullif no id field is definedvoid
-
Method Details
-
setIdGetter
Acceptsnullif no id field is defined -
getEntitiesAsStream
-
containsEntity
-
getLastId
ID getLastId() -
getEntityCount
long getEntityCount() -
setLastId
-
ensureEntityAndReturnObjectsToStore
-
getObjectsToStore
Collection<Object> getObjectsToStore() -
removeEntityAndReturnObjectsToStore
-
removeAllEntitiesAndReturnObjectsToStore
Collection<Object> removeAllEntitiesAndReturnObjectsToStore() -
getEntityById
-