| java.lang.Object org.ofbiz.entity.transaction.GenericXaResource org.ofbiz.service.ServiceXaWrapper
ServiceXaWrapper | public class ServiceXaWrapper extends GenericXaResource (Code) | | ServiceXaWrapper - XA Resource wrapper for running services on commit() or rollback()
|
Method Summary | |
public void | commit(Xid xid, boolean onePhase) | public void | enlist() | public Map | getCommitContext() | public String | getCommitService() | public Map | getRollbackContext() | public String | getRollbackService() | public int | prepare(Xid xid) | public void | rollback(Xid xid) | final protected void | runService(String service, Map context, boolean persist, int mode, int type) | public void | setCommitService(String serviceName, Map context) | public void | setCommitService(String serviceName, Map context, boolean async, boolean persist) | public void | setCommitService(String serviceName, String runAsUser, Map context, boolean async, boolean persist) | public void | setRollbackService(String serviceName, Map context) | public void | setRollbackService(String serviceName, Map context, boolean async, boolean persist) |
MODE_ASYNC | final public static int MODE_ASYNC(Code) | | |
MODE_SYNC | final public static int MODE_SYNC(Code) | | |
TYPE_COMMIT | final public static int TYPE_COMMIT(Code) | | |
TYPE_ROLLBACK | final public static int TYPE_ROLLBACK(Code) | | |
commitAsync | protected boolean commitAsync(Code) | | |
commitAsyncPersist | protected boolean commitAsyncPersist(Code) | | |
commitContext | protected Map commitContext(Code) | | |
rollbackAsync | protected boolean rollbackAsync(Code) | | |
rollbackAsyncPersist | protected boolean rollbackAsyncPersist(Code) | | |
rollbackContext | protected Map rollbackContext(Code) | | |
ServiceXaWrapper | protected ServiceXaWrapper()(Code) | | |
getCommitContext | public Map getCommitContext()(Code) | | The context used when running the rollback() service |
getCommitService | public String getCommitService()(Code) | | The name of the service to run on rollback() |
getRollbackContext | public Map getRollbackContext()(Code) | | The context used when running the rollback() service |
getRollbackService | public String getRollbackService()(Code) | | The name of the service to run on rollback() |
runService | final protected void runService(String service, Map context, boolean persist, int mode, int type) throws XAException(Code) | | |
setCommitService | public void setCommitService(String serviceName, Map context)(Code) | | Sets the service to run on rollback()
Parameters: serviceName - Name of service to run Parameters: context - Context to use when running |
setCommitService | public void setCommitService(String serviceName, Map context, boolean async, boolean persist)(Code) | | Sets the service to run on rollback()
Parameters: serviceName - Name of service to run Parameters: context - Context to use when running Parameters: async - override default async behavior |
setCommitService | public void setCommitService(String serviceName, String runAsUser, Map context, boolean async, boolean persist)(Code) | | Sets the service to run on rollback()
Parameters: serviceName - Name of service to run Parameters: runAsUser - UserLoginID to run as Parameters: context - Context to use when running Parameters: async - override default async behavior |
setRollbackService | public void setRollbackService(String serviceName, Map context)(Code) | | Sets the service to run on rollback()
Parameters: serviceName - Name of service to run Parameters: context - Context to use when running |
setRollbackService | public void setRollbackService(String serviceName, Map context, boolean async, boolean persist)(Code) | | Sets the service to run on rollback()
Parameters: serviceName - Name of service to run Parameters: context - Context to use when running Parameters: async - override default async behavior |
|
|