|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.soda.QueryImpl
| Field Summary | |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
QueryImpl(PersistenceBroker broker)
Constructor for QueryImpl. |
|
QueryImpl(Query query)
wrapping constructor. |
|
| Method Summary | |
Constraint |
constrain(java.lang.Object example)
adds a constraint to this node. |
Query |
descendant(java.lang.String path)
returns a reference to a descendant node in the query graph. |
ObjectSet |
execute()
executes the query. |
Query |
limitSize(int count)
limits the maximum amount of objects returned. |
Query |
orderAscending()
adds an ascending order criteria to this node of the query graph. |
Query |
orderDescending()
adds a descending order criteria to this node of the query graph. |
Query |
parent(java.lang.String path)
returns a reference to a parent node in the query graph. |
void |
setOjbQuery(Query ojbQuery)
Sets the ojbQuery, needed only as long we don't support the soda constraint stuff. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
| Constructor Detail |
public QueryImpl(PersistenceBroker broker)
public QueryImpl(Query query)
| Method Detail |
public Constraint constrain(java.lang.Object example)
Query
constrain in interface Queryexample - object for comparison
public ObjectSet execute()
Query
execute in interface Querypublic Query descendant(java.lang.String path)
Query"[membername].[membername].[membername]""[membername].[membername].[membername]."
descendant in interface Querypath - path to the descendant. "[membername].[membername]"
path specified.public Query parent(java.lang.String path)
Query"[classname].[membername].[membername]"
parent in interface Querypath - to the parent node "[classname].[membername]"
path specified.public Query limitSize(int count)
Query
limitSize in interface Querycount - - the maximum amount of objects desired.
public Query orderAscending()
Query
orderAscending in interface Querypublic Query orderDescending()
Query
orderDescending in interface Querypublic void setOjbQuery(Query ojbQuery)
ojbQuery - The ojbQuery to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||