Top Description Fields Constructors Methods
jakarta.resource.spi.work

public Class TransactionContext

extends ExecutionContext
implements WorkContext
Class Inheritance
All Implemented Interfaces
jakarta.resource.spi.work.WorkContext, java.io.Serializable

A standard WorkContext that allows a Work instance to propagate transaction related context information from an EIS to an application server.

This class extends ExecutionContext so that a resource adapter developer could migrate their existing code from ExecutionContext to TransactionContext easily.

Since
1.6
See Also
jakarta.resource.spi.work.WorkContext, jakarta.resource.spi.work.ExecutionContext

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Determines if a deserialized instance of this class is compatible with this class.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getDescription()

Implements jakarta.resource.spi.work.WorkContext.getDescription.

Get the brief description of the role played by the WorkContext and any other related debugging information.

public String
getName()

Implements jakarta.resource.spi.work.WorkContext.getName.

Get the associated name of the WorkContext.

Inherited from jakarta.resource.spi.work.ExecutionContext:
getTransactionTimeoutgetXidsetTransactionTimeoutsetXid

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Determines if a deserialized instance of this class is compatible with this class.

Constructor Detail

TransactionContextback to summary
public TransactionContext()

Method Detail

getDescriptionback to summary
public String getDescription()

Implements jakarta.resource.spi.work.WorkContext.getDescription.

Doc from jakarta.resource.spi.work.WorkContext.getDescription.

Get the brief description of the role played by the WorkContext and any other related debugging information. This could be used by the WorkManager and the resource adapter for debugging purposes.

Returns:String

the associated description of the WorkContext

getNameback to summary
public String getName()

Implements jakarta.resource.spi.work.WorkContext.getName.

Doc from jakarta.resource.spi.work.WorkContext.getName.

Get the associated name of the WorkContext. This could be used by the WorkManager and the resource adapter for debugging purposes.

Returns:String

the associated name of the WorkContext