java.lang.Object
software.xdev.spring.data.eclipse.store.repository.root.EntityData<T,ID>
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.

public class EntityData<T,ID> extends Object
  • Constructor Details

    • EntityData

      public EntityData()
  • Method Details

    • setIdGetter

      public void setIdGetter(Function<T,ID> idGetter)
    • getEntities

      public IdentitySet<T> getEntities()
    • getLastId

      public ID getLastId()
    • getEntitiesById

      public HashMap<ID,T> getEntitiesById()
    • getEntityCount

      public long getEntityCount()
    • setLastId

      public void setLastId(Object lastId)
    • ensureEntityAndReturnObjectsToStore

      public Collection<Object> ensureEntityAndReturnObjectsToStore(T entityToStore)
    • getObjectsToStore

      public Collection<Object> getObjectsToStore()
    • removeEntityAndReturnObjectsToStore

      public Collection<Object> removeEntityAndReturnObjectsToStore(T entityToRemove)
    • removeAllEntitiesAndReturnObjectsToStore

      public Collection<Object> removeAllEntitiesAndReturnObjectsToStore()