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

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

public class TGlobalTransactionSpecifier
extends java.lang.Object

TGlobalTransactionSpecifier wraps the parameters which are neccessary to initiate a global transaction. Currently this is only the global transaction id, which the API is given from some transaction coordinator. As global tranaction id may currently only a .. and a ..
In future versions additional parameters may be added.

Version:
$Revision: 1.12 $
Author:
Stefan Liebig

Nested Class Summary
static class TGlobalTransactionSpecifier.TCompletion
          Constant class for the completion mode of a global transaction.
 
Constructor Summary
TGlobalTransactionSpecifier(java.lang.String globalTransactionId)
          Initializes the transaction id with a special transaction id.
TGlobalTransactionSpecifier(java.lang.String globalTransactionId, TGlobalTransactionSpecifier.TCompletion completion)
          Initializes the transaction id with a special transaction id.
 
Method Summary
 java.lang.String toString()
          Writes the transaction specifier into a String.
 void writeTo(TCommandStatement commandStatement)
          Writes the command paremeter and the command parameter value for this transaction id to the given TCommandStatement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TGlobalTransactionSpecifier

public TGlobalTransactionSpecifier(java.lang.String globalTransactionId)
                            throws java.io.UnsupportedEncodingException
Initializes the transaction id with a special transaction id.

Parameters:
globalTransactionId - the special transaction id.
Throws:
java.io.UnsupportedEncodingException

TGlobalTransactionSpecifier

public TGlobalTransactionSpecifier(java.lang.String globalTransactionId,
                                   TGlobalTransactionSpecifier.TCompletion completion)
Initializes the transaction id with a special transaction id.

Parameters:
globalTransactionId - the special transaction id.
completion - the completion value.
Method Detail

writeTo

public void writeTo(TCommandStatement commandStatement)
Writes the command paremeter and the command parameter value for this transaction id to the given TCommandStatement.

Parameters:
commandStatement - gets the current transaction id.

toString

public java.lang.String toString()
Writes the transaction specifier into a String.

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


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