org.hibersap.execution
Class PojoMapper
java.lang.Object
org.hibersap.execution.PojoMapper
public class PojoMapper
- extends java.lang.Object
- Author:
- Carsten Erker
Method Summary |
void |
mapFunctionMapToPojo(java.lang.Object bapi,
java.util.Map<java.lang.String,java.lang.Object> functionMap,
BapiMapping bapiMapping)
|
java.util.Map<java.lang.String,java.lang.Object> |
mapPojoToFunctionMap(java.lang.Object bapi,
BapiMapping bapiMapping)
Maps the Bapi class to the internally used function map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PojoMapper
public PojoMapper(ConverterCache converterCache)
mapFunctionMapToPojo
public void mapFunctionMapToPojo(java.lang.Object bapi,
java.util.Map<java.lang.String,java.lang.Object> functionMap,
BapiMapping bapiMapping)
mapPojoToFunctionMap
public java.util.Map<java.lang.String,java.lang.Object> mapPojoToFunctionMap(java.lang.Object bapi,
BapiMapping bapiMapping)
- Maps the Bapi class to the internally used function map.
- Parameters:
bapi
- The mapped Bapi objectbapiMapping
- The mapping for the Bapi object
- Returns:
- A Map reflecting the structure of the Bapi interface, containing the parameter values
as set in the Bapi object. It contains three Maps with keys "IMPORT", "EXPORT" and
"TABLE", which itself contain the Bapi's import, export and table parameters with the
parameter's names as the Map's keys. The IMPORT and EXPORT maps may contain either
simple types or Maps for complex types as values. The TABLE Map's values are
Collections of Maps which contain the parameters of the table's structure type, each
Collection item reflecting a table row. The Collection rows maintain the same order
as in the Bapi object's Collection (if it is of a Collection type which guarantees
its order, e.g. a List).
Copyright © 2009 Akquinet Tech@Spree GmbH. All Rights Reserved.