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
Truncate a temp table on a commit, abort or rollback to savepoint
-
Field Summary
FieldsFields inherited from class ContainerActionOnCommit
identity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoIt(BaseContainerHandle handle) booleanAn 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, 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 ContainerHandleActionOnCommit
openContainerAndDoItMethods inherited from class ContainerActionOnCommit
hashCode
-
Field Details
-
commitAsWell
private boolean commitAsWellTruncate on a commit as well.
-
-
Constructor Details
-
TruncateOnCommit
-
-
Method Details
-
update
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
- Specified by:
doItin classContainerHandleActionOnCommit- Throws:
StandardException- Standard Derby error policy
-
equals
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
-