Spring Data JPA

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

java.lang.Object
  extended by org.springframework.data.repository.query.QueryMethod
      extended by org.springframework.data.jpa.repository.query.JpaQueryMethod

public class JpaQueryMethod
extends QueryMethod

JPA specific extension of QueryMethod.

Author:
Oliver Gierke, Thomas Darimont

Constructor Summary
JpaQueryMethod(Method method, RepositoryMetadata metadata, QueryExtractor extractor)
          Creates a JpaQueryMethod.
 
Method Summary
protected  JpaParameters createParameters(Method method)
           
 JpaEntityMetadata<?> getEntityInformation()
           
 String getNamedQueryName()
           
 JpaParameters getParameters()
           
 boolean isCollectionQuery()
           
 boolean isModifyingQuery()
          Returns whether the finder is a modifying one.
 
Methods inherited from class org.springframework.data.repository.query.QueryMethod
getDomainClass, getName, getReturnedObjectType, isPageQuery, isQueryForEntity, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JpaQueryMethod

public JpaQueryMethod(Method method,
                      RepositoryMetadata metadata,
                      QueryExtractor extractor)
Creates a JpaQueryMethod.

Parameters:
method - must not be null
extractor - must not be null
metadata - must not be null
Method Detail

getEntityInformation

public JpaEntityMetadata<?> getEntityInformation()
Overrides:
getEntityInformation in class QueryMethod

isModifyingQuery

public boolean isModifyingQuery()
Returns whether the finder is a modifying one.

Overrides:
isModifyingQuery in class QueryMethod
Returns:

getNamedQueryName

public String getNamedQueryName()
Overrides:
getNamedQueryName in class QueryMethod

createParameters

protected JpaParameters createParameters(Method method)
Overrides:
createParameters in class QueryMethod

getParameters

public JpaParameters getParameters()
Overrides:
getParameters in class QueryMethod

isCollectionQuery

public boolean isCollectionQuery()
Overrides:
isCollectionQuery in class QueryMethod

Spring Data JPA

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.