|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.jpa.repository.query.AbstractJpaQuery
public abstract class AbstractJpaQuery
Abstract base class to implement RepositoryQuery
s.
Constructor Summary | |
---|---|
AbstractJpaQuery(JpaQueryMethod method,
javax.persistence.EntityManager em)
Creates a new AbstractJpaQuery from the given JpaQueryMethod . |
Method Summary | |
---|---|
protected ParameterBinder |
createBinder(Object[] values)
|
protected javax.persistence.TypedQuery<Long> |
createCountQuery(Object[] values)
|
protected javax.persistence.Query |
createQuery(Object[] values)
|
protected abstract javax.persistence.TypedQuery<Long> |
doCreateCountQuery(Object[] values)
Creates a TypedQuery for counting using the given values. |
protected abstract javax.persistence.Query |
doCreateQuery(Object[] values)
Creates a Query instance for the given values. |
Object |
execute(Object[] parameters)
|
protected javax.persistence.EntityManager |
getEntityManager()
|
protected JpaQueryExecution |
getExecution()
|
JpaQueryMethod |
getQueryMethod()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJpaQuery(JpaQueryMethod method, javax.persistence.EntityManager em)
AbstractJpaQuery
from the given JpaQueryMethod
.
method
- em
- Method Detail |
---|
public JpaQueryMethod getQueryMethod()
getQueryMethod
in interface RepositoryQuery
protected javax.persistence.EntityManager getEntityManager()
public Object execute(Object[] parameters)
execute
in interface RepositoryQuery
protected JpaQueryExecution getExecution()
protected ParameterBinder createBinder(Object[] values)
protected javax.persistence.Query createQuery(Object[] values)
protected javax.persistence.TypedQuery<Long> createCountQuery(Object[] values)
protected abstract javax.persistence.Query doCreateQuery(Object[] values)
Query
instance for the given values.
values
- must not be null.
protected abstract javax.persistence.TypedQuery<Long> doCreateCountQuery(Object[] values)
TypedQuery
for counting using the given values.
values
- must not be null.
|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |