|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.jdo.oql.ParseTreeWalker
public class ParseTreeWalker
A class which walks the parse tree created by the parser to check for errors and translate to SQL.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ParseTreeWalker(LockEngine dbEngine,
ParseTreeNode parseTree,
ClassLoader classLoader,
DbMetaInfo dbInfo)
Creates a new parse tree walker. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||