Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.store.raw.data
Class TruncateOnCommit  view TruncateOnCommit download TruncateOnCommit.java

java.lang.Object
  extended byorg.apache.derby.impl.store.raw.data.ContainerActionOnCommit
      extended byorg.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
          extended byorg.apache.derby.impl.store.raw.data.TruncateOnCommit
All Implemented Interfaces:
java.util.Observer

public class TruncateOnCommit
extends ContainerHandleActionOnCommit

Truncate a temp table on a commit, abort or rollback to savepoint


Field Summary
private  boolean commitAsWell
          Truncate on a commit as well.
 
Fields inherited from class org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
identity
 
Constructor Summary
TruncateOnCommit(org.apache.derby.iapi.store.raw.ContainerKey identity, boolean commitAsWell)
           
 
Method Summary
protected  void doIt(BaseContainerHandle handle)
           
 boolean equals(java.lang.Object other)
          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.
 void update(java.util.Observable obj, java.lang.Object arg)
          This method is called whenever the observable object changes, and has called notifyObservers.
 
Methods inherited from class org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
hashCode, openContainerAndDoIt
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commitAsWell

private boolean commitAsWell
Truncate on a commit as well.

Constructor Detail

TruncateOnCommit

public TruncateOnCommit(org.apache.derby.iapi.store.raw.ContainerKey identity,
                        boolean commitAsWell)
Method Detail

update

public void update(java.util.Observable obj,
                   java.lang.Object arg)
Description copied from interface: java.util.Observer
This method is called whenever the observable object changes, and has called notifyObservers. The Observable object can pass arbitrary information in the second parameter.


doIt

protected void doIt(BaseContainerHandle handle)
             throws org.apache.derby.iapi.error.StandardException
Specified by:
doIt in class ContainerHandleActionOnCommit

equals

public boolean equals(java.lang.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