|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectQueryMethod
org.springframework.data.document.mongodb.repository.MongoQueryMethod
class MongoQueryMethod
TODO - Extract methods for getAnnotatedQuery()
into superclass as it is currently copied from Spring Data
JPA
Field Summary | |
---|---|
private MongoEntityInformation<?,?> |
entityInformation
|
private java.lang.reflect.Method |
method
|
Constructor Summary | |
---|---|
MongoQueryMethod(java.lang.reflect.Method method,
RepositoryMetadata metadata,
MongoRepositoryFactoryBean.EntityInformationCreator entityInformationCreator)
Creates a new MongoQueryMethod from the given Method . |
Method Summary | |
---|---|
(package private) java.lang.String |
getAnnotatedQuery()
Returns the query string declared in a Query annotation or null if neither the annotation found
nor the attribute was specified. |
MongoEntityInformation<?,?> |
getEntityInformation()
|
(package private) java.lang.String |
getFieldSpecification()
Returns the field specification to be used for the query. |
private Query |
getQueryAnnotation()
Returns the Query annotation that is applied to the method or null if none available. |
(package private) boolean |
hasAnnotatedQuery()
Returns whether the method has an annotated query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.reflect.Method method
private final MongoEntityInformation<?,?> entityInformation
Constructor Detail |
---|
public MongoQueryMethod(java.lang.reflect.Method method, RepositoryMetadata metadata, MongoRepositoryFactoryBean.EntityInformationCreator entityInformationCreator)
MongoQueryMethod
from the given Method
.
method
- Method Detail |
---|
boolean hasAnnotatedQuery()
java.lang.String getAnnotatedQuery()
Query
annotation or null if neither the annotation found
nor the attribute was specified.
java.lang.String getFieldSpecification()
public MongoEntityInformation<?,?> getEntityInformation()
private Query getQueryAnnotation()
Query
annotation that is applied to the method or null
if none available.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |