public class ParseTreeWalker
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
AGGREGATE |
|
static int |
DEPENDANT_OBJECT |
|
static int |
DEPENDANT_OBJECT_VALUE |
|
static int |
DEPENDANT_VALUE |
|
static int |
FUNCTION |
|
static int |
MAX_TABLE_LENGTH |
|
static int |
PARENT_OBJECT |
Constructor | Description |
---|---|
ParseTreeWalker(LockEngine dbEngine,
ParseTreeNode parseTree,
java.lang.ClassLoader classLoader,
DbMetaInfo dbInfo) |
Creates a new parse tree walker.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
buildTableAlias(java.lang.String tableName,
java.util.Vector<java.lang.String> path,
int tableIndex) |
Builds the alias name for a table from the path info.
|
ClassDescriptor |
getClassDescriptor() |
Accessor method for _clsDesc.
|
java.lang.Class<?> |
getObjClass() |
Accessor method for _objClass.
|
java.util.Hashtable<java.lang.Integer,ParamInfo> |
getParamInfo() |
Accessor method for _paramInfo.
|
java.util.Vector<java.lang.String> |
getProjectionInfo() |
Method to get path info for the selected object.
|
int |
getProjectionType() |
Accessor method for _projectionType.
|
QueryExpression |
getQueryExpression() |
Accessor method for private _queryExpr member.
|
public static final int AGGREGATE
public static final int FUNCTION
public static final int PARENT_OBJECT
public static final int DEPENDANT_OBJECT
public static final int DEPENDANT_OBJECT_VALUE
public static final int DEPENDANT_VALUE
public static final int MAX_TABLE_LENGTH
public ParseTreeWalker(LockEngine dbEngine, ParseTreeNode parseTree, java.lang.ClassLoader classLoader, DbMetaInfo dbInfo) throws QueryException
dbEngine
- The Persistence EngineparseTree
- The parse tree to walkclassLoader
- A ClassLoader instance to load classes.QueryException
- Thrown by checkErrors.public java.lang.Class<?> getObjClass()
public int getProjectionType()
public QueryExpression getQueryExpression()
public java.util.Hashtable<java.lang.Integer,ParamInfo> getParamInfo()
public ClassDescriptor getClassDescriptor()
public java.util.Vector<java.lang.String> getProjectionInfo()
public java.lang.String buildTableAlias(java.lang.String tableName, java.util.Vector<java.lang.String> path, int tableIndex)
tableName
- The name of the table to add to the select clausepath
- The path info vector to build the alias withtableIndex
- Field index in the path infoIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com