org.apache.derby.impl.sql.execute
Class CreateAliasConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.CreateAliasConstantAction
- All Implemented Interfaces:
- ConstantAction
class CreateAliasConstantAction
- extends DDLConstantAction
This class performs actions that are ALWAYS performed for a
CREATE FUNCTION, PROCEDURE or SYNONYM Statement at execution time.
These SQL objects are stored in the SYS.SYSALIASES table and
represented as AliasDescriptors.
Constructor Summary |
CreateAliasConstantAction(java.lang.String aliasName,
java.lang.String schemaName,
java.lang.String javaClassName,
AliasInfo aliasInfo,
char aliasType)
Make the ConstantAction for a CREATE alias statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
aliasName
private final java.lang.String aliasName
schemaName
private final java.lang.String schemaName
javaClassName
private final java.lang.String javaClassName
aliasType
private final char aliasType
nameSpace
private final char nameSpace
aliasInfo
private final AliasInfo aliasInfo
CreateAliasConstantAction
CreateAliasConstantAction(java.lang.String aliasName,
java.lang.String schemaName,
java.lang.String javaClassName,
AliasInfo aliasInfo,
char aliasType)
- Make the ConstantAction for a CREATE alias statement.
- Parameters:
aliasName
- Name of alias.schemaName
- Name of alias's schema.javaClassName
- Name of java class.aliasInfo
- AliasInfoaliasType
- The type of the alias
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
executeConstantAction
public void executeConstantAction(Activation activation)
throws StandardException
- This is the guts of the Execution-time logic for
CREATE FUNCTION, PROCEDURE, SYNONYM, and TYPE.
A function, procedure, or udt is represented as:
Routine dependencies are created as:
A synonym is represented as:
- AliasDescriptor
- TableDescriptor
Synonym dependencies are created as:
In both cases a SchemaDescriptor will be created if
needed. No dependency is created on the SchemaDescriptor.
- Parameters:
activation
- The execution environment for this constant action.
- Throws:
StandardException
- Thrown on failure- See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
,
AliasDescriptor
,
TableDescriptor
,
SchemaDescriptor
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.