public class ParseTreeWalker extends Object
| Modifier and Type | Field and 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 and Description |
|---|
ParseTreeWalker(LockEngine dbEngine,
ParseTreeNode parseTree,
ClassLoader classLoader,
DbMetaInfo dbInfo)
Creates a new parse tree walker.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildTableAlias(String tableName,
Vector<String> path,
int tableIndex)
Builds the alias name for a table from the path info.
|
ClassDescriptor |
getClassDescriptor()
Accessor method for _clsDesc.
|
Class<?> |
getObjClass()
Accessor method for _objClass.
|
Hashtable<Integer,ParamInfo> |
getParamInfo()
Accessor method for _paramInfo.
|
Vector<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, 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 Class<?> getObjClass()
public int getProjectionType()
public QueryExpression getQueryExpression()
public Hashtable<Integer,ParamInfo> getParamInfo()
public ClassDescriptor getClassDescriptor()
public Vector<String> getProjectionInfo()
public String buildTableAlias(String tableName, Vector<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 infoCopyright © 2014. All rights reserved.