org.apache.derby.impl.sql.execute
Class AlterSPSConstantAction

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericConstantAction
      extended byorg.apache.derby.impl.sql.execute.DDLConstantAction
          extended byorg.apache.derby.impl.sql.execute.GenericSPSConstantAction
              extended byorg.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:

Author:
jamie

Field Summary
private  boolean invalidOnly
           
private  UUID schemaId
           
private  SchemaDescriptor sd
           
private  java.lang.String spsName
           
private  java.lang.String usingText
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) AlterSPSConstantAction(SchemaDescriptor sd, java.lang.String spsName, java.lang.String usingText, boolean invalidOnly)
          Perform an ALTER STATEMENT statement.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for ALTER STATEMENT.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.GenericSPSConstantAction
getUsingResults
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, modifiesTableId, readExternal, upToDate, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sd

private SchemaDescriptor sd

spsName

private java.lang.String spsName

schemaId

private UUID schemaId

usingText

private java.lang.String usingText

invalidOnly

private boolean invalidOnly
Constructor Detail

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 recompiled
usingText - the text of the USING clause
invalidOnly - only recompile invalid spses. Only relevant when name is null.
Method Detail

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.