Class CreateAliasConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.CreateAliasConstantAction
- All Implemented Interfaces:
ConstantAction
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
FieldsModifier and TypeFieldDescriptionprivate final AliasInfo
private final String
private final char
private final String
private final char
private final String
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
Constructor Summary
ConstructorsConstructorDescriptionCreateAliasConstantAction
(String aliasName, String schemaName, String javaClassName, AliasInfo aliasInfo, char aliasType) Make the ConstantAction for a CREATE alias statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeConstantAction
(Activation activation) This is the guts of the Execution-time logic for CREATE FUNCTION, PROCEDURE, SYNONYM, and TYPE.toString()
private void
vetRoutine
(DataDictionary dd, SchemaDescriptor sd, AliasDescriptor ads) Common checks to be performed for functions and proceduresMethods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
Field Details
-
aliasName
-
schemaName
-
javaClassName
-
aliasType
private final char aliasType -
nameSpace
private final char nameSpace -
aliasInfo
-
-
Constructor Details
-
CreateAliasConstantAction
CreateAliasConstantAction(String aliasName, String schemaName, 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
-
-
Method Details
-
toString
-
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
- None
A synonym is represented as:
- AliasDescriptor
- TableDescriptor
- None
- Parameters:
activation
- The execution environment for this constant action.- Throws:
StandardException
- Thrown on failure- See Also:
-
vetRoutine
private void vetRoutine(DataDictionary dd, SchemaDescriptor sd, AliasDescriptor ads) throws StandardException Common checks to be performed for functions and procedures- Throws:
StandardException
-