public class MongoDBQueryDescriptor extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoDBQueryDescriptor.Operation |
| Constructor and Description |
|---|
MongoDBQueryDescriptor(String collectionName,
MongoDBQueryDescriptor.Operation operation,
com.mongodb.DBObject criteria,
com.mongodb.DBObject projection,
com.mongodb.DBObject orderBy) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName()
The name of the collection to select from.
|
com.mongodb.DBObject |
getCriteria()
Criteria describing the records to apply this query to.
|
MongoDBQueryDescriptor.Operation |
getOperation() |
com.mongodb.DBObject |
getOrderBy()
Get the order criteria of the result of the query.
|
com.mongodb.DBObject |
getProjection()
The fields to be selected, if this query doesn't return all fields of the entity.
|
String |
toString() |
public MongoDBQueryDescriptor(String collectionName, MongoDBQueryDescriptor.Operation operation, com.mongodb.DBObject criteria, com.mongodb.DBObject projection, com.mongodb.DBObject orderBy)
public String getCollectionName()
public MongoDBQueryDescriptor.Operation getOperation()
public com.mongodb.DBObject getCriteria()
DBObject representing the criteriapublic com.mongodb.DBObject getProjection()
keys
parameter of the MongoDB find API.DBObject representing the projectionpublic com.mongodb.DBObject getOrderBy()
DBObject representing the order to apply the results of the queryCopyright © 2010-2014 Hibernate. All Rights Reserved.