org.exolab.castor.jdo.oql
public class ParseTreeWalker extends Object implements TokenTypes
Version: $Revision: 1.14 $ $Date: 2005/11/05 16:32:06 $
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 path, int tableIndex)
Builds the alias name for a table from the path info.
|
JDOClassDescriptor | getClassDescriptor()
Accessor method for _clsDesc.
|
Class | getObjClass()
Accessor method for _objClass.
|
Hashtable | getParamInfo()
Accessor method for _paramInfo.
|
Vector | getPathInfo()
Method to get path info for the selected object. |
int | getProjectionType()
Accessor method for _projectionType.
|
QueryExpression | getQueryExpression()
Accessor method for private _queryExpr member.
|
Parameters: dbEngine The Persistence Engine parseTree The parse tree to walk classLoader A ClassLoader instance to load classes.
Throws: QueryException Thrown by checkErrors.
Parameters: tableName The name of the table to add to the select clause path The path info vector to build the alias with tableIndex Field index in the path info
Returns: Alias name for a given table.
Returns: The _clsDesc member.
Returns: The _objClass member.
Returns: The _paramInfo member.
Returns: Path info for the selected element, null otherwise.
Returns: The _projectionType member.
Returns: private _queryExpr member