| org.xorm.datastore.DatastoreDriver
All known Subclasses: org.xorm.datastore.xml.JDOMDocumentDriver, org.xorm.datastore.heap.HeapDriver, org.xorm.datastore.sql.BaseSQLDriver,
DatastoreDriver | public interface DatastoreDriver (Code) | | There is one datastore driver per Transaction.
|
Method Summary | |
public void | begin(boolean readOnly) | public void | commit() | public int | count(Selector selector) Returns the size of the results that would be returned by the query. | public void | create(Row row) Creates (inserts) a new row in the datastore. | public void | delete(Row row) Permanently deletes a single row from the datastore. | public void | rollback() | public Collection | select(Selector selector, Set extraRows) Selects from (queries) the datastore for rows matching the
specified query conditions. | public void | update(Row row) Updates a given row so that the datastore's values are in sync
with those in the object. |
count | public int count(Selector selector) throws DriverException(Code) | | Returns the size of the results that would be returned by the query.
A naive implementation would be to return select(selector, ...).size().
However, this allows datastores that provide a native count feature
to use far less network and memory resources.
|
create | public void create(Row row) throws DriverException(Code) | | Creates (inserts) a new row in the datastore.
If the table is configured for autoincrement or sequence
ID generation, the object ID is generated using that method
before the row is inserted.
|
select | public Collection select(Selector selector, Set extraRows) throws DriverException(Code) | | Selects from (queries) the datastore for rows matching the
specified query conditions.
Parameters: selector - the root of the parse tree representing the query Parameters: extraRows - a non-null set to which additional objects readfrom the datastore can be added, as advised by fetch groupinformation and optimization choices. a collection of Row objects matching the selection criteria. |
update | public void update(Row row) throws DriverException(Code) | | Updates a given row so that the datastore's values are in sync
with those in the object.
|
|
|