Class NoTransaction

java.lang.Object
com.jbstrap.core.dao.base.NoTransaction
All Implemented Interfaces:
Transaction

public class NoTransaction extends Object implements Transaction
  • Constructor Details

    • NoTransaction

      public NoTransaction()
  • Method Details

    • getTransactionObject

      public Object getTransactionObject()
      Specified by:
      getTransactionObject in interface Transaction
    • commit

      public Transaction commit() throws ConnectionException
      Description copied from interface: Transaction
      Commits the transaction towards the data store. Following this, no additional operation can be done in the transaction, and it cannot be rolled back.
      Specified by:
      commit in interface Transaction
      Returns:
      The transaction instance
      Throws:
      ConnectionException - If any error is encountered during the commit. In every case, the error most be packaged in this type of error.
    • rollBack

      public Transaction rollBack() throws ConnectionException
      Description copied from interface: Transaction
      Rolls back the current transaction. Following this, no additional operation can be done in the transaction, and it cannot be committed.
      Specified by:
      rollBack in interface Transaction
      Returns:
      The transaction instance
      Throws:
      ConnectionException