public class DBObjectQuerySpecification
extends org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification
| Constructor and Description |
|---|
DBObjectQuerySpecification(String collectionName,
com.mongodb.DBObject query,
com.mongodb.DBObject projection,
com.mongodb.DBObject orderBy,
org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn[] queryReturns,
Collection<String> querySpaces) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName()
The name of the collection to select from.
|
com.mongodb.DBObject |
getOrderBy() |
com.mongodb.DBObject |
getProjection()
The fields to be selected, if this query doesn't return all fields of the entity.
|
com.mongodb.DBObject |
getQuery()
The actual query object.
|
public DBObjectQuerySpecification(String collectionName, com.mongodb.DBObject query, com.mongodb.DBObject projection, com.mongodb.DBObject orderBy, org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn[] queryReturns, Collection<String> querySpaces)
public String getCollectionName()
public com.mongodb.DBObject getQuery()
public com.mongodb.DBObject getProjection()
keys
parameter of the MongoDB find API.public com.mongodb.DBObject getOrderBy()
Copyright © 2010-2014 Hibernate. All Rights Reserved.