Inheritance diagram for org.odbms.Query:
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 constrain()) and upon calls to (java.lang.String) descend() that request nodes that do not yet exist.
References to joined nodes in the query graph kann be obtained by "walking" along the nodes of the graph with the method {(java.lang.String) descend().
execute() evaluates the entire graph against all persistent objects.
execute() can be called from any Query node of the graph. It will return an ObjectSet filled with objects of the class/classes that the node, it was called from, represents.
Definition at line 31 of file Query.java.
Public Member Functions | |
Constraint | constrain (Object constraint) |
adds a constraint to this node. | |
Constraints | constraints () |
returns a Constraints object that holds an array of all constraints on this node. | |
ObjectSet | execute () |
executes the Query. | |
Query | descend (String fieldName) |
returns a reference to a descendant node in the query graph. | |
Query | orderAscending () |
adds an ascending ordering criteria to this node of the query graph. | |
Query | orderDescending () |
adds a descending order criteria to this node of the query graph. |
|
|
returns a Constraints object that holds an array of all constraints on this node.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery. |
|
returns a reference to a descendant node in the query graph.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery. Referenced by org.openmobileis.synchro.journal.JournalQueryManager.createOrUpdate(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionDB(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionsForService(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getAllCollectionObject(), org.openmobileis.synchro.journal.JournalQueryManager.getAllEntryForService(), org.openmobileis.modules.crm.database.common.fodb.FODBRepresentantFactory.getAllRepresentants(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.crm.database.common.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.crm.database.common.fodb.FODBLabelFactory.getLabelWithIds(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.getObjectFromCollectionWithId(), org.openmobileis.modules.crm.database.common.fodb.FODBRepresentantFactory.getRepresentant(), org.openmobileis.database.fastobjectdb.db.test.TestThreadRequest2.run(), org.openmobileis.database.fastobjectdb.db.test.TestThreadRequest.run(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testFindLike(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testMultipleIndex(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testRomvedTree(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testTree(). |
|
executes the Query.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery. Referenced by org.openmobileis.synchro.journal.JournalQueryManager.createOrUpdate(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionDB(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionsForService(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getAllCollectionObject(), org.openmobileis.synchro.journal.JournalQueryManager.getAllEntryForService(), org.openmobileis.modules.crm.database.common.fodb.FODBRepresentantFactory.getAllRepresentants(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.crm.database.common.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.crm.database.common.fodb.FODBLabelFactory.getLabelWithIds(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.getObjectFromCollectionWithId(), org.openmobileis.modules.crm.database.common.fodb.FODBRepresentantFactory.getRepresentant(), org.openmobileis.database.fastobjectdb.db.test.TestThreadRequest2.run(), org.openmobileis.database.fastobjectdb.db.test.TestThreadRequest.run(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testFindLike(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testMultipleIndex(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testRomvedTree(), and org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testTree(). |
|
adds an ascending ordering criteria to this node of the query graph. Multiple ordering criteria will be applied in the order they were called.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery. |
|
adds a descending order criteria to this node of the query graph. Multiple ordering criteria will be applied in the order they were called.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery. |