|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
There is one datastore driver per Transaction.
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. |
Method Detail |
public void begin(boolean readOnly) throws DriverException
DriverException
public void commit() throws DriverException
DriverException
public void rollback() throws DriverException
DriverException
public void create(Row row) throws DriverException
DriverException
public void update(Row row) throws DriverException
DriverException
public void delete(Row row) throws DriverException
DriverException
public Collection select(Selector selector, Set extraRows) throws DriverException
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.
DriverException
public int count(Selector selector) throws DriverException
DriverException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |