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

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.DDLConstantAction
      extended by 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.


Field Summary
private  AliasInfo aliasInfo
           
private  java.lang.String aliasName
           
private  char aliasType
           
private  java.lang.String javaClassName
           
private  char nameSpace
           
private  java.lang.String schemaName
           
 
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.
 
Method Summary
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for CREATE FUNCTION, PROCEDURE, SYNONYM, and TYPE.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 - AliasInfo
aliasType - The type of the alias
Method Detail

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:

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

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.