public class QueryTree
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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) |
CLBrowser |
getBrowser()
Getter for property browser.
|
InstanceSet |
getInstanceIds(int id) |
InstanceSet |
getInstanceSet(int id) |
void |
prepareStatements() |
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) |
void |
setTarget(int branchIndex,
Field[] fields)
WARNING! First field must be PK
|
public QueryTree(CLBrowser clb) throws QueryTreeException
QueryTreeException
public QueryTree() throws QueryTreeException
QueryTreeException
public 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 setTarget(int branchIndex, Field[] fields)
branchIndex
- fields
- 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.