org.apache.derby.impl.sql.compile
Class CreateAliasNode
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.StatementNode
org.apache.derby.impl.sql.compile.DDLStatementNode
org.apache.derby.impl.sql.compile.CreateAliasNode
- All Implemented Interfaces:
- Node, Visitable
public class CreateAliasNode
- extends DDLStatementNode
A CreateAliasNode represents a CREATE ALIAS statement.
| Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode |
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, makeFromList, toString |
| Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PARAMETER_ARRAY
public static final int PARAMETER_ARRAY
- See Also:
- Constant Field Values
TABLE_NAME
public static final int TABLE_NAME
- See Also:
- Constant Field Values
DYNAMIC_RESULT_SET_COUNT
public static final int DYNAMIC_RESULT_SET_COUNT
- See Also:
- Constant Field Values
LANGUAGE
public static final int LANGUAGE
- See Also:
- Constant Field Values
EXTERNAL_NAME
public static final int EXTERNAL_NAME
- See Also:
- Constant Field Values
PARAMETER_STYLE
public static final int PARAMETER_STYLE
- See Also:
- Constant Field Values
SQL_CONTROL
public static final int SQL_CONTROL
- See Also:
- Constant Field Values
DETERMINISTIC
public static final int DETERMINISTIC
- See Also:
- Constant Field Values
NULL_ON_NULL_INPUT
public static final int NULL_ON_NULL_INPUT
- See Also:
- Constant Field Values
RETURN_TYPE
public static final int RETURN_TYPE
- See Also:
- Constant Field Values
ROUTINE_SECURITY_DEFINER
public static final int ROUTINE_SECURITY_DEFINER
- See Also:
- Constant Field Values
VARARGS
public static final int VARARGS
- See Also:
- Constant Field Values
ROUTINE_ELEMENT_COUNT
public static final int ROUTINE_ELEMENT_COUNT
- See Also:
- Constant Field Values
NON_RESERVED_FUNCTION_NAMES
private static final java.lang.String[] NON_RESERVED_FUNCTION_NAMES
NON_RESERVED_AGGREGATES
private static final java.lang.String[] NON_RESERVED_AGGREGATES
AGG_FOR_TYPE
public static final int AGG_FOR_TYPE
- See Also:
- Constant Field Values
AGG_RETURN_TYPE
public static final int AGG_RETURN_TYPE
- See Also:
- Constant Field Values
AGG_ELEMENT_COUNT
public static final int AGG_ELEMENT_COUNT
- See Also:
- Constant Field Values
javaClassName
private java.lang.String javaClassName
methodName
private java.lang.String methodName
aliasType
private char aliasType
aliasInfo
private AliasInfo aliasInfo
CreateAliasNode
public CreateAliasNode()
init
public void init(java.lang.Object aliasName,
java.lang.Object targetObject,
java.lang.Object methodName,
java.lang.Object aliasSpecificInfo,
java.lang.Object aliasType)
throws StandardException
- Initializer for a CreateAliasNode
- Specified by:
init in interface Node- Overrides:
init in class QueryTreeNode
- Parameters:
aliasName - The name of the aliastargetObject - Target namemethodName - The method namealiasType - The alias type
- Throws:
StandardException - Thrown on error
statementToString
public java.lang.String statementToString()
- Specified by:
statementToString in class StatementNode
bindStatement
public void bindStatement()
throws StandardException
- Bind this CreateAliasNode. This means doing any static error
checking that can be done before actually creating the table.
For example, verifying that the column name list does not
contain any duplicate column names.
- Overrides:
bindStatement in class StatementNode
- Throws:
StandardException - Thrown on error
bindAggregate
private void bindAggregate()
throws StandardException
- Extra logic for binding user-defined aggregate definitions
- Throws:
StandardException
illegalAggregate
private StandardException illegalAggregate()
- Construct an exception flagging an illegal aggregate name
bindParameterTypes
private void bindParameterTypes(RoutineAliasInfo aliasInfo)
throws StandardException
- Bind the class names for UDTs
- Throws:
StandardException
makeConstantAction
public ConstantAction makeConstantAction()
throws StandardException
- Create the Constant information that will drive the guts of Execution.
- Overrides:
makeConstantAction in class QueryTreeNode
- Throws:
StandardException - Thrown on failure
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.