@Override public void validate() { if (src == null) { MappingUtils.throwMappingException("src field must be specified"); } if (getDestField() == null) { MappingUtils.throwMappingException("dest field must be specified"); } }
@Override public String getDateFormat() { return FieldMapUtils.getDateFormat(getDestField(), getClassMap()); }
@Override public void validate() { if (src == null) { MappingUtils.throwMappingException("src field must be specified"); } if (getDestField() == null) { MappingUtils.throwMappingException("dest field must be specified"); } }
@Override public String getDateFormat() { return FieldMapUtils.getDateFormat(getDestField(), getClassMap()); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("source field", src).append( "destination field", getDestField()).append("type", getType()).append("customConverter", getCustomConverter()).append("relationshipType", getRelationshipType()).append("removeOrphans", isRemoveOrphans()).append("mapId", getMapId()).append("copyByReference", isCopyByReference()).append( "copyByReferenceOveridden", isCopyByReferenceOveridden()).append("srcTypeHint", getSrcHintContainer()) .append("destTypeHint", getDestHintContainer()).append("mapCondition", getMappingCondition()).append( "mapConditionId", getMappingConditionId()).toString(); }
@Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("source field", src) .append("destination field", getDestField()) .append("type", getType()) .append("customConverter", getCustomConverter()) .append("relationshipType", getRelationshipType()) .append("removeOrphans", isRemoveOrphans()) .append("mapId", getMapId()) .append("copyByReference", isCopyByReference()) .append("copyByReferenceOveridden", isCopyByReferenceOveridden()) .append("srcTypeHint", getSrcHintContainer()) .append("destTypeHint", getDestHintContainer()) .append("mapCondition", getMappingCondition()) .append("mapConditionId", getMappingConditionId()) .toString(); }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrc(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }
@Override public DozerPropertyDescriptor getSrcPropertyDescriptor(Class<?> runtimeSrcClass) { DozerPropertyDescriptor result = getSrcPropertyDescriptorMap().get(runtimeSrcClass); if (result == null) { DozerPropertyDescriptor descriptor = PropertyDescriptorFactory.getPropertyDescriptor(runtimeSrcClass, getClassMap(), getSrc(), getDestField()); getSrcPropertyDescriptorMap().putIfAbsent(runtimeSrcClass, descriptor); result = descriptor; } return result; }