Package org.teiid.dqp.service
Class TransactionContext
- java.lang.Object
-
- org.teiid.dqp.service.TransactionContext
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TransactionContext extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransactionContext.Scope
-
Constructor Summary
Constructors Constructor Description TransactionContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionContext
clone()
long
getCreationTime()
int
getIsolationLevel()
Set<String>
getSuspendedBy()
String
getThreadId()
Transaction
getTransaction()
String
getTransactionId()
TransactionContext.Scope
getTransactionType()
Xid
getXid()
void
setCreationTime(long time)
void
setIsolationLevel(int isolationLevel)
void
setThreadId(String threadId)
void
setTransaction(Transaction transaction)
void
setTransactionType(TransactionContext.Scope transactionType)
void
setXid(Xid xid)
set a transaction context.String
toString()
-
-
-
Method Detail
-
getIsolationLevel
public int getIsolationLevel()
-
setIsolationLevel
public void setIsolationLevel(int isolationLevel)
-
getCreationTime
public long getCreationTime()
-
setCreationTime
public void setCreationTime(long time)
-
setTransactionType
public void setTransactionType(TransactionContext.Scope transactionType)
-
getTransactionType
public TransactionContext.Scope getTransactionType()
-
setThreadId
public void setThreadId(String threadId)
-
getThreadId
public String getThreadId()
-
getTransaction
public Transaction getTransaction()
-
setTransaction
public void setTransaction(Transaction transaction)
-
getTransactionId
public String getTransactionId()
-
clone
public TransactionContext clone()
-
setXid
public void setXid(Xid xid)
set a transaction context.- Parameters:
xid
- transaction context.
-
getXid
public Xid getXid()
- Returns:
- an Xid object carrying a transaction context, if any.
-
-