Interface CollectionCallback<T>
public interface CollectionCallback<T>
Callback interface for executing actions against a
MongoCollection.- Since:
- 1.0
- Author:
- Mark Pollak, Grame Rocher, Oliver Gierke, John Brisbin, Christoph Strobl
-
Method Summary
-
Method Details
-
doInCollection
@Nullable T doInCollection(MongoCollection<Document> collection) throws MongoException, DataAccessException - Parameters:
collection- never null.- Returns:
- can be null.
- Throws:
MongoExceptionDataAccessException
-