public class TransactionObject extends java.lang.Object implements SmartTransactionObject
A transaction object returned when the transaction is created.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
flush() |
|
public FlushModeType |
getPreviousFlushMode()
|
|
public SessionHolder |
getSessionHolder() |
|
public Transaction<?> |
getTransaction()
|
|
public boolean |
isNewSession() |
|
public boolean |
isNewSessionHolder() |
|
public boolean |
isRollbackOnly() |
|
public void |
setExistingSession(Session session) |
|
public void |
setPreviousFlushMode(FlushModeType previousFlushMode)Records the flush mode a transaction manager changes on beginning a read-only transaction, so that DatastoreTransactionManager puts it back when the transaction completes. |
|
public void |
setSession(Session session) |
|
public void |
setSessionHolder(SessionHolder sessionHolder) |
|
public void |
setTransaction(Transaction<?> transaction)Records the transaction begun for this object, which its commit or rollback then completes. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
null when the transaction did not change it
Records the flush mode a transaction manager changes on beginning a read-only transaction, so that DatastoreTransactionManager puts it back when the transaction completes.
previousFlushMode - the session's flush mode before the changeRecords the transaction begun for this object, which its commit or rollback then completes. Asking the session instead finds whichever transaction was begun on it last, which is not this one when another transaction has been begun on the same session since.
transaction - the transaction begun for this object