wt.epm.query
Class QueryNodes.AttributeNode

java.lang.Object
  extended bywt.epm.query.QueryNodes.Node
      extended bywt.epm.query.QueryNodes.ScalarExpNode
          extended bywt.epm.query.QueryNodes.ClassBasedNode
              extended bywt.epm.query.QueryNodes.AttributeNode
All Implemented Interfaces:
QueryNodes.GeneratableNode
Enclosing class:
QueryNodes

static class QueryNodes.AttributeNode
extends QueryNodes.ClassBasedNode
implements QueryNodes.GeneratableNode


Field Summary
private  String classAlias
           
static int GEN_CONFIGSPEC
           
static int GEN_FROM
           
static int GEN_GROUPBY
           
static int GEN_HAVING
           
static int GEN_ORDERBY
           
static int GEN_SELECT
           
static int GEN_WHERE
           
private  QueryNodes.ImmediateAttribute immediateAttribute
           
private  Name name
           
 
Constructor Summary
(package private) QueryNodes.AttributeNode(QueryNodes.ParserScope parserScope, QueryNodes.AliasNode classAlias, Name name)
           
 
Method Summary
protected static void appendJoint(QueryNodes.QueryScope scope, QueryNodes.ClassNode source, String sourceAttribute, QueryNodes.ClassNode target)
           
protected static void appendJoint(QueryNodes.QueryScope scope, QueryNodes.ClassNode source, String sourceAttribute, QueryNodes.ClassNode target, int outerJoint)
           
protected static void appendOpionalAnd(QueryNodes.QueryScope scope)
           
protected static void dump(Collection collection, PrintStream out, QueryNodes.Shift shift)
           
(package private)  void dump(PrintStream out, QueryNodes.Shift shift)
           
protected static void dump(QueryNodes.Node node, PrintStream out, QueryNodes.Shift shift)
           
protected static void dump(String prefix, Collection collection, PrintStream out, QueryNodes.Shift shift)
           
protected static void dump(String prefix, QueryNodes.Node node, PrintStream out, QueryNodes.Shift shift)
           
protected static void generate(Collection collection, QueryNodes.QueryScope scope)
           
protected static void generate(QueryNodes.GeneratableNode node, QueryNodes.QueryScope scope)
           
 void generate(QueryNodes.QueryScope scope)
           
(package private)  String getAlias()
           
(package private)  String getBaseAttributeName()
           
 QueryNodes.ClassNode getBaseClassNode(QueryNodes.QueryScope scope)
           
(package private)  String getFullName()
           
private  QueryNodes.ImmediateAttribute getImmediateAttribute(QueryNodes.QueryScope scope)
           
(package private)  String getImmediateAttributeName(QueryNodes.QueryScope scope)
           
 QueryNodes.ClassNode getImmediateClassNode(QueryNodes.QueryScope scope)
           
(package private)  Name getName()
           
protected  ColumnExpression getScalarExpression(QueryNodes.QueryScope scope)
           
protected  String getShortClassName()
           
protected  String getTitle(QueryNodes.Shift shift)
           
protected  void register(QueryNodes.ParserScope parserScope)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classAlias

private String classAlias

name

private Name name

immediateAttribute

private QueryNodes.ImmediateAttribute immediateAttribute

GEN_SELECT

public static final int GEN_SELECT
See Also:
Constant Field Values

GEN_FROM

public static final int GEN_FROM
See Also:
Constant Field Values

GEN_WHERE

public static final int GEN_WHERE
See Also:
Constant Field Values

GEN_GROUPBY

public static final int GEN_GROUPBY
See Also:
Constant Field Values

GEN_HAVING

public static final int GEN_HAVING
See Also:
Constant Field Values

GEN_ORDERBY

public static final int GEN_ORDERBY
See Also:
Constant Field Values

GEN_CONFIGSPEC

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

QueryNodes.AttributeNode

QueryNodes.AttributeNode(QueryNodes.ParserScope parserScope,
                         QueryNodes.AliasNode classAlias,
                         Name name)
                   throws QueryException
Method Detail

getFullName

String getFullName()
Specified by:
getFullName in class QueryNodes.ClassBasedNode

getAlias

String getAlias()
Specified by:
getAlias in class QueryNodes.ClassBasedNode

getName

Name getName()

getBaseAttributeName

String getBaseAttributeName()
Specified by:
getBaseAttributeName in class QueryNodes.ClassBasedNode

getImmediateAttributeName

String getImmediateAttributeName(QueryNodes.QueryScope scope)
                           throws QueryException
Overrides:
getImmediateAttributeName in class QueryNodes.ClassBasedNode
Throws:
QueryException

getImmediateAttribute

private QueryNodes.ImmediateAttribute getImmediateAttribute(QueryNodes.QueryScope scope)
                                                     throws QueryException
Throws:
QueryException

toString

public String toString()

generate

public void generate(QueryNodes.QueryScope scope)
              throws WTException,
                     WTPropertyVetoException
Specified by:
generate in interface QueryNodes.GeneratableNode
Overrides:
generate in class QueryNodes.ClassBasedNode
Throws:
WTException
WTPropertyVetoException

getBaseClassNode

public QueryNodes.ClassNode getBaseClassNode(QueryNodes.QueryScope scope)
                                      throws QueryException
Throws:
QueryException

getImmediateClassNode

public QueryNodes.ClassNode getImmediateClassNode(QueryNodes.QueryScope scope)
                                           throws QueryException
Throws:
QueryException

getScalarExpression

protected ColumnExpression getScalarExpression(QueryNodes.QueryScope scope)
                                        throws WTException
Specified by:
getScalarExpression in class QueryNodes.ScalarExpNode
Throws:
WTException

register

protected void register(QueryNodes.ParserScope parserScope)
                 throws QueryException
Throws:
QueryException

dump

void dump(PrintStream out,
          QueryNodes.Shift shift)

getTitle

protected String getTitle(QueryNodes.Shift shift)

getShortClassName

protected String getShortClassName()

dump

protected static void dump(QueryNodes.Node node,
                           PrintStream out,
                           QueryNodes.Shift shift)

dump

protected static void dump(String prefix,
                           QueryNodes.Node node,
                           PrintStream out,
                           QueryNodes.Shift shift)

dump

protected static void dump(Collection collection,
                           PrintStream out,
                           QueryNodes.Shift shift)

dump

protected static void dump(String prefix,
                           Collection collection,
                           PrintStream out,
                           QueryNodes.Shift shift)

generate

protected static void generate(QueryNodes.GeneratableNode node,
                               QueryNodes.QueryScope scope)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

generate

protected static void generate(Collection collection,
                               QueryNodes.QueryScope scope)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

appendOpionalAnd

protected static void appendOpionalAnd(QueryNodes.QueryScope scope)

appendJoint

protected static void appendJoint(QueryNodes.QueryScope scope,
                                  QueryNodes.ClassNode source,
                                  String sourceAttribute,
                                  QueryNodes.ClassNode target)
                           throws WTException
Throws:
WTException

appendJoint

protected static void appendJoint(QueryNodes.QueryScope scope,
                                  QueryNodes.ClassNode source,
                                  String sourceAttribute,
                                  QueryNodes.ClassNode target,
                                  int outerJoint)
                           throws WTException
Throws:
WTException