public class BatchOperation extends Object
Modifier and Type | Field and Description |
---|---|
protected List<BatchItemRequest> |
batchItemRequests
variable batchItemRequests
|
protected List<String> |
bIds
variable bIds
|
Constructor and Description |
---|
BatchOperation() |
Modifier and Type | Method and Description |
---|---|
void |
addCDCQuery(List<? extends IEntity> entities,
String changedSince,
String bId)
Method to add the cdc query batch operation to batchItemRequest
|
<T extends IEntity> |
addEntity(T entity,
OperationEnum operation,
String bId)
Method to add the entity batch operations to the batchItemRequest
|
void |
addQuery(String query,
String bId)
Method to add the query batch operation to batchItemRequest
|
void |
addReportQuery(String reportQuery,
String bId)
Method to add the report query batch operation to batchItemRequest
|
List<BatchItemRequest> |
getBatchItemRequests()
Gets batchItemRequests
|
List<String> |
getBIds()
Gets bIds
|
Map<String,CDCQueryResult> |
getCDCQueryResult()
Gets cdcQueryResult list
|
CDCQueryResult |
getCDCQueryResult(String bId)
Method to get the cdc query result object for the given bId
|
IEntity |
getEntity(String bId)
Method to get the entity object for the given bId
|
Map<String,IEntity> |
getEntityResult()
Gets entityResult list
|
Fault |
getFault(String bId)
Method to get the fault object for the given bId
|
Map<String,Fault> |
getFaultResult()
Gets faultResult list
|
protected <T> JAXBElement<? extends IntuitEntity> |
getIntuitObject(T entity)
Method to get the corresponding IEntity type for the given JAXBElement
|
QueryResult |
getQueryResponse(String bId)
Method to get the query result object for the given bId
|
Map<String,QueryResult> |
getQueryResult()
Gets queryResult list
|
Report |
getReport(String bId)
Method to get the report object for the given bId
|
Map<String,Report> |
getReportResult()
Gets reportResult list
|
boolean |
isCDCQuery(String bId)
Method to validate whether the batch item is cdc query for the given bId
|
boolean |
isEntity(String bId)
Method to validate whether the batch item is entity for the given bId
|
boolean |
isFault(String bId)
Method to validate whether the batch item is fault for the given bId
|
boolean |
isQuery(String bId)
Method to validate whether the batch item is query for the given bId
|
boolean |
isReport(String bId)
Method to validate whether the batch item is report for the given bId
|
protected List<BatchItemRequest> batchItemRequests
public <T extends IEntity> void addEntity(T entity, OperationEnum operation, String bId)
entity
- the entityoperation
- the OperationEnumbId
- the batch Idpublic void addQuery(String query, String bId)
query
- the querybId
- the batch Idpublic void addCDCQuery(List<? extends IEntity> entities, String changedSince, String bId) throws FMSException
entities
- the list of entitieschangedSince
- the date where the entities should be listed from the last changed datebId
- the batch IdFMSException
public void addReportQuery(String reportQuery, String bId)
reportQuery
- bId
- public List<BatchItemRequest> getBatchItemRequests()
public boolean isFault(String bId)
bId
- public boolean isReport(String bId)
bId
- public boolean isQuery(String bId)
bId
- public boolean isCDCQuery(String bId)
bId
- public boolean isEntity(String bId)
bId
- public Fault getFault(String bId)
bId
- public Report getReport(String bId)
bId
- public QueryResult getQueryResponse(String bId)
bId
- public CDCQueryResult getCDCQueryResult(String bId)
bId
- public IEntity getEntity(String bId)
bId
- public Map<String,Report> getReportResult()
public Map<String,QueryResult> getQueryResult()
public Map<String,CDCQueryResult> getCDCQueryResult()
public Map<String,IEntity> getEntityResult()
protected <T> JAXBElement<? extends IntuitEntity> getIntuitObject(T entity)
entity
- Copyright © 2017. All rights reserved.