private FieldMap toFieldMap() { return new FieldMap(aProperty, bProperty, aInverseProperty, bInverseProperty, mappingDirection, excluded, converterId, byDefault, sourceMappedOnNull, destinationMappedOnNull); }
private FieldMap toFieldMap() { return new FieldMap(aProperty, bProperty, aInverseProperty, bInverseProperty, mappingDirection, excluded, converterId, byDefault, sourceMappedOnNull, destinationMappedOnNull); }
public FieldMap flip() { return new FieldMap(destination, source, bInverse, aInverse, mappingDirection.flip(), excluded, converterId, byDefault, destinationMappedOnNull, sourceMappedOnNull); }
public FieldMap flip() { return new FieldMap(destination, source, bInverse, aInverse, mappingDirection.flip(), excluded, converterId, byDefault, destinationMappedOnNull, sourceMappedOnNull); }
public FieldMap copy() { return new FieldMap(copy(source), copy(destination), copy(aInverse), copy(bInverse), mappingDirection, excluded, converterId, byDefault, sourceMappedOnNull, destinationMappedOnNull); }
public FieldMap copy() { return new FieldMap(copy(source), copy(destination), copy(aInverse), copy(bInverse), mappingDirection, excluded, converterId, byDefault, sourceMappedOnNull, destinationMappedOnNull); }
/** * Creates a FieldMap for the Map keys from A to B * * @param aType * @param bType * @return a reference to this FieldMapBuilder */ public static FieldMap mapKeys(final Type<?> aType, final Type<?> bType) { Property aProperty = new Property.Builder().name("key").getter("getKey()").setter("setKey(%s)").type(aType).build(null); Property bProperty = aProperty.copy(bType); return new FieldMap(aProperty, bProperty, null, null, MappingDirection.A_TO_B, false, null, false, null, null); }
public static FieldMap mapKeys(Type<?> aType, Type<?> bType) { Property aProperty = new Property.Builder().name("key").getter("getKey()").setter("setKey(%s)").type(aType).build(null); Property bProperty = aProperty.copy(bType); return new FieldMap(aProperty, bProperty, null, null, MappingDirection.A_TO_B, false, null, false, null, null); }
public static FieldMap mapValues(Type<?> aType, Type<?> bType) { Property aProperty = new Property.Builder().name("value").getter("getValue()").setter("setValue(%s)").type(aType).build(null); Property bProperty = aProperty.copy(bType); return new FieldMap(aProperty, bProperty, null, null, MappingDirection.A_TO_B, false, null, false, null, null); } }
/** * Creates a FieldMap for the Map values from A to B * * @param aType * @param bType * @return a reference to this FieldMapBuilder */ public static FieldMap mapValues(final Type<?> aType, final Type<?> bType) { Property aProperty = new Property.Builder().name("value").getter("getValue()").setter("setValue(%s)").type(aType).build(null); Property bProperty = aProperty.copy(bType); return new FieldMap(aProperty, bProperty, null, null, MappingDirection.A_TO_B, false, null, false, null, null); } }
private FieldMap mapConstructorArgument(FieldMap existing, Type<?> argumentType, boolean byDefault) { Property destProp = new Property.Builder() .name(existing.getDestination().getName()) .getter(existing.getDestination().getName()) .type(argumentType) .build(); FieldMap fieldMap = new FieldMap(existing.getSource(), destProp, null, null, MappingDirection.A_TO_B, false, existing.getConverterId(), byDefault, null, null); return fieldMap; } }
private FieldMap mapConstructorArgument(FieldMap existing, Type<?> argumentType, boolean byDefault) { final Property destProp = new Property.Builder() .name(existing.getDestination().getName()) .getter(existing.getDestination().getName()) .type(argumentType) .build(); return new FieldMap(existing.getSource(), destProp, null, null, MappingDirection.A_TO_B, false, existing.getConverterId(), byDefault, null, null); } }