|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used for transaction control over a transaction manager.
Field Summary | |
static int |
STATUS_ACTIVE
Status of an active transaction. |
static int |
STATUS_COMMITTED
Status of a transaction that comitted. |
static int |
STATUS_NOT_ACTIVE
Status of a non active transaction. |
static int |
STATUS_ROLLEDBACK
Status of a transaction that rolled back. |
Method Summary | |
void |
begin()
Begins the transaction. |
void |
commit()
Commits the transaction. |
int |
getStatus()
Returns transaction status. |
long |
getTimeout()
Gets transaction timeout. |
boolean |
isActive()
Indicates if the transaction is active. |
void |
rollback()
Rolls back the transaction. |
void |
setTimeout(long milliseconds)
Sets transaction timeout for acquiring a lock. |
Field Detail |
public static final int STATUS_NOT_ACTIVE
public static final int STATUS_ACTIVE
public static final int STATUS_COMMITTED
public static final int STATUS_ROLLEDBACK
Method Detail |
public boolean isActive()
true
if the transaction is still active;
false
otherwise.public void begin() throws StorageException
StorageException
public void commit() throws StorageException
StorageException
public void rollback() throws StorageException
StorageException
public void setTimeout(long milliseconds)
milliseconds
- Number of milliseconds for timeout. Values lesser than 1
millisecond mean no timeout should be used.public long getTimeout()
public int getStatus()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |