public interface Query
Query
object references a single node of this graph. ObjectSet
filled with objects of the object type
that the node, it was called from, represents. Objects for all
descendant nodes of the caller Query
object will be instantiated.
Objects of parent nodes will not be visible in the
ObjectSet
if they are
not referenced from the caller Query
object.Modifier and Type | Method and Description |
---|---|
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.
|
Constraint constrain(java.lang.Object example)
example
- object for comparisonObjectSet execute()
Query descendant(java.lang.String path)
"[membername].[membername].[membername]"
"[membername].[membername].[membername]."
path
- path to the descendant. "[membername].[membername]"path
specified.Query parent(java.lang.String path)
"[classname].[membername].[membername]"
path
- to the parent node "[classname].[membername]"path
specified.Query limitSize(int count)
count
- - the maximum amount of objects desired.Query orderAscending()
Query orderDescending()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30