org.hibersap.mapping.model
Class TableMapping
java.lang.Object
org.hibersap.mapping.model.ParameterMapping
org.hibersap.mapping.model.TableMapping
- All Implemented Interfaces:
- Serializable
public final class TableMapping
- extends ParameterMapping
- Author:
- Carsten Erker
- See Also:
- Serialized Form
TableMapping
public TableMapping(Class<?> fieldType,
Class<?> associatedType,
String sapName,
String javaName,
StructureMapping componentParameter,
Class<? extends Converter> converterClass)
- Parameters:
fieldType
- The type of the field in the bean; may be a Collection interface like List,
Set, Collection, a concrete class that implements Collection or an array.
If there is a Converter specified on the field, it may be a Pojo class.associatedType
- The type of the elements, i.e. a Pojo class.sapName
- The table's name in SAP.javaName
- The Java field name of the Collection or array.componentParameter
- A StructureMapping containing the table's fields.converterClass
- The Class of the table field's converter, if defined.
getDestinationType
public Class<?> getDestinationType()
getComponentParameter
public StructureMapping getComponentParameter()
getFieldType
public Class<?> getFieldType()
getParamType
public ParameterMapping.ParamType getParamType()
- Specified by:
getParamType
in class ParameterMapping
getUnconvertedValueToJava
public Object getUnconvertedValueToJava(Object fieldMapCollection,
ConverterCache converterCache)
- Specified by:
getUnconvertedValueToJava
in class ParameterMapping
getUnconvertedValueToSap
protected Object getUnconvertedValueToSap(Object value,
ConverterCache converterCache)
- Specified by:
getUnconvertedValueToSap
in class ParameterMapping
equals
public boolean equals(Object o)
- Overrides:
equals
in class ParameterMapping
hashCode
public int hashCode()
- Overrides:
hashCode
in class ParameterMapping
Copyright © 2012 akquinet tech@spree GmbH. All Rights Reserved.