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

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.CreateSPSConstantAction
All Implemented Interfaces:
ConstantAction

class CreateSPSConstantAction
extends GenericSPSConstantAction

This class describes actions that are ALWAYS performed for a CREATE STATEMENT Statement at Execution time. There is a little special logic to allow users to control whether it is ok to create a statement in the SYS schema or not

Author:
Jamie

Field Summary
private  UUID compSchemaId
           
private  boolean nocompile
           
private  boolean okInSys
           
private  UUID schemaId
           
private  java.lang.String schemaName
           
private  java.lang.String spsName
           
private  java.lang.String spsText
           
private  java.lang.String usingText
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) CreateSPSConstantAction(java.lang.String schemaName, java.lang.String spsName, java.lang.String spsText, java.lang.String usingText, UUID compSchemaId, boolean okInSys, boolean nocompile)
          Make the ConstantAction for a CREATE STORED PREPARED STATEMENT statement.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for CREATE 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

schemaName

private java.lang.String schemaName

spsName

private java.lang.String spsName

schemaId

private UUID schemaId

compSchemaId

private UUID compSchemaId

spsText

private java.lang.String spsText

usingText

private java.lang.String usingText

okInSys

private boolean okInSys

nocompile

private boolean nocompile
Constructor Detail

CreateSPSConstantAction

CreateSPSConstantAction(java.lang.String schemaName,
                        java.lang.String spsName,
                        java.lang.String spsText,
                        java.lang.String usingText,
                        UUID compSchemaId,
                        boolean okInSys,
                        boolean nocompile)
Make the ConstantAction for a CREATE STORED PREPARED STATEMENT statement. Adds an extra parameter that allows the user to designate whether this sps can be created in the SYS schema.

Parameters:
spsName - Name of statement
spsText - Text of query expression for sps definition
usingText - the text of the USING clause
compSchemaId - The schema this is to be compiled against
okInSys - ok to create in sys schema
nocompile - don't compile it
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 CREATE 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.