Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
Modifier and Type | Field and Description |
---|---|
static CursorPreparer |
CursorPreparer.NO_OP_PREPARER
Default
CursorPreparer just passing on the given FindIterable . |
Modifier and Type | Method and Description |
---|---|
protected <S,T> List<T> |
MongoTemplate.doFind(String collectionName,
org.bson.Document query,
org.bson.Document fields,
Class<S> entityClass,
CursorPreparer preparer,
org.springframework.data.mongodb.core.MongoTemplate.DocumentCallback<T> objectCallback) |
protected <T> List<T> |
MongoTemplate.doFind(String collectionName,
org.bson.Document query,
org.bson.Document fields,
Class<T> entityClass,
CursorPreparer preparer)
Map the results of an ad-hoc query on the default MongoDB collection to a List of the specified type.
|
protected <T> T |
MongoTemplate.doFindOne(String collectionName,
org.bson.Document query,
org.bson.Document fields,
CursorPreparer preparer,
Class<T> entityClass)
Map the results of an ad-hoc query on the default MongoDB collection to an object using the template's converter.
|
protected void |
MongoTemplate.executeQuery(Query query,
String collectionName,
DocumentCallbackHandler documentCallbackHandler,
CursorPreparer preparer)
Execute a MongoDB query and iterate over the query results on a per-document basis with a
DocumentCallbackHandler using the provided CursorPreparer. |
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.