|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Performs Transduction between a transactional data sourcees and
an IMetaCollection
instance.
This interface defines three methods beyaond the scope of the base
ITransducer
interface. Those methods add the transactional
abilities to this ITransactionalTransducer
interface.
To enable transactions, one must first call the setAutoCommit
method passing in true
. Otherwise, the default get
or put
code will automatically commit during their execution.
AggregateTransactionManager
Method Summary | |
void |
commit()
Commits any get or put invocation up to the
last (if any) commit previously invoked. |
void |
rollback()
Rolls back any get or put invocation up to the
last (if any) rollback previously invoked. |
void |
setAutoCommit(boolean aAutoCommit)
Sets whether any get or put invocations will
automatically commit during their execution. |
Methods inherited from interface net.sourceforge.esw.collection.ITransducer |
get, getContextFactory, put, setContextFactory |
Method Detail |
public void commit() throws TransducerException
get
or put
invocation up to the
last (if any) commit previously invoked. This method must be called to
complete the transduction if the setAutoCommit
is set to
true
.TransducerException
- if an error occurred during the commit
process.public void rollback() throws TransducerException
get
or put
invocation up to the
last (if any) rollback previously invoked.TransducerException
- if an error occurred during the rollback
process.public void setAutoCommit(boolean aAutoCommit)
get
or put
invocations will
automatically commit during their execution.aAutoCommit
- if true
, will automatically commit the
transduction during get
or put
execution. If false
, then
commit
must be called to complete the
transduction.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |