Spring Data Document

org.springframework.data.mongodb.repository.support
Class QuerydslRepositorySupport

java.lang.Object
  extended by org.springframework.data.mongodb.repository.support.QuerydslRepositorySupport

public abstract class QuerydslRepositorySupport
extends Object

Base class to create repository implementations based on Querydsl.

Author:
Oliver Gierke

Constructor Summary
QuerydslRepositorySupport(MongoOperations operations)
          Creates a new QuerydslRepositorySupport for the given MongoOperations.
 
Method Summary
protected
<T> com.mysema.query.mongodb.MongodbQuery<T>
from(com.mysema.query.types.EntityPath<T> path)
          Returns a MongodbQuery for the given EntityPath.
protected
<T> com.mysema.query.mongodb.MongodbQuery<T>
from(com.mysema.query.types.EntityPath<T> path, String collection)
          Returns a MongodbQuery for the given EntityPath querying the given collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuerydslRepositorySupport

public QuerydslRepositorySupport(MongoOperations operations)
Creates a new QuerydslRepositorySupport for the given MongoOperations.

Parameters:
operations - must not be null
Method Detail

from

protected <T> com.mysema.query.mongodb.MongodbQuery<T> from(com.mysema.query.types.EntityPath<T> path)
Returns a MongodbQuery for the given EntityPath. The collection being queried is derived from the entity metadata.

Parameters:
path -
Returns:

from

protected <T> com.mysema.query.mongodb.MongodbQuery<T> from(com.mysema.query.types.EntityPath<T> path,
                                                            String collection)
Returns a MongodbQuery for the given EntityPath querying the given collection.

Parameters:
path - must not be null
collection - must not be blank or null
Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.