Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class LockTableConstantAction

extends Object
implements ConstantAction
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.sql.execute.ConstantAction
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.sql.Activation, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.store.access.ConglomerateController, .TransactionController, org.apache.derby.catalog.UUID

This class describes actions that are ALWAYS performed for a LOCK TABLE Statement at Execution time.

Field Summary

Modifier and TypeField and Description
private final long
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
LockTableConstantAction(String
Full name of the table.
fullTableName
,
long
Conglomerate number for the heap
conglomerateNumber
,
boolean
Whether or not to get an exclusive lock.
exclusiveMode
)

Make the ConstantAction for a LOCK TABLE statement.

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for LOCK TABLE.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

conglomerateNumberback to summary
private final long conglomerateNumber
exclusiveModeback to summary
private final boolean exclusiveMode
fullTableNameback to summary
private final String fullTableName

Constructor Detail

LockTableConstantActionback to summary
pack-priv LockTableConstantAction(String fullTableName, long conglomerateNumber, boolean exclusiveMode)

Make the ConstantAction for a LOCK TABLE statement.

Parameters
fullTableName:String

Full name of the table.

conglomerateNumber:long

Conglomerate number for the heap

exclusiveMode:boolean

Whether or not to get an exclusive lock.

Method Detail

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for LOCK TABLE.

Parameters
activation:Activation

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure
See Also
ConstantAction#executeConstantAction
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object