/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(Property fieldA, Property fieldB, boolean byDefault) { return new FieldMapBuilder<A, B>(this, fieldA, fieldB, byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A,B> fieldMap(Property fieldA, Property fieldB, boolean byDefault) { return new FieldMapBuilder<A,B>(this, fieldA, fieldB, byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A,B> fieldMap(String fieldNameA, Property fieldB, boolean byDefault) { return new FieldMapBuilder<A,B>(this, resolvePropertyForA(fieldNameA), fieldB, byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldNameB * @param byDefault * @return */ public FieldMapBuilder<A,B> fieldMap(Property fieldA, String fieldNameB, boolean byDefault) { return new FieldMapBuilder<A,B>(this, fieldA, resolvePropertyForB(fieldNameB), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldNameA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(String fieldNameA, Property fieldB, boolean byDefault) { return new FieldMapBuilder<A, B>(this, resolvePropertyForA(fieldNameA), fieldB, byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldNameB * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(Property fieldA, String fieldNameB, boolean byDefault) { return new FieldMapBuilder<A, B>(this, fieldA, resolvePropertyForB(fieldNameB), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldNameB * @param byDefault * @return */ public FieldMapBuilder<A,B> fieldMap(Property.Builder fieldA, String fieldNameB, boolean byDefault) { return new FieldMapBuilder<A,B>(this, fieldA.build((PropertyResolver)propertyResolver), resolvePropertyForB(fieldNameB), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A,B> fieldMap(Property.Builder fieldA, Property.Builder fieldB, boolean byDefault) { return new FieldMapBuilder<A,B>(this, fieldA.build((PropertyResolver)propertyResolver), fieldB.build((PropertyResolver)propertyResolver), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(Property.Builder fieldA, Property.Builder fieldB, boolean byDefault) { return new FieldMapBuilder<A, B>(this, fieldA.build((PropertyResolver) propertyResolver), fieldB.build((PropertyResolver) propertyResolver), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldNameB * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(Property.Builder fieldA, String fieldNameB, boolean byDefault) { return new FieldMapBuilder<A, B>(this, fieldA.build((PropertyResolver) propertyResolver), resolvePropertyForB(fieldNameB), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A,B> fieldMap(String fieldNameA, Property.Builder fieldB, boolean byDefault) { return new FieldMapBuilder<A,B>(this, resolvePropertyForA(fieldNameA), fieldB.build((PropertyResolver)propertyResolver), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * * * @param fieldNameA * @param fieldB * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(String fieldNameA, Property.Builder fieldB, boolean byDefault) { return new FieldMapBuilder<A, B>(this, resolvePropertyForA(fieldNameA), fieldB.build((PropertyResolver) propertyResolver), byDefault, sourcesMappedOnNull, destinationsMappedOnNull); }
/** * Create a fieldMap for the particular field mapping * * @param fieldNameA the name of the field in type A * @param fieldNameB the name of the field in type B * @param byDefault whether the field mapping has been provided by default * @return */ public FieldMapBuilder<A, B> fieldMap(String fieldNameA, String fieldNameB, boolean byDefault) { try { final FieldMapBuilder<A, B> fieldMapBuilder = new FieldMapBuilder<A, B>(this, fieldNameA, fieldNameB, byDefault, sourcesMappedOnNull, destinationsMappedOnNull); return fieldMapBuilder; } catch (MappingException e) { /* * Add more information to the message to help with debugging */ String msg = getClass().getSimpleName() + ".map(" + aType + ", " + bType + ")" + ".field('" + fieldNameA + "', '" + fieldNameB + "'): Error: " + e.getLocalizedMessage(); throw new MappingException(msg, e); } }
/** * Create a fieldMap for the particular field mapping * * @param fieldNameA * the name of the field in type A * @param fieldNameB * the name of the field in type B * @param byDefault * whether the field mapping has been provided by default * @return */ public FieldMapBuilder<A, B> fieldMap(String fieldNameA, String fieldNameB, boolean byDefault) { try { final FieldMapBuilder<A, B> fieldMapBuilder = new FieldMapBuilder<A, B>(this, fieldNameA, fieldNameB, byDefault, sourcesMappedOnNull, destinationsMappedOnNull); return fieldMapBuilder; } catch (MappingException e) { /* * Add more information to the message to help with debugging */ String msg = getClass().getSimpleName() + ".map(" + aType + ", " + bType + ")" + ".field('" + fieldNameA + "', '" + fieldNameB + "'): Error: " + e.getLocalizedMessage(); throw new MappingException(msg, e); } }