org.teiid.adminapi.impl
Class TransactionMetadata

java.lang.Object
  extended by org.teiid.adminapi.impl.AdminObjectImpl
      extended by org.teiid.adminapi.impl.TransactionMetadata
All Implemented Interfaces:
java.io.Serializable, AdminObject, Transaction

public class TransactionMetadata
extends AdminObjectImpl
implements Transaction

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
TransactionMetadata()
           
 
Method Summary
 long getAssociatedSession()
          Get the session associated with the this transaction.
 long getCreatedTime()
          Get the local creation time.
 java.lang.String getId()
          Returns the Xid string for GLOBAL transactions or the Transaction id string LOCAL/REQUEST.
 java.lang.String getScope()
          Get the scope for the transaction.
 void setAssociatedSession(long associatedSession)
           
 void setCreatedTime(long time)
           
 void setId(java.lang.String id)
           
 void setScope(java.lang.String scope)
           
 java.lang.String toString()
           
 
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttchment, addAttchment, addProperty, getAttachment, getAttachment, getJAXBProperties, getName, getProperties, getPropertyValue, removeAttachment, removeAttachment, setJAXBProperties, setName, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
 

Constructor Detail

TransactionMetadata

public TransactionMetadata()
Method Detail

getAssociatedSession

public long getAssociatedSession()
Description copied from interface: Transaction
Get the session associated with the this transaction. May be null for an unassociated Global transaction.

Specified by:
getAssociatedSession in interface Transaction
Returns:

setAssociatedSession

public void setAssociatedSession(long associatedSession)

getScope

public java.lang.String getScope()
Description copied from interface: Transaction
Get the scope for the transaction. Will be one of GLOBAL, LOCAL, or REQUEST

Specified by:
getScope in interface Transaction
Returns:

setScope

public void setScope(java.lang.String scope)

getId

public java.lang.String getId()
Description copied from interface: Transaction
Returns the Xid string for GLOBAL transactions or the Transaction id string LOCAL/REQUEST.

Specified by:
getId in interface Transaction
Returns:

setId

public void setId(java.lang.String id)

getCreatedTime

public long getCreatedTime()
Description copied from interface: Transaction
Get the local creation time.

Specified by:
getCreatedTime in interface Transaction
Returns:

setCreatedTime

public void setCreatedTime(long time)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.