gov.nih.nci.caarray.services.util.dataconverter.mapper.fieldmappers
Class ProtocolApplicationFieldMapper

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.dataconverter.mapper.FieldMapper
      extended by gov.nih.nci.caarray.services.util.dataconverter.mapper.fieldmappers.ProtocolApplicationFieldMapper

public class ProtocolApplicationFieldMapper
extends FieldMapper

This class forces overwriting of a target ProtocolApplication with the source ProtocolApplicationData since the conversion is only intended for adding a new ProtocolApplication. By default, overwriting is not desired because the target object is a cached instance.

Author:
TranP

Constructor Summary
ProtocolApplicationFieldMapper(ClassMapper classMapper, SimpleField sourceField, SimpleField targetField)
           
 
Method Summary
 void map(java.lang.Object sourceObject, java.lang.Object targetObject, boolean overwrite)
          Converts the value contained in the source field of the source object specified by this converter to be the value for the target field of the target object specified by this converter.
 
Methods inherited from class gov.nih.nci.caarray.services.util.dataconverter.mapper.FieldMapper
createFieldMapper, getClassMapper, getFieldMapperInfo, getIndexOfIndexedProperty, getNestedProperty, getNestedPropertyParentType, getParameterTypeOfPropertySetter, getProperty, getSourceField, getTargetField, reverse, setNestedProperty, setProperty, setSourceField, setTargetField, toAccessibleFieldName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolApplicationFieldMapper

public ProtocolApplicationFieldMapper(ClassMapper classMapper,
                                      SimpleField sourceField,
                                      SimpleField targetField)
Parameters:
classMapper -
sourceField -
targetField -
Method Detail

map

public void map(java.lang.Object sourceObject,
                java.lang.Object targetObject,
                boolean overwrite)
Description copied from class: FieldMapper
Converts the value contained in the source field of the source object specified by this converter to be the value for the target field of the target object specified by this converter.

Overrides:
map in class FieldMapper