Class LockTableConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.LockTableConstantAction
- All Implemented Interfaces:
ConstantAction
This class describes actions that are ALWAYS performed for a
LOCK TABLE Statement at Execution time.
-
Field Summary
FieldsFields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
Constructor Summary
ConstructorsConstructorDescriptionLockTableConstantAction
(String fullTableName, long conglomerateNumber, boolean exclusiveMode) Make the ConstantAction for a LOCK TABLE statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeConstantAction
(Activation activation) This is the guts of the Execution-time logic for LOCK TABLE.toString()
-
Field Details
-
fullTableName
-
conglomerateNumber
private final long conglomerateNumber -
exclusiveMode
private final boolean exclusiveMode
-
-
Constructor Details
-
LockTableConstantAction
LockTableConstantAction(String fullTableName, long conglomerateNumber, boolean exclusiveMode) Make the ConstantAction for a LOCK TABLE statement.- Parameters:
fullTableName
- Full name of the table.conglomerateNumber
- Conglomerate number for the heapexclusiveMode
- Whether or not to get an exclusive lock.
-
-
Method Details
-
toString
-
executeConstantAction
This is the guts of the Execution-time logic for LOCK TABLE.- Specified by:
executeConstantAction
in interfaceConstantAction
- Parameters:
activation
- The execution environment for this constant action.- Throws:
StandardException
- Thrown on failure- See Also:
-