public interface CollectionCallbackExecutor
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(String collectionName,
CollectionCallback<T> callback)
Executes the given
CollectionCallback on the collection of the given name. |
<T> T execute(String collectionName, CollectionCallback<T> callback)
CollectionCallback
on the collection of the given name.
Allows for returning a result object, that is a domain object or a collection of domain objects.T
- return typecollectionName
- the name of the collection that specifies which DBCollection instance will be passed intoaction
- callback object that specifies the MongoDB action the callback action.Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.