org.objectweb.cjdbc.controller.requestmanager
Class TransactionMarkerMetaData

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.requestmanager.TransactionMarkerMetaData

public class TransactionMarkerMetaData
extends java.lang.Object

This class carry transaction marker (begin/commit/rollback) metadata.

Metadata include a transaction id, a login and a timeout.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
private  java.lang.String login
           
private  long timeout
           
private  int transactionId
           
 
Constructor Summary
TransactionMarkerMetaData(int transactionId, long timeout, java.lang.String login)
          Creates a new TransactionMarkerMetaData.
 
Method Summary
 java.lang.String getLogin()
          Returns the login.
 long getTimeout()
          Returns the timeout.
 int getTransactionId()
          Returns the transactionId.
 void setLogin(java.lang.String login)
          Sets the login.
 void setTimeout(long timeout)
          Sets the timeout.
 void setTransactionId(int transactionId)
          Sets the transactionId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transactionId

private int transactionId

timeout

private long timeout

login

private java.lang.String login
Constructor Detail

TransactionMarkerMetaData

public TransactionMarkerMetaData(int transactionId,
                                 long timeout,
                                 java.lang.String login)
Creates a new TransactionMarkerMetaData.

Parameters:
transactionId - the transaction identifier.
timeout - the transaction timeout in seconds.
login - the user login.
Method Detail

getLogin

public java.lang.String getLogin()
Returns the login.

Returns:
String

getTimeout

public long getTimeout()
Returns the timeout.

Returns:
long

getTransactionId

public int getTransactionId()
Returns the transactionId.

Returns:
int

setLogin

public void setLogin(java.lang.String login)
Sets the login.

Parameters:
login - the login to set.

setTimeout

public void setTimeout(long timeout)
Sets the timeout.

Parameters:
timeout - the timeout to set.

setTransactionId

public void setTransactionId(int transactionId)
Sets the transactionId.

Parameters:
transactionId - the transactionId to set


Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.