org.teiid.adminapi.impl
Class TransactionMetadata
java.lang.Object
org.teiid.adminapi.impl.AdminObjectImpl
org.teiid.adminapi.impl.TransactionMetadata
- All Implemented Interfaces:
- java.io.Serializable, AdminObject, Transaction
public class TransactionMetadata
- extends AdminObjectImpl
- implements Transaction
- See Also:
- Serialized Form
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 |
TransactionMetadata
public TransactionMetadata()
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.