Class TransactionRollback

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.jdbc.TransactionRollback

@BoxBIF public class TransactionRollback extends BIF
  • Constructor Details

    • TransactionRollback

      public TransactionRollback()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Rollback the current transaction and discard all unpersisted queries.

      Only the changes made since the last transactionSetSavepoint() or transactionCommit() call will be discarded.

      If no transaction is found in the current context, this method will throw an exception.

      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation
    • getTransactionForContext

      public ITransaction getTransactionForContext(IBoxContext context)
      Appends an element to a list
      Parameters:
      context - The context in which the BIF is being invoked.