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

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

public abstract class ContainerHandleActionOnCommit
extends ContainerActionOnCommit

An abstract class that opens the container at commit and delegates the actual work to a sub-class.


Field Summary
protected  ContainerKey identity
           
 
Constructor Summary
ContainerHandleActionOnCommit(ContainerKey identity)
           
 
Method Summary
protected abstract  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.
 int hashCode()
           
 void openContainerAndDoIt(RawTransaction xact)
          Open the container and call the doIt method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Observer
update
 

Field Detail

identity

protected ContainerKey identity
Constructor Detail

ContainerHandleActionOnCommit

public ContainerHandleActionOnCommit(ContainerKey identity)
Method Detail

openContainerAndDoIt

public void openContainerAndDoIt(RawTransaction xact)
Open the container and call the doIt method


doIt

protected abstract void doIt(BaseContainerHandle handle)
                      throws StandardException
Throws:
StandardException

hashCode

public int hashCode()

equals

public 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.
This allows mutiple additions of value equality obejcts to the observer list while only retaining one.



Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.