public class XALdifDstService extends Object implements IXAWritableService
| Constructor and Description |
|---|
XALdifDstService(TaskType task) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(LscModifications lm)
Apply lsc modifications.
|
void |
commit(String xid) |
void |
end(String xid) |
IBean |
getBean(String pivotName,
LscDatasets pivotAttributes,
boolean fromSameService)
The simple object getter according to its identifier.
|
String |
getId()
Return the service unique identifier
The identifier must be unique to distinguish it from the other XA resource manager
|
Map<String,LscDatasets> |
getListPivots()
Returns a list of all the objects' identifiers.
|
List<String> |
getWriteDatasetIds() |
int |
prepare(String xid) |
void |
rollback(String xid) |
void |
setTransactionManager(TransactionManager xaTM) |
String |
start()
Ask for a Xid to the XA resource manager
|
void |
submit(String xid,
LscModifications lm) |
public XALdifDstService(TaskType task) throws LscServiceException
LscServiceExceptionpublic String getId()
IXAWritableServicegetId in interface IXAWritableServicepublic String start() throws LscServiceException
IXAWritableServicestart in interface IXAWritableServiceLscServiceInitializationExceptionLscServiceExceptionpublic void submit(String xid, LscModifications lm) throws LscServiceException
submit in interface IXAWritableServiceLscServiceExceptionpublic void commit(String xid) throws LscServiceException
commit in interface IXAWritableServiceLscServiceExceptionpublic void end(String xid) throws LscServiceException
end in interface IXAWritableServiceLscServiceExceptionpublic int prepare(String xid) throws LscServiceException
prepare in interface IXAWritableServiceLscServiceExceptionpublic void rollback(String xid) throws LscServiceException
rollback in interface IXAWritableServiceLscServiceExceptionpublic boolean apply(LscModifications lm) throws LscServiceException
IWritableServiceapply in interface IWritableServicelm - Modifications to apply in a LscModifications object.LscServiceException - thrown if an error is encounteredpublic IBean getBean(String pivotName, LscDatasets pivotAttributes, boolean fromSameService) throws LscServiceException
IServicegetBean in interface IServicepivotName - Name of the entry to be returned, which is the name returned by
IService.getListPivots() (used for display only)pivotAttributes - Map of attribute names and values, which is the data identifier in the
source such as returned by IService.getListPivots(). It must identify a unique
entry in the source.fromSameService - are the pivot attributes provided by the same serviceLscServiceExceptionpublic Map<String,LscDatasets> getListPivots() throws LscServiceException
IServicegetListPivots in interface IServiceLscServiceExceptionpublic void setTransactionManager(TransactionManager xaTM)
setTransactionManager in interface IXAWritableServicepublic List<String> getWriteDatasetIds()
getWriteDatasetIds in interface IWritableServiceCopyright © 2005-2017 LSC project. All Rights Reserved.