K
- result typepublic class MorphiaQuery<K> extends AbstractMongodbQuery<K,MorphiaQuery<K>>
MorphiaQuery
extends AbstractMongodbQuery
with Morphia specific transformations
Example
QUser user = QUser.user;
MorphiaQuery<User> query = new MorphiaQuery<User>(morphia, datastore, user);
List<User> list = query
.where(user.firstName.eq("Bob"))
.fetch();
Constructor and Description |
---|
MorphiaQuery(org.mongodb.morphia.Morphia morphia,
org.mongodb.morphia.Datastore datastore,
Class<? extends K> entityType) |
MorphiaQuery(org.mongodb.morphia.Morphia morphia,
org.mongodb.morphia.Datastore datastore,
org.mongodb.morphia.mapping.cache.EntityCache cache,
Class<? extends K> entityType) |
MorphiaQuery(org.mongodb.morphia.Morphia morphia,
org.mongodb.morphia.Datastore datastore,
org.mongodb.morphia.mapping.cache.EntityCache cache,
EntityPath<K> entityPath) |
MorphiaQuery(org.mongodb.morphia.Morphia morphia,
org.mongodb.morphia.Datastore datastore,
EntityPath<K> entityPath) |
Modifier and Type | Method and Description |
---|---|
protected com.mongodb.DBCursor |
createCursor() |
protected com.mongodb.DBCollection |
getCollection(Class<?> type) |
anyEmbedded, asDBObject, createCursor, createFilter, createJoinFilter, distinct, fetch, fetch, fetchCount, fetchFirst, fetchFirst, fetchOne, fetchOne, fetchResults, fetchResults, getIds, iterate, iterate, join, join, limit, offset, orderBy, orderBy, restrict, set, setReadPreference, toString, where, where
public MorphiaQuery(org.mongodb.morphia.Morphia morphia, org.mongodb.morphia.Datastore datastore, EntityPath<K> entityPath)
public MorphiaQuery(org.mongodb.morphia.Morphia morphia, org.mongodb.morphia.Datastore datastore, Class<? extends K> entityType)
public MorphiaQuery(org.mongodb.morphia.Morphia morphia, org.mongodb.morphia.Datastore datastore, org.mongodb.morphia.mapping.cache.EntityCache cache, EntityPath<K> entityPath)
protected com.mongodb.DBCursor createCursor()
createCursor
in class AbstractMongodbQuery<K,MorphiaQuery<K>>
protected com.mongodb.DBCollection getCollection(Class<?> type)
getCollection
in class AbstractMongodbQuery<K,MorphiaQuery<K>>
Copyright © 2007–2016 Querydsl. All rights reserved.