com.softwareag.tamino.db.api.connection
Class TTransactionParameters

java.lang.Object
  extended by com.softwareag.tamino.db.api.connection.TTransactionParameters

public class TTransactionParameters
extends java.lang.Object

TTransactionParameters is the collection of the transactional parameters used for either the connection or in a limited way for the accessors.

Version:
$Revision: 1.10 $
Author:
Marcus Schreyer, Stefan Liebig

Constructor Summary
TTransactionParameters()
          Initializes the transactional parameters, so that it starts in default mode for all tamino transaction modes.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TTransactionParameters

public TTransactionParameters()
Initializes the transactional parameters, so that it starts in default mode for all tamino transaction modes.

Method Detail

writeTo

public void writeTo(TCommandStatement commandStatement)
Writes all current transactional parameters to the given commandStatement.

Parameters:
commandStatement - gets the current transactional parameters.

writeForFirstCommandInTransaction

public void writeForFirstCommandInTransaction(TCommandStatement commandStatement)
Writes the current transactional parameters which are valid for the first command in a transaction to the given commandStatement.

Parameters:
commandStatement - gets the current transactional parameters.

setLockwaitMode

public void setLockwaitMode(TLockwaitMode lockwaitMode)
Sets the lockwait mode for a transaction.

Parameters:
lockwaitMode - the lockwait mode to be set, 'null' for Tamino default.

getLockwaitMode

public TLockwaitMode getLockwaitMode()
Gets the current lockwait mode A 'null' value represents the Tamino default.

Returns:
the lockwait mode. Returns 'null' if no lockwait mode is specified.

setIsolationDegree

public void setIsolationDegree(TIsolationDegree isolationDegree)
Sets the isolation degree.

Parameters:
isolationDegree - the isolation degree to be set, 'null' for Tamino default.

getIsolationDegree

public TIsolationDegree getIsolationDegree()
Gets the isolation degree. A 'null' value represents the Tamino default.

Returns:
the isolation degree. Returns 'null' if no isolation degree is specified.

setLockMode

public void setLockMode(TLockMode lockMode)
Sets the lock mode.

Parameters:
lockMode - the lock mode to be set, 'null' for Tamino default.

getLockMode

public TLockMode getLockMode()
Gets the lock mode. A 'null' value represents the Tamino default.

Returns:
the lock mode. Returns 'null' if no lock mode is specified.

isGiven

public boolean isGiven()
Indicates if the transaction parameters are still in its inital state.

Returns:
true if the transaction parameters are all in default, false otherwise.

toString

public java.lang.String toString()
Writes the current transaction parameters to a String.

Overrides:
toString in class java.lang.Object
Returns:
the transaction parameters as a String.

reset

public void reset()
Resets the current tranaction parameters.



Copyright (c) 2013 Software AG. All Rights Reserved.