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

    Modifier and Type
    Method
    Description
    doInDB(com.mongodb.client.MongoDatabase db)
     
  • Method Details

    • doInDB

      @Nullable T doInDB(com.mongodb.client.MongoDatabase db) throws com.mongodb.MongoException, org.springframework.dao.DataAccessException
      Parameters:
      db - must not be null.
      Returns:
      can be null.
      Throws:
      com.mongodb.MongoException
      org.springframework.dao.DataAccessException