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. |
Constraint org.odbms.Query.constrain | ( | Object | constraint | ) |
adds a constraint to this node.
If the constraint contains attributes that are not yet present in the query graph, the query graph is extended accordingly.
Special behaviour for:
constraint | the constraint to be added to this Query. |
null
for objects implementing the Evaluation interface. Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery.
Referenced by org.openmobileis.synchro.journal.JournalQueryManager.createOrUpdate(), org.openmobileis.examples.mycrm.data.fodb.AccountFactory.getAccount(), org.openmobileis.examples.mycrm.data.fodb.AccountFactory.getAccountByName(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionDB(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionsForService(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getAllBaseData(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getAllCollectionObject(), org.openmobileis.synchro.journal.JournalQueryManager.getAllEntryForService(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getAllLeads(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getAllTerminalUsers(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getBaseData(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelWithIds(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getLeads(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getLeadsForAccount(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.getObjectFromCollectionWithId(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getTerminalUser(), 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.test.database.TestFODBSynchro.testDoSynchro(), 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().
Constraints org.odbms.Query.constraints | ( | ) |
returns a Constraints object that holds an array of all constraints on this node.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery.
ObjectSet org.odbms.Query.execute | ( | ) |
executes the Query.
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery.
Referenced by org.openmobileis.synchro.journal.JournalQueryManager.createOrUpdate(), org.openmobileis.examples.mycrm.data.fodb.AccountFactory.getAccount(), org.openmobileis.examples.mycrm.data.fodb.AccountFactory.getAccountByName(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionDB(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionsForService(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getAllBaseData(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getAllCollectionObject(), org.openmobileis.synchro.journal.JournalQueryManager.getAllEntryForService(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getAllLeads(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getAllTerminalUsers(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getBaseData(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelWithIds(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getLeads(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getLeadsForAccount(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.getObjectFromCollectionWithId(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getTerminalUser(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch(), org.openmobileis.test.database.TestFODBSynchro.testDoSynchro(), 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().
Query org.odbms.Query.descend | ( | String | fieldName | ) |
returns a reference to a descendant node in the query graph.
If the node does not exist, it will be created.
All classes represented in the query node are tested, whether they contain a field with the specified field name. The descendant Query node will be created from all possible candidate classes.
field | path to the descendant. |
Implemented in org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaQuery.
Referenced by org.openmobileis.synchro.journal.JournalQueryManager.createOrUpdate(), org.openmobileis.examples.mycrm.data.fodb.AccountFactory.getAccount(), org.openmobileis.examples.mycrm.data.fodb.AccountFactory.getAccountByName(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionDB(), org.openmobileis.database.fastobjectdb.synchro.client.FODBSyncActionDBQueryManager.getActionsForService(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getAllBaseData(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getAllCollectionObject(), org.openmobileis.synchro.journal.JournalQueryManager.getAllEntryForService(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getAllLeads(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getAllTerminalUsers(), org.openmobileis.examples.simpleappli.data.FODB.FODBBaseDataFactory.getBaseData(), org.openmobileis.database.fastobjectdb.db.test.TestFODBSyncTarget.getCollectionObjectWithId(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelListForCategorie(), org.openmobileis.modules.common.database.fodb.FODBLabelFactory.getLabelWithIds(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getLeads(), org.openmobileis.examples.mycrm.data.fodb.LeadsFactory.getLeadsForAccount(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.getObjectFromCollectionWithId(), org.openmobileis.modules.common.database.fodb.FODBTerminalUserFactory.getTerminalUser(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDataWithArray(), org.openmobileis.database.fastobjectdb.db.test.TestFastObjectDB.testDBSearch(), org.openmobileis.test.database.TestFODBSynchro.testDoSynchro(), 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().
Query org.odbms.Query.orderAscending | ( | ) |
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.
Query org.odbms.Query.orderDescending | ( | ) |
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.