Summary
Query-By-Example interface to retrieve objects.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o - Containing Type
- IObjectContainer
Syntax
IObjectSet QueryByExample(Object template)
Remarks
Query-By-Example interface to retrieve objects.
QueryByExample() creates an object set containing all objects in the database that match the passed template object.
Calling QueryByExample(null) returns all objects stored in the database.
Query Evaluation:
QueryByExample() creates an object set containing all objects in the database that match the passed template object.
Calling QueryByExample(null) returns all objects stored in the database.
Query Evaluation:
- All non-null members of the template object are compared against all stored objects of the same class.
- Primitive type members are ignored if they are 0 or false respectively.
- Arrays and collections are evaluated for containment. Differences in length/size() are ignored.
Parameters
Name | Type | Description |
---|---|---|
template | Object | object to be used as an example to find all matching objects. |
Return Value
Type | Description |
---|---|
IObjectSet |
Db4objects.Db4o.IObjectSet
containing all found objects. |
See Also
- Db4objects.Db4o.Config.IConfiguration.ActivationDepth(System.Int32)
- Db4objects.Db4o.Ext.IObjectCallbacks