Class AbstractLdapRepositoryQuery
java.lang.Object
org.springframework.data.ldap.repository.query.AbstractLdapRepositoryQuery
- All Implemented Interfaces:
RepositoryQuery
- Direct Known Subclasses:
AnnotatedLdapRepositoryQuery
,PartTreeLdapRepositoryQuery
Base class for
RepositoryQuery
implementations for LDAP.- Author:
- Mattias Hellborg Arthursson, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractLdapRepositoryQuery
(LdapQueryMethod queryMethod, Class<?> entityType, org.springframework.ldap.core.LdapOperations ldapOperations, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext, EntityInstantiators instantiators) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.springframework.ldap.query.LdapQuery
createQuery
(org.springframework.data.ldap.repository.query.LdapParameterAccessor parameters) Creates aQuery
instance using the given parameters.final Object
protected Class<?>
final QueryMethod
-
Constructor Details
-
AbstractLdapRepositoryQuery
public AbstractLdapRepositoryQuery(LdapQueryMethod queryMethod, Class<?> entityType, org.springframework.ldap.core.LdapOperations ldapOperations, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> mappingContext, EntityInstantiators instantiators) - Parameters:
queryMethod
- must not be null.entityType
- must not be null.ldapOperations
- must not be null.mappingContext
- must not be null.instantiators
- must not be null.
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceRepositoryQuery
-
createQuery
protected abstract org.springframework.ldap.query.LdapQuery createQuery(org.springframework.data.ldap.repository.query.LdapParameterAccessor parameters) Creates aQuery
instance using the given parameters.- Parameters:
parameters
- must not be null.- Returns:
-
getEntityClass
- Returns:
-
getQueryMethod
- Specified by:
getQueryMethod
in interfaceRepositoryQuery
-