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
QueryTreeExceptionpublic QueryTree()
throws QueryTreeException
QueryTreeExceptionpublic void setRoot(java.lang.String classname)
throws QueryTreeException
classname - QueryTreeExceptionpublic void setRoot(int branchIndex,
java.lang.String classname)
throws QueryTreeException
QueryTreeExceptionpublic void setRoot(int branchIndex,
Instance record)
throws QueryTreeException
QueryTreeExceptionpublic 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
QueryTreeExceptionpublic void addBranch(int branchIndex,
int parentBranchIndex,
java.lang.String relationName)
throws QueryTreeException
branchIndex - parentBranchIndex - relationName - QueryTreeExceptionpublic void addBranch(int branchIndex,
int parentBranchIndex,
java.lang.String relationName,
boolean forward)
throws QueryTreeException
QueryTreeExceptionpublic 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.REVERSEQueryTreeExceptionpublic void addSort(int id,
java.lang.String propertyName,
int operator)
public void addLimit(int id,
int rowcount)
public void prepareStatements()
throws QueryTreeException
QueryTreeExceptionpublic InstanceSet getInstanceSet(int id) throws QueryTreeException
id - QueryTreeExceptionpublic InstanceSet getInstanceIds(int id) throws QueryTreeException
QueryTreeExceptionpublic CLBrowser getBrowser()
public void setBrowser(CLBrowser browser)
browser - New value of property browser.