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

Constructor Summary
JpaQueryMethod(Method method, RepositoryMetadata metadata, QueryExtractor extractor)
          Creates a JpaQueryMethod.
 
Method Summary
 String getNamedQueryName()
           
 boolean isModifyingQuery()
          Returns whether the finder is a modifying one.
 
Methods inherited from class org.springframework.data.repository.query.QueryMethod
createParameters, getDomainClass, getEntityInformation, getName, getParameters, getReturnedObjectType, isCollectionQuery, isPageQuery, 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

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

Spring Data Jpa

Copyright © 2011-2012 SpringSource. All Rights Reserved.