org.springframework.data.jpa.repository.query
Class AbstractJpaQuery
java.lang.Object
org.springframework.data.jpa.repository.query.AbstractJpaQuery
- All Implemented Interfaces:
- org.springframework.data.repository.query.RepositoryQuery
- Direct Known Subclasses:
- AbstractStringBasedJpaQuery, PartTreeJpaQuery
public abstract class AbstractJpaQuery
- extends Object
- implements org.springframework.data.repository.query.RepositoryQuery
Abstract base class to implement RepositoryQuery
s.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJpaQuery
public AbstractJpaQuery(JpaQueryMethod method,
javax.persistence.EntityManager em)
- Creates a new
AbstractJpaQuery
from the given
JpaQueryMethod
.
- Parameters:
method
- em
-
getQueryMethod
public org.springframework.data.repository.query.QueryMethod getQueryMethod()
- Specified by:
getQueryMethod
in interface org.springframework.data.repository.query.RepositoryQuery
getParameters
public org.springframework.data.repository.query.Parameters getParameters()
- Returns:
- the parameters
getEntityManager
public javax.persistence.EntityManager getEntityManager()
- Returns:
- the em
execute
public Object execute(Object[] parameters)
- Specified by:
execute
in interface org.springframework.data.repository.query.RepositoryQuery
getExecution
protected JpaQueryExecution getExecution()
doExecute
protected abstract Object doExecute(JpaQueryExecution execution,
Object[] parameters)
Copyright © 2011 SpringSource. All Rights Reserved.