|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ENTITY - specify the class name of the entity which is handled by the repository
manager.ENTITY_IDENTIFIER_TYPE - the identifier class name used by ENTITY for its primary
key definition.public interface EntityRepository<ENTITY extends Entity<ENTITY,ENTITY_IDENTIFIER_TYPE>,ENTITY_IDENTIFIER_TYPE>
This interface must be implemented by all repositories handling Silverpeas entities that have to be persisted.
It provides common entity query methods.
| Method Summary | |
|---|---|
void |
delete(ENTITY... entity)
Deletes entities. |
void |
delete(List<ENTITY> entities)
Deletes entities. |
long |
deleteById(Collection<String> ids)
Deletes entities by their ids. |
long |
deleteById(String... ids)
Deletes entities by their ids. |
List<ENTITY> |
getAll()
Gets all persisted entities. |
List<ENTITY> |
getById(Collection<String> ids)
Gets persisted entities by their ids. |
List<ENTITY> |
getById(String... ids)
Gets persisted entities by their ids. |
ENTITY |
getById(String id)
Gets a persisted entity by its id. |
List<ENTITY> |
save(OperationContext context,
ENTITY... entities)
Persists entities : create (if id is null or empty) or update. |
ENTITY |
save(OperationContext context,
ENTITY entity)
Persists entity : create (if id is null or empty) or update. |
List<ENTITY> |
save(OperationContext context,
List<ENTITY> entities)
Persists entities : create (if id is null or empty) or update. |
| Method Detail |
|---|
List<ENTITY> getAll()
ENTITY getById(String id)
List<ENTITY> getById(String... ids)
List<ENTITY> getById(Collection<String> ids)
ENTITY save(OperationContext context,
ENTITY entity)
context - the context of the save operation (containing the user saver for example).entity - the entity to save.
List<ENTITY> save(OperationContext context,
ENTITY... entities)
context - the context of the save operation (containing the user saver for example).entities - the entities to save.
List<ENTITY> save(OperationContext context,
List<ENTITY> entities)
context - the context of the save operation (containing the user saver for example).entities - the entities to save.
void delete(ENTITY... entity)
void delete(List<ENTITY> entities)
long deleteById(String... ids)
ids -
long deleteById(Collection<String> ids)
ids -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||