org.apache.derby.impl.sql.compile
Class CreateAliasNode

java.lang.Object
  extended by org.apache.derby.impl.sql.compile.QueryTreeNode
      extended by org.apache.derby.impl.sql.compile.StatementNode
          extended by org.apache.derby.impl.sql.compile.DDLStatementNode
              extended by org.apache.derby.impl.sql.compile.CreateAliasNode
All Implemented Interfaces:
Node, Visitable

public class CreateAliasNode
extends DDLStatementNode

A CreateAliasNode represents a CREATE ALIAS statement.


Field Summary
static int AGG_ELEMENT_COUNT
           
static int AGG_FOR_TYPE
           
static int AGG_RETURN_TYPE
           
private  AliasInfo aliasInfo
           
private  char aliasType
           
static int DETERMINISTIC
           
static int DYNAMIC_RESULT_SET_COUNT
           
static int EXTERNAL_NAME
           
private  java.lang.String javaClassName
           
static int LANGUAGE
           
private  java.lang.String methodName
           
private static java.lang.String[] NON_RESERVED_AGGREGATES
           
private static java.lang.String[] NON_RESERVED_FUNCTION_NAMES
           
static int NULL_ON_NULL_INPUT
           
static int PARAMETER_ARRAY
           
static int PARAMETER_STYLE
           
static int RETURN_TYPE
           
static int ROUTINE_ELEMENT_COUNT
           
static int ROUTINE_SECURITY_DEFINER
           
static int SQL_CONTROL
           
static int TABLE_NAME
           
static int VARARGS
           
 
Fields inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode
ADD_TYPE, DROP_STATISTICS, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE, UPDATE_STATISTICS
 
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode
EMPTY_TD_LIST, NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION
 
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
 
Constructor Summary
CreateAliasNode()
           
 
Method Summary
private  void bindAggregate()
          Extra logic for binding user-defined aggregate definitions
private  void bindParameterTypes(RoutineAliasInfo aliasInfo)
          Bind the class names for UDTs
 void bindStatement()
          Bind this CreateAliasNode.
private  StandardException illegalAggregate()
          Construct an exception flagging an illegal aggregate name
 void init(java.lang.Object aliasName, java.lang.Object targetObject, java.lang.Object methodName, java.lang.Object aliasSpecificInfo, java.lang.Object aliasType)
          Initializer for a CreateAliasNode
 ConstantAction makeConstantAction()
          Create the Constant information that will drive the guts of Execution.
 java.lang.String statementToString()
           
 
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.StatementNode
executeSchemaName, executeStatementName, generate, getSPSName, lockTableForCompilation, makeResultDescription, needsSavepoint, optimizeStatement, updateIndexStatisticsFor
 
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
 

Field Detail

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

CreateAliasNode

public CreateAliasNode()
Method Detail

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 alias
targetObject - Target name
methodName - The method name
aliasType - 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

Built on Wed 2013-06-12 15:21:56+0000, from revision ???

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