com.starteam
Class Transaction

java.lang.Object
  extended by com.starteam.Transaction

public final class Transaction
extends java.lang.Object

a Transaction is a logical unit of work on the StarTeam Server. It may comprise of a series of operations to add, modify or delete data. If these operations are executed in a transaction, they are committed together, i.e. if one of them fails, then all of them are rolled back.


Nested Class Summary
static class Transaction.WebCacheTransaction
          Transaction accessor for cached SDK Transactions contained objects are obtained from the artifact cache
 
Method Summary
 int getID()
          The Transaction ID assigned by the server if this Transaction has been committed
 Server getServer()
          Server on which the transaction is running
 DateTime getTime()
          Time at which the transaction was committed
 User getUser()
          The user who committed the transaction
 java.lang.String toString()
          returns a String representation of this Transaction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getServer

public Server getServer()
Server on which the transaction is running

Returns:
the Server on which this Transaction is running or has been run

getID

public int getID()
The Transaction ID assigned by the server if this Transaction has been committed

Returns:
the Transaction ID assigned by the server if this Transaction has been committed or -1 if this Transaction has not yet begun

getTime

public DateTime getTime()
Time at which the transaction was committed

Returns:
the DateTime at which this Transaction was committed or null if the Transaction has not yet been committed

getUser

public User getUser()
The user who committed the transaction

Returns:
the StarTeam user who committed this transaction or null if the Transaction has not yet been committed

toString

public java.lang.String toString()
returns a String representation of this Transaction

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this Transaction


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.