public class TTransactionParameters
extends java.lang.Object
Constructor and Description |
---|
TTransactionParameters()
Initializes the transactional parameters, so that it starts in default mode for all tamino transaction modes.
|
Modifier and Type | Method and Description |
---|---|
TIsolationDegree |
getIsolationDegree()
Gets the isolation degree.
|
TLockMode |
getLockMode()
Gets the lock mode.
|
TLockwaitMode |
getLockwaitMode()
Gets the current lockwait mode
A 'null' value represents the Tamino default.
|
boolean |
isGiven()
Indicates if the transaction parameters are still in its inital state.
|
void |
reset()
Resets the current tranaction parameters.
|
void |
setIsolationDegree(TIsolationDegree isolationDegree)
Sets the isolation degree.
|
void |
setLockMode(TLockMode lockMode)
Sets the lock mode.
|
void |
setLockwaitMode(TLockwaitMode lockwaitMode)
Sets the lockwait mode for a transaction.
|
java.lang.String |
toString()
Writes the current transaction parameters to a String.
|
void |
writeForFirstCommandInTransaction(TCommandStatement commandStatement)
Writes the current transactional parameters which are valid for the first command in a transaction to the given commandStatement.
|
void |
writeTo(TCommandStatement commandStatement)
Writes all current transactional parameters to the given commandStatement.
|
public TTransactionParameters()
public void writeTo(TCommandStatement commandStatement)
commandStatement
- gets the current transactional parameters.public void writeForFirstCommandInTransaction(TCommandStatement commandStatement)
commandStatement
- gets the current transactional parameters.public void setLockwaitMode(TLockwaitMode lockwaitMode)
lockwaitMode
- the lockwait mode to be set, 'null' for Tamino default.public TLockwaitMode getLockwaitMode()
public void setIsolationDegree(TIsolationDegree isolationDegree)
isolationDegree
- the isolation degree to be set, 'null' for Tamino default.public TIsolationDegree getIsolationDegree()
public void setLockMode(TLockMode lockMode)
lockMode
- the lock mode to be set, 'null' for Tamino default.public TLockMode getLockMode()
public boolean isGiven()
public java.lang.String toString()
toString
in class java.lang.Object
public void reset()
Copyright (c) 2017 Software AG. All Rights Reserved.