public String createFieldMappingSuccessMsg(Class<?> srcClass, Class<?> destClass, String srcFieldName, String destFieldName, Object srcFieldValue, Object destFieldValue, String classMapId) { String srcClassStr = MappingUtils.getClassNameWithoutPackage(srcClass); String destClassStr = MappingUtils.getClassNameWithoutPackage(destClass); return "MAPPED: " + srcClassStr + "." + srcFieldName + " --> " + destClassStr + "." + destFieldName + " VALUES: " + getLogOutput(srcFieldValue) + " --> " + getLogOutput(destFieldValue) + " MAPID: " + (classMapId != null ? classMapId : ""); }
public static String createFieldMappingSuccessMsg(Class<?> srcClass, Class<?> destClass, String srcFieldName, String destFieldName, Object srcFieldValue, Object destFieldValue, String classMapId) { String srcClassStr = MappingUtils.getClassNameWithoutPackage(srcClass); String destClassStr = MappingUtils.getClassNameWithoutPackage(destClass); return "MAPPED: " + srcClassStr + "." + srcFieldName + " --> " + destClassStr + "." + destFieldName + " VALUES: " + getLogOutput(srcFieldValue) + " --> " + getLogOutput(destFieldValue) + " MAPID: " + (classMapId != null ? classMapId : ""); }
public static String createFieldMappingSuccessMsg(Class<?> srcClass, Class<?> destClass, String srcFieldName, String destFieldName, Object srcFieldValue, Object destFieldValue, String classMapId) { String srcClassStr = MappingUtils.getClassNameWithoutPackage(srcClass); String destClassStr = MappingUtils.getClassNameWithoutPackage(destClass); return "MAPPED: " + srcClassStr + "." + srcFieldName + " --> " + destClassStr + "." + destFieldName + " VALUES: " + getLogOutput( srcFieldValue) + " --> " + getLogOutput( destFieldValue) + " MAPID: " + (classMapId != null ? classMapId : ""); }
public void writeDestValue(Object runtimeDestObj, Object destFieldValue) { if (log.isDebugEnabled()) { String className = MappingUtils.getClassNameWithoutPackage(runtimeDestObj.getClass()); log.debug("Getting ready to invoke write method on the destination object. Dest Obj: {}, Dest value: {}", className, destFieldValue); } DozerPropertyDescriptor propDescriptor = getDestPropertyDescriptor(runtimeDestObj.getClass()); propDescriptor.setPropertyValue(runtimeDestObj, destFieldValue, this); }
public void writeDestValue(Object runtimeDestObj, Object destFieldValue) { if (log.isDebugEnabled()) { String className = MappingUtils.getClassNameWithoutPackage(runtimeDestObj.getClass()); log.debug("Getting ready to invoke write method on the destination object. Dest Obj: {}, Dest value: {}", className, destFieldValue); } DozerPropertyDescriptor propDescriptor = getDestPropertyDescriptor(runtimeDestObj.getClass()); propDescriptor.setPropertyValue(runtimeDestObj, destFieldValue, this); }
public void writeDestValue(Object runtimeDestObj, Object destFieldValue) { if (log.isDebugEnabled()) { String className = MappingUtils.getClassNameWithoutPackage(runtimeDestObj.getClass()); log.debug("Getting ready to invoke write method on the destination object. Dest Obj: {}, Dest value: {}", className, destFieldValue); } DozerPropertyDescriptor propDescriptor = getDestPropertyDescriptor(BuilderUtil.unwrapDestClassFromBuilder(runtimeDestObj)); propDescriptor.setPropertyValue(runtimeDestObj, destFieldValue, this); }