com.akiban.sql.parser
Class CreateAliasNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.StatementNode
          extended by com.akiban.sql.parser.DDLStatementNode
              extended by com.akiban.sql.parser.CreateAliasNode
All Implemented Interfaces:
Visitable

public class CreateAliasNode
extends DDLStatementNode

A CreateAliasNode represents a CREATE ALIAS statement.


Field Summary
static int DETERMINISTIC
           
static int DYNAMIC_RESULT_SET_COUNT
           
static int EXTERNAL_NAME
           
static int INLINE_DEFINITION
           
static int LANGUAGE
           
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
           
 
Fields inherited from class com.akiban.sql.parser.DDLStatementNode
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
CreateAliasNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 AliasInfo getAliasInfo()
           
 AliasInfo.Type getAliasType()
           
 String getDefinition()
           
 String getExternalName()
           
 String getJavaClassName()
           
 String getMethodName()
           
 void init(Object aliasName, Object targetObject, Object methodName, Object aliasSpecificInfo, Object aliasType, Object createOrReplace)
          Initializer for a CreateAliasNode
 boolean isCreateOrReplace()
           
 String statementToString()
           
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.DDLStatementNode
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomic
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
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

INLINE_DEFINITION

public static final int INLINE_DEFINITION
See Also:
Constant Field Values

ROUTINE_ELEMENT_COUNT

public static final int ROUTINE_ELEMENT_COUNT
See Also:
Constant Field Values
Constructor Detail

CreateAliasNode

public CreateAliasNode()
Method Detail

init

public void init(Object aliasName,
                 Object targetObject,
                 Object methodName,
                 Object aliasSpecificInfo,
                 Object aliasType,
                 Object createOrReplace)
          throws StandardException
Initializer for a CreateAliasNode

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

getJavaClassName

public String getJavaClassName()

getMethodName

public String getMethodName()

getExternalName

public String getExternalName()

isCreateOrReplace

public boolean isCreateOrReplace()

getAliasType

public AliasInfo.Type getAliasType()

getAliasInfo

public AliasInfo getAliasInfo()

getDefinition

public String getDefinition()

toString

public String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Overrides:
toString in class DDLStatementNode
Returns:
This object as a String

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class DDLStatementNode
Throws:
StandardException

statementToString

public String statementToString()
Specified by:
statementToString in class StatementNode


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.