Class TruncateOnCommit

All Implemented Interfaces:
DerbyObserver

public class TruncateOnCommit extends ContainerHandleActionOnCommit
Truncate a temp table on a commit, abort or rollback to savepoint
  • Field Details

    • commitAsWell

      private boolean commitAsWell
      Truncate on a commit as well.
  • Constructor Details

    • TruncateOnCommit

      public TruncateOnCommit(ContainerKey identity, boolean commitAsWell)
  • Method Details

    • update

      public void update(DerbyObservable obj, Object arg)
      Description copied from interface: DerbyObserver
      This is the callback method which is invoked when a change happens to the object which is being observed.
      Parameters:
      obj - The object which is being observed
      arg - Extra information being passed to the callback
    • doIt

      protected void doIt(BaseContainerHandle handle) throws StandardException
      Specified by:
      doIt in class ContainerHandleActionOnCommit
      Throws:
      StandardException - Standard Derby error policy
    • equals

      public boolean equals(Object other)
      Description copied from class: ContainerActionOnCommit
      An equals method that returns true if the other obejct is a sub-class of this, and the container identities are equal *and* it is the same class as this.
      This allows mutiple additions of value equality obejcts to the observer list while only retaining one.
      Overrides:
      equals in class ContainerActionOnCommit