|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.query.backend.TransactionalEventTransactionContext
public class TransactionalEventTransactionContext
This class implements the TransactionContext
interface. It retrieves
transaction context information from the TransactionManager
that gets passed in as a
parameter upon instantiation.
QueryInterceptor
to pass transaction information to a Hibernate Search Work
object.
QueryInterceptor
Constructor Summary | |
---|---|
TransactionalEventTransactionContext(TransactionManager transactionManager)
Creates a new instance of NodeModifiedTransactionContext. |
Method Summary | |
---|---|
Object |
getTransactionIdentifier()
Returns a JTA transaction. |
boolean |
isTransactionInProgress()
Returns a boolean value whether or not a transaction is in progress (JTA transaction and in this case *not* an org.hibernate transaction). |
void |
registerSynchronization(Synchronization synchronization)
Registers the synchronization passed in as a parameter with the ongoing transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalEventTransactionContext(TransactionManager transactionManager)
transactionManager
- a NodeModifiedEvent to wrap. Should not be null.
NullPointerException
- if event is null.Method Detail |
---|
public boolean isTransactionInProgress()
isTransactionInProgress
in interface org.hibernate.search.backend.TransactionContext
public Object getTransactionIdentifier()
getTransactionIdentifier
in interface org.hibernate.search.backend.TransactionContext
TransactionManager
public void registerSynchronization(Synchronization synchronization)
registerSynchronization
in interface org.hibernate.search.backend.TransactionContext
synchronization
- synchronization to register. Must not be null.
NullPointerException
- if the synchronization is null.
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |