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

java.lang.Object
  extended byorg.apache.derby.impl.sql.compile.QueryTreeNode
      extended byorg.apache.derby.impl.sql.compile.StatementNode
          extended byorg.apache.derby.impl.sql.compile.DDLStatementNode
              extended byorg.apache.derby.impl.sql.compile.CreateStatementNode
                  extended byorg.apache.derby.impl.sql.compile.CreateAliasNode
All Implemented Interfaces:
Visitable

public class CreateAliasNode
extends CreateStatementNode

A CreateAliasNode represents a CREATE ALIAS statement.

Author:
Jerry Brenner

Field Summary
private  AliasInfo aliasInfo
           
(package private)  char aliasType
           
(package private)  boolean delimitedIdentifier
           
(package private)  java.lang.String javaClassName
           
(package private)  java.lang.String methodName
           
 
Fields inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode
ADD_TYPE, DROP_TYPE, implicitCreateSchema, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE
 
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode
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_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset
 
Constructor Summary
CreateAliasNode()
           
 
Method Summary
 QueryTreeNode bind()
          Bind this CreateAliasNode.
 java.lang.String getAliasName()
           
 char getAliasType()
           
 java.lang.String getJavaClassName()
           
 java.lang.String getMethodName()
           
 void init(java.lang.Object aliasName, java.lang.Object javaClassName, java.lang.Object methodName, java.lang.Object aliasSpecificInfo, java.lang.Object aliasType, java.lang.Object delimitedIdentifier)
          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.CreateStatementNode
alterItem, isCreate
 
Methods inherited from class org.apache.derby.impl.sql.compile.DDLStatementNode
activationKind, bindName, generate, getFullName, getObjectName, getRelativeName, getSchemaDescriptor, getTableDescriptor, getTableDescriptor, getTableDescriptor, init, initAndCheck, isAtomic, toString
 
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode
generate, lockTableForCompilation
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getSPSName, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, isSessionSchema, isSessionSchema, makeResultDescription, makeTableName, needsSavepoint, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, treePrint, treePrint, verifyClassExist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

javaClassName

java.lang.String javaClassName

methodName

java.lang.String methodName

aliasType

char aliasType

delimitedIdentifier

boolean delimitedIdentifier

aliasInfo

private AliasInfo aliasInfo
Constructor Detail

CreateAliasNode

public CreateAliasNode()
Method Detail

init

public void init(java.lang.Object aliasName,
                 java.lang.Object javaClassName,
                 java.lang.Object methodName,
                 java.lang.Object aliasSpecificInfo,
                 java.lang.Object aliasType,
                 java.lang.Object delimitedIdentifier)
          throws StandardException
Initializer for a CreateAliasNode

Overrides:
init in class QueryTreeNode
Parameters:
aliasName - The name of the alias
javaClassName - The full class name
methodName - The method name
aliasType - The alias type
delimitedIdentifier - Whether or not to treat the class name as a delimited identifier if trying to resolve it as a class alias
Throws:
StandardException - Thrown on error

getAliasName

public java.lang.String getAliasName()

getJavaClassName

public java.lang.String getJavaClassName()

getMethodName

public java.lang.String getMethodName()

getAliasType

public char getAliasType()

statementToString

public java.lang.String statementToString()
Specified by:
statementToString in class StatementNode

bind

public QueryTreeNode bind()
                   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:
bind in class QueryTreeNode
Returns:
The bound query tree
Throws:
StandardException - Thrown on error

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.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.