|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.jpa.repository.query.AbstractJpaQuery
public abstract class AbstractJpaQuery
Abstract base class to implement RepositoryQuerys.
| 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 RepositoryQueryprotected javax.persistence.EntityManager getEntityManager()
public Object execute(Object[] parameters)
execute in interface RepositoryQueryprotected 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 | |||||||||