Spring Data Document

org.springframework.data.document.mongodb.repository
Interface QueryDslPredicateExecutor<T>

All Known Implementing Classes:
QueryDslMongoRepository

public interface QueryDslPredicateExecutor<T>

Interface for query methods taking a QueryDsl Predicate.

Author:
Oliver Gierke

Method Summary
 Long count(com.mysema.query.types.Predicate predicate)
          Returns the number of instances that the given Predicate will return.
 List<T> findAll(com.mysema.query.types.Predicate predicate)
          Returns all entities matching the given Predicate.
 List<T> findAll(com.mysema.query.types.Predicate predicate, com.mysema.query.types.OrderSpecifier<?>... orders)
          Returns all entities matching the given Predicate applying the given OrderSpecifiers.
 org.springframework.data.domain.Page<T> findAll(com.mysema.query.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
          Returns a Page of entities matching the given Predicate.
 T findOne(com.mysema.query.types.Predicate predicate)
          Returns a single entity matching the given Predicate.
 

Method Detail

findOne

T findOne(com.mysema.query.types.Predicate predicate)
Returns a single entity matching the given Predicate.

Parameters:
spec -
Returns:

findAll

List<T> findAll(com.mysema.query.types.Predicate predicate)
Returns all entities matching the given Predicate.

Parameters:
spec -
Returns:

findAll

List<T> findAll(com.mysema.query.types.Predicate predicate,
                com.mysema.query.types.OrderSpecifier<?>... orders)
Returns all entities matching the given Predicate applying the given OrderSpecifiers.

Parameters:
predicate -
orders -
Returns:

findAll

org.springframework.data.domain.Page<T> findAll(com.mysema.query.types.Predicate predicate,
                                                org.springframework.data.domain.Pageable pageable)
Returns a Page of entities matching the given Predicate.

Parameters:
predicate -
pageable -
Returns:

count

Long count(com.mysema.query.types.Predicate predicate)
Returns the number of instances that the given Predicate will return.

Parameters:
predicate - the Predicate to count instances for
Returns:
the number of instances

Spring Data Document

Copyright © 2011. All Rights Reserved.