|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.cache.search.NodeModifiedTransactionContext
public class NodeModifiedTransactionContext
This class implements the TransactionContext interface. It
retrieves transaction context information from the NodeModifiedEvent that gets passed in.
SearchableCoreListener to pass transaction information to a Hibernate Search Work object.
SearchableCoreListener| Constructor Summary | |
|---|---|
NodeModifiedTransactionContext(org.jboss.cache.notifications.event.NodeModifiedEvent event)
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 NodeModifiedTransactionContext(org.jboss.cache.notifications.event.NodeModifiedEvent event)
event - 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.TransactionContextpublic Object getTransactionIdentifier()
getTransactionIdentifier in interface org.hibernate.search.backend.TransactionContextTransactionalEvent.getTransaction()public void registerSynchronization(Synchronization synchronization)
registerSynchronization in interface org.hibernate.search.backend.TransactionContextsynchronization - synchronization to register. Must not be null.
NullPointerException - if the synchronization is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||