public interface Connector
Modifier and Type | Method and Description |
---|---|
void |
beforeCompletion()
Informs the Connector that the transaction has reached it's
beforeCompletion phase.
|
void |
begin(boolean optimistic)
Informs the Connector that a transaction is beginning.
|
void |
commit()
Requests that the Connector make all changes made since the previous
commit/rollback permanent and releases any database locks held by the
Connector.
|
void |
flush()
Requests that the Connector send all pending database operations to the
store.
|
boolean |
getRollbackOnly()
Indicates whether or not the connector can do operations other than
rollback.
|
void |
rollback()
Requests that the Connector drop all changes made since the previous
commit/rollback and releases any database locks currently held by this
Connector.
|
void |
setRollbackOnly()
Requests that the Connector put itself in a state such that the only
allowable operations is
getRollbackOnly() . |
void begin(boolean optimistic)
optimistic
- If true, then an optimistic transaction is
beginning.JDODataStoreException
- is [@link setRollbackOnly} has been
invoked on this Connector.void beforeCompletion()
JDODataStoreException
- is [@link setRollbackOnly} has been
invoked on this Connector.void flush()
JDODataStoreException
- is [@link setRollbackOnly} has been
invoked on this Connector.void commit()
JDODataStoreException
- is [@link setRollbackOnly} has been
invoked on this Connector.void rollback()
void setRollbackOnly()
getRollbackOnly()
. Once set, attempts to
do any other operations will result in a JDODataStoreException.boolean getRollbackOnly()
false
if the connector can do operations other than
rollback.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.