Package org.teiid.adminapi.impl
Class TransactionMetadata
- java.lang.Object
-
- org.teiid.adminapi.impl.AdminObjectImpl
-
- org.teiid.adminapi.impl.TransactionMetadata
-
- All Implemented Interfaces:
Serializable
,AdminObject
,DomainAware
,Transaction
public class TransactionMetadata extends AdminObjectImpl implements Transaction
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.teiid.adminapi.impl.AdminObjectImpl
attachments
-
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description TransactionMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAssociatedSession()
Get the session associated with the this transaction.long
getCreatedTime()
Get the local creation time.String
getId()
Returns the Xid string for GLOBAL transactions or the Transaction id string LOCAL/REQUEST.String
getScope()
Get the scope for the transaction.void
setAssociatedSession(String associatedSession)
void
setCreatedTime(long time)
void
setId(String id)
void
setScope(String scope)
String
toString()
-
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttachment, addAttchment, addProperty, getAttachment, getHostName, getName, getProperties, getPropertiesMap, getPropertyValue, getServerGroup, getServerName, removeAttachment, removeProperty, setHostName, setName, setProperties, setServerGroup, setServerName
-
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
-
Methods inherited from interface org.teiid.adminapi.DomainAware
getHostName, getServerGroup, getServerName
-
-
-
-
Method Detail
-
getAssociatedSession
public String 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 interfaceTransaction
- Returns:
-
setAssociatedSession
public void setAssociatedSession(String associatedSession)
-
getScope
public String getScope()
Description copied from interface:Transaction
Get the scope for the transaction. Will be one of GLOBAL, LOCAL, REQUEST or INHERITED- Specified by:
getScope
in interfaceTransaction
- Returns:
-
setScope
public void setScope(String scope)
-
getId
public 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 interfaceTransaction
- Returns:
-
setId
public void setId(String id)
-
getCreatedTime
public long getCreatedTime()
Description copied from interface:Transaction
Get the local creation time.- Specified by:
getCreatedTime
in interfaceTransaction
- Returns:
-
setCreatedTime
public void setCreatedTime(long time)
-
-