Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class CreateAliasConstantAction

extends DDLConstantAction
Class Inheritance
Imports
java.util.List, org.apache.derby.catalog.AliasInfo, .UUID, org.apache.derby.catalog.types.RoutineAliasInfo, .SynonymAliasInfo, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.dictionary.AliasDescriptor, .DataDescriptorGenerator, .DataDictionary, .SchemaDescriptor, .TableDescriptor, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.store.access.TransactionController

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

Modifier and TypeField and Description
private final AliasInfo
private final String
private final char
private final String
private final char
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
CreateAliasConstantAction(String
Name of alias.
aliasName
,
String
Name of alias's schema.
schemaName
,
String
Name of java class.
javaClassName
,
AliasInfo
AliasInfo
aliasInfo
,
char
The type of the alias
aliasType
)

Make the ConstantAction for a CREATE alias statement.

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for CREATE FUNCTION, PROCEDURE, SYNONYM, and TYPE.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private void
vetRoutine(DataDictionary dd, SchemaDescriptor sd, AliasDescriptor ads)

Common checks to be performed for functions and procedures

Inherited from org.apache.derby.impl.sql.execute.DDLConstantAction:
addColumnDependenciesadjustUDTDependenciesadjustUDTDependenciesconstructToStringgetAndCheckSchemaDescriptorgetSchemaDescriptorForCreatelockTableForDDLstoreConstraintDependenciesOnPrivilegesstoreViewTriggerDependenciesOnPrivileges

Field Detail

aliasInfoback to summary
private final AliasInfo aliasInfo
aliasNameback to summary
private final String aliasName
aliasTypeback to summary
private final char aliasType
javaClassNameback to summary
private final String javaClassName
nameSpaceback to summary
private final char nameSpace
schemaNameback to summary
private final String schemaName

Constructor Detail

CreateAliasConstantActionback to summary
pack-priv CreateAliasConstantAction(String aliasName, String schemaName, String javaClassName, AliasInfo aliasInfo, char aliasType)

Make the ConstantAction for a CREATE alias statement.

Parameters
aliasName:String

Name of alias.

schemaName:String

Name of alias's schema.

javaClassName:String

Name of java class.

aliasInfo:AliasInfo

AliasInfo

aliasType:char

The type of the alias

Method Detail

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for CREATE FUNCTION, PROCEDURE, SYNONYM, and TYPE.

A function, procedure, or udt is represented as:

  • AliasDescriptor
Routine dependencies are created as:
  • None

A synonym is represented as:

  • AliasDescriptor
  • TableDescriptor
Synonym dependencies are created as:
  • None
In both cases a SchemaDescriptor will be created if needed. No dependency is created on the SchemaDescriptor.
Parameters
activation:Activation

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure
See Also
ConstantAction#executeConstantAction, AliasDescriptor, TableDescriptor, SchemaDescriptor
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

vetRoutineback to summary
private void vetRoutine(DataDictionary dd, SchemaDescriptor sd, AliasDescriptor ads) throws StandardException

Common checks to be performed for functions and procedures