Interface DbCallback<T>
public interface DbCallback<T>
Callback interface for executing actions against a
MongoDatabase
.- Author:
- Mark Pollak, Graeme Rocher, Thomas Risberg, Oliver Gierke, John Brisbin, Christoph Strobl
-
Method Summary
-
Method Details
-
doInDB
@Nullable T doInDB(com.mongodb.client.MongoDatabase db) throws com.mongodb.MongoException, DataAccessException - Parameters:
db
- must not be null.- Returns:
- can be null.
- Throws:
com.mongodb.MongoException
DataAccessException
-