|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EntityManager<T extends AbstractEntity>
| Method Summary | |
|---|---|
int |
count()
Count all entities in database |
int |
count(SearchCriteria searchCriteria)
get number of returned entities for specified search criteria. |
void |
delete(T entity)
delete specified entity. |
T |
get(java.lang.Long id)
|
java.util.List<T> |
getAll()
Get all entities. |
java.util.List<T> |
getAll(org.hibernate.criterion.Order order)
get all entities in specified order if order parameter is not null. |
T |
load(java.lang.Long id)
|
void |
save(T entity)
create new entry in database if identifier of specified identity is null, or update existing entity into database if the identifier is not null. |
java.util.List<T> |
search(SearchCriteria searchCriteria,
int first,
int count)
get entities for specified search criteria in the range specified by start and count param. |
java.util.List<java.lang.Long> |
searchIds(SearchCriteria searchCriteria,
int first,
int count)
|
| Method Detail |
|---|
void delete(T entity)
T load(java.lang.Long id)
T get(java.lang.Long id)
void save(T entity)
int count(SearchCriteria searchCriteria)
searchCriteria - int count()
java.util.List<T> search(SearchCriteria searchCriteria,
int first,
int count)
searchCriteria - first - position of first entitycount - maximum number of returned entities. Specify this value
as zero if you do not want to limit number of returned entities
java.util.List<java.lang.Long> searchIds(SearchCriteria searchCriteria,
int first,
int count)
java.util.List<T> getAll(org.hibernate.criterion.Order order)
order - specify order of returned records. Set null if you do not
care about the order.java.util.List<T> getAll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||