|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xorm.datastore.heap.HeapDriver
An exceedingly useless implementation of the DatastoreDriver interface: a non-persisted, in-memory representation of a database. Not a full implementation -- in particular, query methods and transactions are not implemented. But it can be used to see when certain operations would occur, or extended for an application that wanted to use "fake JDO" and provide its own keys for looking up bootstrap objects. When using this driver, XORM's second-level cache is the actual datastore (see HeapDatastore).
Constructor Summary | |
HeapDriver(InterfaceManagerFactory factory)
|
Method Summary | |
void |
begin(boolean readOnly)
|
void |
commit()
|
int |
count(Selector selector)
Returns the size of the results that would be returned by the query. |
void |
create(Row row)
Creates (inserts) a new row in the datastore. |
void |
delete(Row row)
Permanently deletes a single row from the datastore. |
void |
rollback()
|
Collection |
select(Selector selector,
Set extraRows)
Selects from (queries) the datastore for rows matching the specified query conditions. |
void |
update(Row row)
Updates a given row so that the datastore's values are in sync with those in the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HeapDriver(InterfaceManagerFactory factory)
Method Detail |
public void begin(boolean readOnly)
begin
in interface DatastoreDriver
public void commit()
commit
in interface DatastoreDriver
public void rollback()
rollback
in interface DatastoreDriver
public void create(Row row)
DatastoreDriver
create
in interface DatastoreDriver
public void update(Row row)
DatastoreDriver
update
in interface DatastoreDriver
public void delete(Row row)
DatastoreDriver
delete
in interface DatastoreDriver
public Collection select(Selector selector, Set extraRows)
DatastoreDriver
select
in interface DatastoreDriver
selector
- the root of the parse tree representing the queryextraRows
- a non-null set to which additional objects read
from the datastore can be added, as advised by fetch group
information and optimization choices.
public int count(Selector selector)
DatastoreDriver
count
in interface DatastoreDriver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |