Interface TransactionalResource
-
- All Known Implementing Classes:
AssocWithThreadResourceHandle,ResourceHandle
public interface TransactionalResourceTransactionalResource 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 voidcloseUserConnection()voiddestroyResource()voidenlistedInTransaction(jakarta.transaction.Transaction tran)Indicates that a resource has been enlisted in the transaction.ObjectgetComponentInstance()StringgetName()XAResourcegetXAResource()booleanisEnlisted()booleanisEnlistmentSuspended()booleanisShareable()booleanisTransactional()voidsetComponentInstance(Object instance)booleansupportsXA()
-
-
-
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 IllegalStateExceptionIndicates 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
-
-