<xml> </xml>

db4o |

# Query Interface

handle to a node in a S.O.D.A.

For a list of all members of this type, see Query Members.

public interface Query

#### Remarks

handle to a node in a S.O.D.A. query graph.
A node in the query graph can represent multiple classes, one class or an attribute of a class.
The graph is automatically extended with attributes of added constraints (see com.db4o.query.Query.Constrain ) and upon calls to com.db4o.query.Query.Descend that request nodes that do not yet exist.
References to joined nodes in the query graph can be obtained by "walking" along the nodes of the graph with the method com.db4o.query.Query.Descend .
com.db4o.query.Query.Execute evaluates the entire graph against all persistent objects.
com.db4o.query.Query.Execute can be called from any com.db4o.query.Query node of the graph. It will return an com.db4o.ObjectSet filled with objects of the class/classes that the node, it was called from, represents.
Note:
Native queries are the recommended main query interface of db4o.

#### Requirements

Namespace: com.db4o.query

Assembly: db4o (in db4o.dll)

#### See Also

Query Members | com.db4o.query Namespace