E - Entity typeID - Identity of the entitypublic interface GenericDAO<E,ID extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
Long |
count()
Get the number of entities with the specified type and id from the datasource.
|
E |
create(E entity)
Insert a new entity.
|
void |
createAll(List<E> entities)
Insert a list of new entities in the persistence context.
|
void |
delete(E entity)
Delete the specified entity from the persistence context.
|
void |
deleteAll()
Remove all of the entities from the persistence context.
|
void |
deleteAll(List<E> entities)
Remove all of the specified entities from the persistence context.
|
E |
find(ID id)
Return an entity which is associated with specified id.
|
List<E> |
findAll()
Get a list of all object of the specified type from the datasource.
|
E |
update(E entity)
Update the entity in the persistence context.
|
void |
updateAll(List<E> entities)
Update the entity in the persistence context.
|
Long count()
E find(ID id)
List<E> findAll()
E create(E entity)
void createAll(List<E> entities)
E update(E entity)
void updateAll(List<E> entities)
void delete(E entity)
void deleteAll(List<E> entities)
void deleteAll()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.