Top Description Fields Constructors Methods
org.apache.derby.impl.store.raw.data

public Class TruncateOnCommit

extends ContainerHandleActionOnCommit
Class Inheritance
Imports
org.apache.derby.iapi.services.monitor.DerbyObservable, org.apache.derby.iapi.store.raw.ContainerHandle, .ContainerLock, .Page, .LockingPolicy, .RecordHandle, .ContainerKey, org.apache.derby.iapi.store.raw.data.RawContainerHandle, org.apache.derby.iapi.store.raw.log.LogInstant, org.apache.derby.iapi.store.raw.xact.RawTransaction, org.apache.derby.iapi.services.locks.Lockable, org.apache.derby.catalog.UUID, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.sanity.SanityManager

Truncate a temp table on a commit, abort or rollback to savepoint

Field Summary

Modifier and TypeField and Description
private boolean
commitAsWell

Truncate on a commit as well.

Constructor Summary

AccessConstructor and Description
public
TruncateOnCommit(ContainerKey identity, boolean commitAsWell)

Method Summary

Modifier and TypeMethod and Description
protected void
public boolean
equals(Object
the reference object with which to compare.
other
)

Overrides org.apache.derby.impl.store.raw.data.ContainerActionOnCommit.equals.

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.

public void
update(DerbyObservable
The object which is being observed
obj
,
Object
Extra information being passed to the callback
arg
)

Implements org.apache.derby.iapi.services.monitor.DerbyObserver.update.

This is the callback method which is invoked when a change happens to the object which is being observed.

Inherited from org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit:
openContainerAndDoIt

Field Detail

commitAsWellback to summary
private boolean commitAsWell

Truncate on a commit as well.

Constructor Detail

TruncateOnCommitback to summary
public TruncateOnCommit(ContainerKey identity, boolean commitAsWell)

Method Detail

doItback to summary
protected void doIt(BaseContainerHandle handle) throws StandardException

Implements abstract org.apache.derby.impl.store.raw.data.ContainerHandleActionOnCommit.doIt.

Exceptions
StandardException:
Standard Derby error policy
equalsback to summary
public boolean equals(Object other)

Overrides org.apache.derby.impl.store.raw.data.ContainerActionOnCommit.equals.

Doc from org.apache.derby.impl.store.raw.data.ContainerActionOnCommit.equals.

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.

Parameters
other:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

updateback to summary
public void update(DerbyObservable obj, Object arg)

Implements org.apache.derby.iapi.services.monitor.DerbyObserver.update.

Doc from org.apache.derby.iapi.services.monitor.DerbyObserver.update.

This is the callback method which is invoked when a change happens to the object which is being observed.

Parameters
obj:DerbyObservable

The object which is being observed

arg:Object

Extra information being passed to the callback