|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.query.QueryParser
This abstract QueryParser provides helper methods that can be used to parse a QueryObject. The concrete Parsers should subclass this class. The actual parsing method parse() should be implemented by the concrete class.
Constructor Summary | |
(package private) |
QueryParser(QueryObject qo)
create a new QueryParser for this QueryObject. |
Method Summary | |
(package private) void |
checkForInvalidObjects(java.util.HashSet objects,
QPath[] qpaths)
|
(package private) ConditionMap[] |
createConditionMap(java.util.HashSet objects,
QPath[] qpaths,
Condition[] conditions)
|
(package private) QPath[] |
createQPath(java.lang.String root,
java.util.HashSet objectsHS)
This is the actual method that creates the QPath[] each of which is a path from root to a different leaf. |
(package private) java.util.HashSet |
findObjects(QualifiedField[] selectFields)
|
(package private) java.util.HashSet |
findObjects(QualifiedField[] selectFields,
Condition[] conditions)
|
(package private) QueryObject |
getQueryObject()
|
(package private) java.lang.String |
getRoot()
|
(package private) java.lang.String |
getRoot(QualifiedField[] selectFields,
Condition[] conditions)
|
(package private) java.lang.String[] |
getRootId()
Returns full qualified path for root object primary key |
(package private) abstract SQLDescWithBindParameters[] |
parse()
parse a QueryObject and return Array of SQLDescriptor. |
(package private) QualifiedField[] |
qualify(java.lang.String[] selectFields)
|
(package private) void |
setQueryObject(QueryObject qo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
QueryParser(QueryObject qo)
qo
- QueryObject that needs to be parsed.Method Detail |
void checkForInvalidObjects(java.util.HashSet objects, QPath[] qpaths) throws QMException
QMException
ConditionMap[] createConditionMap(java.util.HashSet objects, QPath[] qpaths, Condition[] conditions)
QPath[] createQPath(java.lang.String root, java.util.HashSet objectsHS)
root
- root of the tree that contains objectsobjectsHS
- HashSet contains the objects.java.util.HashSet findObjects(QualifiedField[] selectFields)
java.util.HashSet findObjects(QualifiedField[] selectFields, Condition[] conditions)
QueryObject getQueryObject()
java.lang.String getRoot()
java.lang.String getRoot(QualifiedField[] selectFields, Condition[] conditions)
java.lang.String[] getRootId() throws QMException
QMException
abstract SQLDescWithBindParameters[] parse() throws QMException
QMException
- QMExceptionQualifiedField[] qualify(java.lang.String[] selectFields) throws QMException
QMException
void setQueryObject(QueryObject qo)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.