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

java.lang.Object
  extended by com.softwareag.tamino.db.api.connection.TGlobalTransactionSpecifier.TCompletion
Enclosing class:
TGlobalTransactionSpecifier

public static class TGlobalTransactionSpecifier.TCompletion
extends java.lang.Object

Constant class for the completion mode of a global transaction. It is an optional parameter. It indicates what the Tamino Server will do once the first global transaction is terminated. Keep Alive is the default and indicates that the session is kept open. Destroy indicates that the session is closed once the transaction is terminated.

Version:
$Revision: 1.12 $
Author:
Stefan Liebig

Field Summary
static TGlobalTransactionSpecifier.TCompletion DESTROY
          Constant that represents the "Destroy" completion command parameter.
static TGlobalTransactionSpecifier.TCompletion KEEP_ALIVE
          Constant that represents the "Keep Alive" completion command parameter.
 
Method Summary
 void writeTo(TCommandStatement commandStatement)
          Writes the completion command paremeter and its value to the given TCommandStatement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEEP_ALIVE

public static final TGlobalTransactionSpecifier.TCompletion KEEP_ALIVE
Constant that represents the "Keep Alive" completion command parameter. Keep Alive is the default and indicates that the session is kept open.


DESTROY

public static final TGlobalTransactionSpecifier.TCompletion DESTROY
Constant that represents the "Destroy" completion command parameter. Destroy indicates that the session is closed once the transaction is terminated.

Method Detail

writeTo

public void writeTo(TCommandStatement commandStatement)
Writes the completion command paremeter and its value to the given TCommandStatement.

Parameters:
commandStatement - gets the current completion command paramters.


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