|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapService
The MapService interface represents the client programming model for the Map Service. The MapService provides operations for transforming incoming BusinessGraphs/DataObjects to outgoing BusinessGraphs/ DataObjects.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
simpleTransform(java.lang.String mapTNS,
java.lang.String mapName,
commonj.sdo.DataObject inputObject,
commonj.sdo.DataObject outputObject)
Transforms an input BusinessGraph/DataObject to an output BusinessGraph/DataObject using a given map. |
void |
transform(java.lang.String mapTNS,
java.lang.String mapName,
java.util.HashMap inputObjects,
java.util.HashMap outputObjects,
ExecutionContext callingContext)
Transforms the input objects to the output objects using the given map. |
void |
transformSMO(java.lang.String mapTNS,
java.lang.String mapName,
java.util.HashMap inputObjects,
java.util.HashMap outputObjects,
java.util.HashMap assertedTypes,
ExecutionContext context)
|
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void transform(java.lang.String mapTNS, java.lang.String mapName, java.util.HashMap inputObjects, java.util.HashMap outputObjects, ExecutionContext callingContext) throws WBIMapServiceException, WBIMapNotFoundException, WBIMapFailureException
example
<map:inputBusinessObjectVariable name="source_SAPCustomerBG" .../>
<map:outputBusinessObjectVariable name="target_CustomerBG" .../>
variable name for the input SAPCustomerBG is source_SAPCustomer
variable name for the output CustomerBG is target_CustomerBG
For a reverse map, the same variable names should be used for the BusinessGraph/DataObject as that for the forward map.
The ExecutionContext is needed only if the map has relationship calls. It
contains the following
mapTNS
- Targetnamespace of the map, available in the map definition.mapName
- Name of the mapinputObjects
- HashMap of input objects to be transformed. HashMap contains
variable name and BusinessGraph/DataObject pairs, keyed on variable name.outputObjects
- HashMap of output objects that will be generated. HashMap
contains variable name and BusinessObject/DataObject pairs, keyed on variable name.
An empty HashMap can be passed in as a parameter and will be populated with the output
objects as a result of the method call.callingContext
- contains the context string and the original input and output
BusinessGraph/DataObject.
WBIMapServiceException
WBIMapNotFoundException
WBIMapFailureException
void simpleTransform(java.lang.String mapTNS, java.lang.String mapName, commonj.sdo.DataObject inputObject, commonj.sdo.DataObject outputObject) throws WBIMapServiceException, WBIMapNotFoundException, WBIMapFailureException
mapTNS
- Targetnamespace of the mapmapName
- Name of the mapinputObject
- The input object to be transformed by the mapoutputObject
- The output object that will be created as a
result of the transformation. The output object has to be created and
passed into the method and cannot be null.
WBIMapServiceException
WBIMapNotFoundException
WBIMapFailureException
void transformSMO(java.lang.String mapTNS, java.lang.String mapName, java.util.HashMap inputObjects, java.util.HashMap outputObjects, java.util.HashMap assertedTypes, ExecutionContext context) throws WBIMapServiceException, WBIMapFailureException, WBIMapNotFoundException
mapTNS
- mapName
- inputObjects
- outputObjects
- assertedTypes
- context
-
WBIMapServiceException
WBIMapFailureException
WBIMapNotFoundException
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |