org.apache.derby.impl.sql.execute
Class AlterSPSConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.GenericConstantAction
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.GenericSPSConstantAction
org.apache.derby.impl.sql.execute.AlterSPSConstantAction
- All Implemented Interfaces:
- ConstantAction
- public class AlterSPSConstantAction
- extends GenericSPSConstantAction
This class describes actions that are performed for an
ALTER STATEMENT Statement at Execution time. Currently,
all you can do is RECOMPILE a statement (or all statements).
The syntax is:
- ALTER STATEMENT RECOMPILE ALL
- ALTER STATEMENT RECOMPILE [ USING ...]
- Author:
- jamie
Constructor Summary |
(package private) |
AlterSPSConstantAction(SchemaDescriptor sd,
java.lang.String spsName,
java.lang.String usingText,
boolean invalidOnly)
Perform an ALTER STATEMENT statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sd
private SchemaDescriptor sd
spsName
private java.lang.String spsName
schemaId
private UUID schemaId
usingText
private java.lang.String usingText
invalidOnly
private boolean invalidOnly
AlterSPSConstantAction
AlterSPSConstantAction(SchemaDescriptor sd,
java.lang.String spsName,
java.lang.String usingText,
boolean invalidOnly)
- Perform an ALTER STATEMENT statement. Currently,
this is only RECOMPILE.
Note: if parameters are NULL, then all statements
are recompiled.
- Parameters:
sd
- descriptor of the schema in which
our beloved stmt resides. Null
if all statements (if spsName is null)spsName
- Name of sps. if null, all statements
are recompiledusingText
- the text of the USING clauseinvalidOnly
- only recompile invalid spses. Only relevant
when name is null.
toString
public java.lang.String toString()
executeConstantAction
public void executeConstantAction(Activation activation)
throws StandardException
- This is the guts of the Execution-time logic for ALTER STATEMENT.
- Parameters:
activation
- The execution environment for this constant action.
- Throws:
StandardException
- Thrown on failure- See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.