|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.irisel.oms.olapi.QueryTree
public class QueryTree
This class is used to make relational queries in 3-tier mode, using a CLBrowser. Based upon deprecated InstanceRetrieval, which was 2-tier.
Constructor Summary | |
---|---|
QueryTree()
|
|
QueryTree(CLBrowser clb)
|
Method Summary | |
---|---|
void |
addBranch(int branchIndex,
int parentBranchIndex,
java.lang.String relationName)
This method is intended to get related records using ad-hoc or db-level defined relationships. |
void |
addBranch(int branchIndex,
int parentBranchIndex,
java.lang.String relationName,
boolean forward)
|
void |
addBranch(int branchIndex,
int parentBranchIndex,
java.lang.String relationName,
java.lang.String roleSrcName,
java.lang.String roleDstName,
boolean forward)
This method adds a branch to the QueryTree. |
void |
addBranch(int branchIndex,
java.lang.String classname)
|
void |
addFilter(int branchIndex,
Filter filt)
|
void |
addFilter(int branchIndex,
Filter[] filt)
|
void |
addFilter(int branchIndex,
Filter[][] filt)
|
void |
addFilter(int branchIndex,
java.lang.String propertyName,
int operator,
java.lang.Object value)
|
void |
addFilterAlternatives(int branchIndex,
Filter[] filt)
These filters are OR-ed |
void |
addLimit(int id,
int rowcount)
|
void |
addSort(int id,
java.lang.String propertyName,
int operator)
|
com.irisel.oms.olapi.QTBranch |
getBranch(int id)
|
java.util.Vector |
getBranches()
Access method for the branches property. |
CLBrowser |
getBrowser()
Getter for property browser. |
InstanceSet |
getInstanceIds(int id)
|
InstanceSet |
getInstanceSet(int id)
|
void |
prepareStatements()
|
void |
setBranches(java.util.Vector aBranches)
Sets the value of the branches property. |
void |
setBrowser(CLBrowser browser)
Setter for property browser. |
void |
setRoot(int branchIndex,
Instance record)
|
void |
setRoot(int branchIndex,
java.lang.String classname)
|
void |
setRoot(java.lang.String classname)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryTree(CLBrowser clb) throws QueryTreeException
QueryTreeException
public QueryTree() throws QueryTreeException
QueryTreeException
Method Detail |
---|
public java.util.Vector getBranches()
public com.irisel.oms.olapi.QTBranch getBranch(int id)
public void setBranches(java.util.Vector aBranches)
aBranches
- the new value of the branches propertypublic void setRoot(java.lang.String classname) throws QueryTreeException
classname
-
QueryTreeException
public void setRoot(int branchIndex, java.lang.String classname) throws QueryTreeException
QueryTreeException
public void setRoot(int branchIndex, Instance record) throws QueryTreeException
QueryTreeException
public void addFilter(int branchIndex, java.lang.String propertyName, int operator, java.lang.Object value)
branchIndex
- propertyName
- operator
- value
- public void addFilter(int branchIndex, Filter filt)
public void addFilter(int branchIndex, Filter[] filt)
public void addFilter(int branchIndex, Filter[][] filt)
public void addFilterAlternatives(int branchIndex, Filter[] filt)
branchIndex
- filt
- public void addBranch(int branchIndex, java.lang.String classname) throws QueryTreeException
QueryTreeException
public void addBranch(int branchIndex, int parentBranchIndex, java.lang.String relationName) throws QueryTreeException
branchIndex
- parentBranchIndex
- relationName
-
QueryTreeException
public void addBranch(int branchIndex, int parentBranchIndex, java.lang.String relationName, boolean forward) throws QueryTreeException
QueryTreeException
public void addBranch(int branchIndex, int parentBranchIndex, java.lang.String relationName, java.lang.String roleSrcName, java.lang.String roleDstName, boolean forward) throws QueryTreeException
branchIndex
- : The unique index that identifies this branchparentBranchIndex
- : The parent branch to which this branch is relatedrelationName
- : name of the relation that links this branch to parentroleSrcName
- : role of this branch objects played in the relationroleDstName
- : role that parent objects play in the relationforward
- : direction of the relation ( Relation.FORWARD
or Relation.REVERSE
QueryTreeException
public void addSort(int id, java.lang.String propertyName, int operator)
public void addLimit(int id, int rowcount)
public void prepareStatements() throws QueryTreeException
QueryTreeException
public InstanceSet getInstanceSet(int id) throws QueryTreeException
id
-
QueryTreeException
public InstanceSet getInstanceIds(int id) throws QueryTreeException
QueryTreeException
public CLBrowser getBrowser()
public void setBrowser(CLBrowser browser)
browser
- New value of property browser.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |