Spring Data Jpa

org.springframework.data.jpa.repository.query
Class AbstractJpaQuery

java.lang.Object
  extended by 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 RepositoryQuerys.

Author:
Oliver Gierke

Constructor Summary
AbstractJpaQuery(JpaQueryMethod method, javax.persistence.EntityManager em)
          Creates a new AbstractJpaQuery from the given JpaQueryMethod.
 
Method Summary
protected abstract  Object doExecute(JpaQueryExecution execution, Object[] parameters)
           
 Object execute(Object[] parameters)
           
 javax.persistence.EntityManager getEntityManager()
           
protected  JpaQueryExecution getExecution()
           
 org.springframework.data.repository.query.Parameters getParameters()
           
 org.springframework.data.repository.query.QueryMethod getQueryMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJpaQuery

public AbstractJpaQuery(JpaQueryMethod method,
                        javax.persistence.EntityManager em)
Creates a new AbstractJpaQuery from the given JpaQueryMethod.

Parameters:
method -
em -
Method Detail

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)

Spring Data Jpa

Copyright © 2011 SpringSource. All Rights Reserved.