org.hibersap.mapping.model
Class TableMapping

java.lang.Object
  extended by org.hibersap.mapping.model.ParameterMapping
      extended by org.hibersap.mapping.model.TableMapping
All Implemented Interfaces:
Serializable

public final class TableMapping
extends ParameterMapping

Author:
Carsten Erker
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibersap.mapping.model.ParameterMapping
ParameterMapping.ParamType
 
Constructor Summary
TableMapping(Class<?> fieldType, Class<?> associatedType, String sapName, String javaName, StructureMapping componentParameter, Class<? extends Converter> converterClass)
           
 
Method Summary
 boolean equals(Object o)
           
 StructureMapping getComponentParameter()
           
 Class<?> getDestinationType()
           
 Class<?> getFieldType()
           
 ParameterMapping.ParamType getParamType()
           
 Object getUnconvertedValueToJava(Object fieldMapCollection, ConverterCache converterCache)
           
protected  Object getUnconvertedValueToSap(Object value, ConverterCache converterCache)
           
 int hashCode()
           
 
Methods inherited from class org.hibersap.mapping.model.ParameterMapping
getAssociatedType, getConvertedValueToJava, getConvertedValueToSap, getConverterClass, getJavaName, getSapName, hasConverter, mapToJava, mapToSap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.