Class MongoDbTransaction

All Implemented Interfaces:
DbExecute, DbTransaction

public class MongoDbTransaction extends MongoDbExecute implements DbTransaction
Transaction execute implementation for MongoDB.
  • Method Details

    • createNamedQuery

      public DbStatementQuery createNamedQuery(String statementName, String statement)
      Description copied from interface: DbExecute
      Create a database query using a named statement passed as argument.
      Specified by:
      createNamedQuery in interface DbExecute
      Overrides:
      createNamedQuery in class MongoDbExecute
      Parameters:
      statementName - the name of the statement
      statement - the query statement
      Returns:
      database statement that can process query returning multiple rows
    • createNamedGet

      public DbStatementGet createNamedGet(String statementName, String statement)
      Description copied from interface: DbExecute
      Create a database query returning a single row using a named statement passed as an argument.
      Specified by:
      createNamedGet in interface DbExecute
      Overrides:
      createNamedGet in class MongoDbExecute
      Parameters:
      statementName - the name of the statement
      statement - the statement text
      Returns:
      database statement that can process query returning a single row
    • createNamedDmlStatement

      public DbStatementDml createNamedDmlStatement(String statementName, String statement)
      Description copied from interface: DbExecute
      Create a data modification statement using a named statement passed as an argument.
      Specified by:
      createNamedDmlStatement in interface DbExecute
      Overrides:
      createNamedDmlStatement in class MongoDbExecute
      Parameters:
      statementName - the name of the statement
      statement - the statement text
      Returns:
      data modification statement
    • createNamedInsert

      public DbStatementDml createNamedInsert(String statementName, String statement)
      Description copied from interface: DbExecute
      Create an insert statement using a named statement passed as an argument.
      Specified by:
      createNamedInsert in interface DbExecute
      Overrides:
      createNamedInsert in class MongoDbExecute
      Parameters:
      statementName - the name of the statement
      statement - the statement text
      Returns:
      database statement that can insert data
    • createNamedUpdate

      public DbStatementDml createNamedUpdate(String statementName, String statement)
      Description copied from interface: DbExecute
      Create an update statement using a named statement passed as an argument.
      Specified by:
      createNamedUpdate in interface DbExecute
      Overrides:
      createNamedUpdate in class MongoDbExecute
      Parameters:
      statementName - the name of the statement
      statement - the statement text
      Returns:
      database statement that can update data
    • createNamedDelete

      public DbStatementDml createNamedDelete(String statementName, String statement)
      Description copied from interface: DbExecute
      Create a delete statement using a named statement passed as an argument.
      Specified by:
      createNamedDelete in interface DbExecute
      Overrides:
      createNamedDelete in class MongoDbExecute
      Parameters:
      statementName - the name of the statement
      statement - the statement text
      Returns:
      database statement that can delete data
    • rollback

      public void rollback()
      Description copied from interface: DbTransaction
      Configure this transaction to (eventually) rollback.
      Specified by:
      rollback in interface DbTransaction