Spring Data JPA

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

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

public class PartTreeJpaQuery
extends AbstractJpaQuery

A AbstractJpaQuery implementation based on a PartTree.

Author:
Oliver Gierke, Thomas Darimont

Constructor Summary
PartTreeJpaQuery(JpaQueryMethod method, javax.persistence.EntityManager em)
          Creates a new PartTreeJpaQuery.
 
Method Summary
 javax.persistence.TypedQuery<Long> doCreateCountQuery(Object[] values)
          Creates a TypedQuery for counting using the given values.
 javax.persistence.Query doCreateQuery(Object[] values)
          Creates a Query instance for the given values.
protected  JpaQueryExecution getExecution()
           
 
Methods inherited from class org.springframework.data.jpa.repository.query.AbstractJpaQuery
applyHints, applyQueryHint, createBinder, createCountQuery, createQuery, execute, getEntityManager, getQueryMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartTreeJpaQuery

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

Parameters:
method - must not be null.
em - must not be null.
Method Detail

doCreateQuery

public javax.persistence.Query doCreateQuery(Object[] values)
Description copied from class: AbstractJpaQuery
Creates a Query instance for the given values.

Specified by:
doCreateQuery in class AbstractJpaQuery
Parameters:
values - must not be null.
Returns:

doCreateCountQuery

public javax.persistence.TypedQuery<Long> doCreateCountQuery(Object[] values)
Description copied from class: AbstractJpaQuery
Creates a TypedQuery for counting using the given values.

Specified by:
doCreateCountQuery in class AbstractJpaQuery
Parameters:
values - must not be null.
Returns:

getExecution

protected JpaQueryExecution getExecution()
Overrides:
getExecution in class AbstractJpaQuery

Spring Data JPA

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.