Module spring.data.ldap
Class AnnotatedLdapRepositoryQuery
java.lang.Object
org.springframework.data.ldap.repository.query.AbstractLdapRepositoryQuery
org.springframework.data.ldap.repository.query.AnnotatedLdapRepositoryQuery
- All Implemented Interfaces:
RepositoryQuery
Handles queries for repository methods annotated with
Query.- Author:
- Mattias Hellborg Arthursson, Mark Paluch, Marcin Grzejszczak
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedLdapRepositoryQuery(LdapQueryMethod queryMethod, Class<?> entityType, org.springframework.ldap.core.LdapOperations ldapOperations, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext, EntityInstantiators instantiators) Deprecated.AnnotatedLdapRepositoryQuery(LdapQueryMethod queryMethod, Class<?> entityType, org.springframework.ldap.core.LdapOperations ldapOperations, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext, EntityInstantiators instantiators, ValueExpressionDelegate valueExpressionDelegate) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.ldap.query.LdapQuerycreateQuery(LdapParameterAccessor parameters) Creates aQueryinstance using the given parameters.Methods inherited from class org.springframework.data.ldap.repository.query.AbstractLdapRepositoryQuery
execute, getEntityClass, getQueryMethod
-
Constructor Details
-
AnnotatedLdapRepositoryQuery
@Deprecated(since="3.4") public AnnotatedLdapRepositoryQuery(LdapQueryMethod queryMethod, Class<?> entityType, org.springframework.ldap.core.LdapOperations ldapOperations, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext, EntityInstantiators instantiators) Deprecated.use the constructor withValueExpressionDelegateConstruct a new instance.- Parameters:
queryMethod- the QueryMethod.entityType- the managed class.ldapOperations- the LdapOperations instance to use.mappingContext- must not be null.instantiators- must not be null.
-
AnnotatedLdapRepositoryQuery
public AnnotatedLdapRepositoryQuery(LdapQueryMethod queryMethod, Class<?> entityType, org.springframework.ldap.core.LdapOperations ldapOperations, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext, EntityInstantiators instantiators, ValueExpressionDelegate valueExpressionDelegate) Construct a new instance.- Parameters:
queryMethod- the QueryMethod.entityType- the managed class.ldapOperations- the LdapOperations instance to use.mappingContext- must not be null.instantiators- must not be null.valueExpressionDelegate- must not be null- Since:
- 3.5
-
-
Method Details
-
createQuery
Description copied from class:AbstractLdapRepositoryQueryCreates aQueryinstance using the given parameters.- Specified by:
createQueryin classAbstractLdapRepositoryQuery- Parameters:
parameters- must not be null.- Returns:
-
ValueExpressionDelegate