Type Parameters:
T - type of entity to store
ID - type of id of the entity to store. Can be Void if no ID is used.
All Known Implementing Classes:
LazyEntityData, NonLazyEntityData

public interface EntityData<T,ID>
  • Method Details

    • setIdGetter

      void setIdGetter(IdGetter<T,ID> idGetter)
      Accepts null if no id field is defined
    • getEntitiesAsStream

      Stream<T> getEntitiesAsStream()
    • containsEntity

      boolean containsEntity(T entity)
    • getLastId

      ID getLastId()
    • getEntityCount

      long getEntityCount()
    • setLastId

      void setLastId(Object lastId)
    • ensureEntityAndReturnObjectsToStore

      Collection<Object> ensureEntityAndReturnObjectsToStore(T entityToStore)
    • getObjectsToStore

      Collection<Object> getObjectsToStore()
    • removeEntityAndReturnObjectsToStore

      Collection<Object> removeEntityAndReturnObjectsToStore(T entityToRemove)
    • removeAllEntitiesAndReturnObjectsToStore

      Collection<Object> removeAllEntitiesAndReturnObjectsToStore()
    • getEntityById

      T getEntityById(ID id)