org.apache.derby.impl.sql.execute
Class CreateSPSConstantAction
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.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
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.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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 statementspsText
- Text of query expression for sps definitionusingText
- the text of the USING clausecompSchemaId
- The schema this is to be compiled againstokInSys
- ok to create in sys schemanocompile
- don't compile it
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.