|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedGenericDao<T,PK extends java.io.Serializable>
Interface for a more sophisticated DAO implementation. Mostly the functionality declared here will require an implementation that is based of some proprietary features of certain JPA providers.
| Method Summary | |
|---|---|
void |
deleteByExample(java.util.Collection<T> examples)
Deletes all entities mathing the given examples. |
void |
deleteByExample(T... examples)
Deletes all entities mathing the given examples. |
java.util.List<T> |
readByExample(java.util.Collection<T> examples)
Returns all entites matching the given criteria sorted by the given sort options. |
Page<T> |
readByExample(Pageable pageable,
java.util.Collection<T> examples)
Allows pageable access to all entities matching the given examples. |
Page<T> |
readByExample(Pageable pageable,
T... examples)
Allows pageable access to all entities matching the given examples. |
java.util.List<T> |
readByExample(Sort sort,
java.util.Collection<T> examples)
Returns all entites matching the given criteria sorted by the given sort options. |
java.util.List<T> |
readByExample(Sort sort,
T... examples)
Returns all entites matching the given criteria sorted by the given sort options. |
java.util.List<T> |
readByExample(T... examples)
Returns all entities matching the given examples. |
| Methods inherited from interface org.synyx.hades.dao.GenericDao |
|---|
count, delete, delete, deleteAll, exists, flush, readAll, readAll, readAll, readByPrimaryKey, save, save, saveAndFlush |
| Method Detail |
|---|
java.util.List<T> readByExample(T... examples)
null, the call returns the same
entities as GenericDao#readAll().
examples -
java.util.List<T> readByExample(java.util.Collection<T> examples)
sort - examples -
readByExample(Object...)
java.util.List<T> readByExample(Sort sort,
T... examples)
sort - examples -
readByExample(Object...)
java.util.List<T> readByExample(Sort sort,
java.util.Collection<T> examples)
sort - examples -
readByExample(Object...)
Page<T> readByExample(Pageable pageable,
T... examples)
null for the pageable, the call is identical to
ExtendedGenericDao#readByExample(T...).
pageable - examples -
Page<T> readByExample(Pageable pageable,
java.util.Collection<T> examples)
null for the pageable, the call is identical to
ExtendedGenericDao#readByExample(T...).
pageable - examples -
void deleteByExample(T... examples)
examples - void deleteByExample(java.util.Collection<T> examples)
examples -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||