public abstract class AbstractJpaQuery extends Object implements RepositoryQuery
RepositoryQuery
s.Constructor and Description |
---|
AbstractJpaQuery(JpaQueryMethod method,
javax.persistence.EntityManager em)
Creates a new
AbstractJpaQuery from the given JpaQueryMethod . |
Modifier and Type | Method and Description |
---|---|
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() |
public AbstractJpaQuery(JpaQueryMethod method, javax.persistence.EntityManager em)
AbstractJpaQuery
from the given JpaQueryMethod
.method
- em
- 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 abstract javax.persistence.Query doCreateQuery(Object[] values)
Query
instance for the given values.values
- must not be null.Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.