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 org.apache.derby.impl.store.raw.data.ContainerActionOnCommit
identity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doIt
(BaseContainerHandle handle) boolean
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
(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 org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit
openContainerAndDoIt
Methods inherited from class org.apache.derby.impl.store.raw.data.ContainerActionOnCommit
hashCode
-
Field Details
-
commitAsWell
private boolean commitAsWellTruncate on a commit as well.
-
-
Constructor Details
-
TruncateOnCommit
-
-
Method Details
-
update
Description copied from interface:DerbyObserver
This 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:
doIt
in classContainerHandleActionOnCommit
- Throws:
StandardException
- Standard Derby error policy
-
equals
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 classContainerActionOnCommit
-