Interface TransactionalResource
-
- All Known Implementing Classes:
AssocWithThreadResourceHandle
,ResourceHandle
public interface TransactionalResource
TransactionalResource interface to be implemented by the resource handlers to be able to communicate with used the transaction manager components- Author:
- Marina Vatkina
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closeUserConnection()
void
destroyResource()
void
enlistedInTransaction(jakarta.transaction.Transaction tran)
Indicates that a resource has been enlisted in the transaction.Object
getComponentInstance()
String
getName()
XAResource
getXAResource()
boolean
isEnlisted()
boolean
isEnlistmentSuspended()
boolean
isShareable()
boolean
isTransactional()
void
setComponentInstance(Object instance)
boolean
supportsXA()
-
-
-
Method Detail
-
isTransactional
boolean isTransactional()
-
isEnlistmentSuspended
boolean isEnlistmentSuspended()
-
getXAResource
XAResource getXAResource()
-
supportsXA
boolean supportsXA()
-
getComponentInstance
Object getComponentInstance()
-
setComponentInstance
void setComponentInstance(Object instance)
-
isEnlisted
boolean isEnlisted()
-
isShareable
boolean isShareable()
-
destroyResource
void destroyResource()
-
getName
String getName()
- Returns:
- the String that can identify this resource
-
enlistedInTransaction
void enlistedInTransaction(jakarta.transaction.Transaction tran) throws IllegalStateException
Indicates that a resource has been enlisted in the transaction.- Parameters:
tran
- Transaction to which the resource is enlisted- Throws:
IllegalStateException
- when unable to enlist the resource
-
-