|
||||||||
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,
java.lang.ClassLoader classLoader,
DbMetaInfo dbInfo)
Creates a new parse tree walker. |
Method Summary | |
---|---|
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. |
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, 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.Method Detail |
---|
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 info
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |