|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The Entity TypeID - The ID of the EntityPK - The type of the primary keypublic interface JpaRepository<T extends Entity<T,ID>,ID extends Serializable,PK extends Serializable>
An extended repository interface specific for JPA
| Method Summary | |
|---|---|
void |
clear()
Clear the persistence context, causing all managed entities to become detached. |
List<T> |
findByNamedQuery(String queryName,
Map<String,? extends Object> args)
Find instances of T that match the criteria defined by query queryName. |
List<T> |
findByNamedQuery(String queryName,
Object[] args)
Find instances of T that match the criteria defined by query queryName. |
T |
findInstanceByNamedQuery(String queryName,
Map<String,? extends Object> args)
Find a single instance of T using the query named queryName and the arguments
identified by args. |
T |
findInstanceByNamedQuery(String queryName,
Object[] args)
Find a single instance of T using the query named queryName and the arguments
identified by args. |
| Methods inherited from interface se.vgregion.dao.domain.patterns.repository.db.DatabaseRepository |
|---|
findByPrimaryKey, removeByPrimaryKey |
| Methods inherited from interface se.vgregion.dao.domain.patterns.repository.Repository |
|---|
contains, find, findAll, flush, merge, persist, refresh, remove, remove, store |
| Method Detail |
|---|
void clear()
List<T> findByNamedQuery(String queryName,
Map<String,? extends Object> args)
T that match the criteria defined by query queryName.
args provide the values for any named parameters in the query identified by
queryName.
queryName - the named query to executeargs - the values used by the query
T objects
List<T> findByNamedQuery(String queryName,
Object[] args)
T that match the criteria defined by query queryName.
args provide values for positional arguments in the query identified by queryName.
queryName - the named query to executeargs - the positional values used in the query
T objects
T findInstanceByNamedQuery(String queryName,
Object[] args)
T using the query named queryName and the arguments
identified by args.
queryName - the name of the query to useargs - the arguments for the named query
T findInstanceByNamedQuery(String queryName,
Map<String,? extends Object> args)
T using the query named queryName and the arguments
identified by args.
queryName - the name of the query to useargs - a Map holding the named parameters of the query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||