org.apache.derby.impl.store.raw.data
Class TruncateOnCommit

java.lang.Object
  extended by org.apache.derby.impl.store.raw.data.ContainerActionOnCommit
      extended by org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
          extended by org.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.ContainerActionOnCommit
identity
 
Constructor Summary
TruncateOnCommit(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)
           
 
Methods inherited from class org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
openContainerAndDoIt
 
Methods inherited from class org.apache.derby.impl.store.raw.data.ContainerActionOnCommit
hashCode
 
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(ContainerKey identity,
                        boolean commitAsWell)
Method Detail

update

public void update(java.util.Observable obj,
                   java.lang.Object arg)

doIt

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

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

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.