Class TruncateOnCommit
- java.lang.Object
-
- org.apache.derby.impl.store.raw.data.ContainerActionOnCommit
-
- org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
-
- org.apache.derby.impl.store.raw.data.TruncateOnCommit
-
- All Implemented Interfaces:
DerbyObserver
public class TruncateOnCommit extends ContainerHandleActionOnCommit
Truncate a temp table on a commit, abort or rollback to savepoint
-
-
Field Summary
Fields Modifier and Type Field Description private booleancommitAsWellTruncate on a commit as well.-
Fields inherited from class org.apache.derby.impl.store.raw.data.ContainerActionOnCommit
identity
-
-
Constructor Summary
Constructors Constructor Description TruncateOnCommit(ContainerKey identity, boolean commitAsWell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoIt(BaseContainerHandle handle)booleanequals(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.voidupdate(DerbyObservable obj, java.lang.Object arg)This is the callback method which is invoked when a change happens to the object which is being observed.-
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
-
-
-
-
Constructor Detail
-
TruncateOnCommit
public TruncateOnCommit(ContainerKey identity, boolean commitAsWell)
-
-
Method Detail
-
update
public void update(DerbyObservable obj, java.lang.Object arg)
Description copied from interface:DerbyObserverThis 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 observedarg- Extra information being passed to the callback
-
doIt
protected void doIt(BaseContainerHandle handle) throws StandardException
- Specified by:
doItin classContainerHandleActionOnCommit- Throws:
StandardException- Standard Derby error policy
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:ContainerActionOnCommitAn 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:
equalsin classContainerActionOnCommit
-
-