org.springframework.ldap.repository.support
Class QueryDslLdapRepository<T>
java.lang.Object
org.springframework.ldap.repository.support.SimpleLdapRepository<T>
org.springframework.ldap.repository.support.QueryDslLdapRepository<T>
- All Implemented Interfaces:
- org.springframework.data.querydsl.QueryDslPredicateExecutor<T>, org.springframework.data.repository.CrudRepository<T,Name>, org.springframework.data.repository.Repository<T,Name>, LdapRepository<T>
public class QueryDslLdapRepository<T>
- extends SimpleLdapRepository<T>
- implements org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
Base repository implementation for QueryDSL support.
- Since:
- 2.0
- Author:
- Mattias Hellborg Arthursson
Method Summary |
long |
count(com.mysema.query.types.Predicate predicate)
|
List<T> |
findAll(com.mysema.query.types.Predicate predicate)
|
Iterable<T> |
findAll(com.mysema.query.types.Predicate predicate,
com.mysema.query.types.OrderSpecifier<?>... orders)
|
org.springframework.data.domain.Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable)
|
T |
findOne(com.mysema.query.types.Predicate predicate)
|
Methods inherited from class org.springframework.ldap.repository.support.SimpleLdapRepository |
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findOne, findOne, getClazz, getLdapOperations, save, save |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryDslLdapRepository
public QueryDslLdapRepository(LdapOperations ldapOperations,
ObjectDirectoryMapper odm,
Class<T> clazz)
findOne
public T findOne(com.mysema.query.types.Predicate predicate)
- Specified by:
findOne
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
findAll
public List<T> findAll(com.mysema.query.types.Predicate predicate)
- Specified by:
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
count
public long count(com.mysema.query.types.Predicate predicate)
- Specified by:
count
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
findAll
public Iterable<T> findAll(com.mysema.query.types.Predicate predicate,
com.mysema.query.types.OrderSpecifier<?>... orders)
- Specified by:
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
findAll
public org.springframework.data.domain.Page<T> findAll(com.mysema.query.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable)
- Specified by:
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>