IBM WebSphere Adapters User Manual
Page 124
As defined in the sapBAPIBusinessObjectTypeMetadata schema
″Operation″ is an
n-cardinality complex type. The
″MethodName″ element of the operation type is a
simple type with multiple cardinality:
For the above metadata, the object level annotations map generated for the
JavaBeanRecord would look like the following:
public static LinkedHashMap objectAnnotations = new LinkedHashMap();
static {
objectAnnotations.put("Type","BAPI");
LinkedList operationAnnotation = new LinkedList();
LinkedList methodnameList;
LinkedHashMap createOperationMap = new LinkedHashMap();
createOperationMap.put("Name", "Create");
methodnameList = new LinkedList();
methodnameList.add("wbiCustomerCreate)";
createOperationMap.put("MethodName", methodnameList);
operationAnnotation.add(createOperationMap);
LinkedHashMap updateOperationMap = new LinkedHashMap();
updateOperationMap.put("Name", "Update");
methodnameList = new LinkedList();
methodnameList.add("wbiCustomerUpdate)";
updateOperationMap.put("MethodName", methodnameList);
operationAnnotation.add(updateOperationMap);
objectAnnotations.put("Operation",operationAnnotation);
}
ObjectAnnotations:Object level metadata in the annotations is read and stored in the
’objectAnnotations’ Map. Following diagram shows the structure of
objectAnnotations.
118
WebSphere Adapters: WebSphere Adapter Toolkit User Guide