public interface InternalXAResource
Modifier and Type | Method and Description |
---|---|
void |
afterOperation(TransactionContext tx)
Invoked after one of the
prepare(org.apache.jackrabbit.data.core.TransactionContext) , commit(org.apache.jackrabbit.data.core.TransactionContext) or
rollback(org.apache.jackrabbit.data.core.TransactionContext) method has been called. |
void |
associate(TransactionContext tx)
Associate this resource with a transaction.
|
void |
beforeOperation(TransactionContext tx)
Invoked before one of the
prepare(org.apache.jackrabbit.data.core.TransactionContext) , commit(org.apache.jackrabbit.data.core.TransactionContext) or
rollback(org.apache.jackrabbit.data.core.TransactionContext) method is called. |
void |
commit(TransactionContext tx)
Commit transaction.
|
void |
prepare(TransactionContext tx)
Prepare transaction.
|
void |
rollback(TransactionContext tx)
Rollback transaction.
|
void associate(TransactionContext tx)
tx
- transaction context, if null
disassociatevoid beforeOperation(TransactionContext tx)
prepare(org.apache.jackrabbit.data.core.TransactionContext)
, commit(org.apache.jackrabbit.data.core.TransactionContext)
or
rollback(org.apache.jackrabbit.data.core.TransactionContext)
method is called.tx
- transaction contextvoid prepare(TransactionContext tx) throws TransactionException
tx
- transaction contextTransactionException
- if an error occursvoid commit(TransactionContext tx) throws TransactionException
tx
- transaction contextTransactionException
- if an error occursvoid rollback(TransactionContext tx) throws TransactionException
tx
- transaction context.TransactionException
void afterOperation(TransactionContext tx)
prepare(org.apache.jackrabbit.data.core.TransactionContext)
, commit(org.apache.jackrabbit.data.core.TransactionContext)
or
rollback(org.apache.jackrabbit.data.core.TransactionContext)
method has been called.tx
- transaction contextCopyright © 2010 - 2020 Adobe. All Rights Reserved