Spring Data Jpa

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

java.lang.Object
  extended by org.springframework.data.jpa.repository.query.AbstractJpaQuery
      extended by org.springframework.data.jpa.repository.query.AbstractStringBasedJpaQuery
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery

public abstract class AbstractStringBasedJpaQuery
extends AbstractJpaQuery

Base class for String based JPA queries.

Author:
Oliver Gierke

Constructor Summary
AbstractStringBasedJpaQuery(JpaQueryMethod method, javax.persistence.EntityManager em)
          Creates a new AbstractStringBasedJpaQuery.
 
Method Summary
protected abstract  javax.persistence.Query createCountQuery(ParameterBinder binder)
          Create a count Query with the given ParameterBinder.
protected abstract  javax.persistence.Query createQuery(ParameterBinder binder)
          Create a Query with the given ParameterBinder.
protected  Object doExecute(JpaQueryExecution execution, Object[] parameters)
           
 
Methods inherited from class org.springframework.data.jpa.repository.query.AbstractJpaQuery
execute, getEntityManager, getParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStringBasedJpaQuery

public AbstractStringBasedJpaQuery(JpaQueryMethod method,
                                   javax.persistence.EntityManager em)
Creates a new AbstractStringBasedJpaQuery.

Parameters:
method -
em -
Method Detail

doExecute

protected Object doExecute(JpaQueryExecution execution,
                           Object[] parameters)
Specified by:
doExecute in class AbstractJpaQuery

createQuery

protected abstract javax.persistence.Query createQuery(ParameterBinder binder)
Create a Query with the given ParameterBinder.

Parameters:
binder -
Returns:

createCountQuery

protected abstract javax.persistence.Query createCountQuery(ParameterBinder binder)
Create a count Query with the given ParameterBinder.

Parameters:
binder -
Returns:

Spring Data Jpa

Copyright © 2011 SpringSource. All Rights Reserved.