org.apache.derby.impl.sql.execute
Class LockTableConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.GenericConstantAction
org.apache.derby.impl.sql.execute.LockTableConstantAction
- All Implemented Interfaces:
- ConstantAction
- class LockTableConstantAction
- extends GenericConstantAction
This class describes actions that are ALWAYS performed for a
LOCK TABLE Statement at Execution time.
- Author:
- jamie
Constructor Summary |
(package private) |
LockTableConstantAction(java.lang.String fullTableName,
long conglomerateNumber,
boolean exclusiveMode)
Make the ConstantAction for a LOCK TABLE statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fullTableName
private final java.lang.String fullTableName
conglomerateNumber
private final long conglomerateNumber
exclusiveMode
private final boolean exclusiveMode
LockTableConstantAction
LockTableConstantAction(java.lang.String fullTableName,
long conglomerateNumber,
boolean exclusiveMode)
- Make the ConstantAction for a LOCK TABLE statement.
- Parameters:
conglomerateNumber
- Conglomerate number for the heapexclusiveMode
- Whether or not to get an exclusive lock.
toString
public java.lang.String toString()
executeConstantAction
public void executeConstantAction(Activation activation)
throws StandardException
- This is the guts of the Execution-time logic for LOCK TABLE.
- Parameters:
activation
- The execution environment for this constant action.
- Throws:
StandardException
- Thrown on failure- See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
modifiesTableId
public boolean modifiesTableId(UUID tableId)
throws StandardException
- Does this constant action modify the passed in table
uuid? By modify we mean add or drop things tied to
this table (e.g. index, trigger, constraint). Things
like views or spses that reference this table don't
count.
- Specified by:
modifiesTableId
in interface ConstantAction
- Parameters:
tableId
- the other table id
- Throws:
StandardException
- thrown on failure
readExternal
public final void readExternal(java.io.ObjectInput in)
writeExternal
public final void writeExternal(java.io.ObjectOutput out)
upToDate
public final boolean upToDate()
throws StandardException
- Reports whether these constants are up-to-date. This returns true
for homogenous Cloudscape/Cloudsync. For the Plugin, this may
return false;
- Specified by:
upToDate
in interface ConstantAction
- Returns:
- true if these constants are up-to-date
false otherwise
- Throws:
StandardException
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.