/** * Create a fieldMap for the particular field (same property name used in both types) * * @param a * @return */ public FieldMapBuilder<A, B> fieldMap(String a) { return fieldMap(a, a); }
/** * Create a fieldMap for the particular field (same property name used in both types) * * @param a * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(String a, boolean byDefault) { return fieldMap(a, a, byDefault); }
/** * Create a fieldMap for the particular field (same property name used in * both types) * * @param a * @param byDefault * @return */ public FieldMapBuilder<A, B> fieldMap(String a, boolean byDefault) { return fieldMap(a, a, byDefault); }
/** * Create a fieldMap for the particular field (same property name used in * both types) * * @param a * @return */ public FieldMapBuilder<A, B> fieldMap(String a) { return fieldMap(a, a); }
/** * 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 * @return */ public FieldMapBuilder<A, B> fieldMap(String fieldNameA, String fieldNameB) { return fieldMap(fieldNameA, fieldNameB, false); }
/** * 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 * @return */ public FieldMapBuilder<A, B> fieldMap(String fieldNameA, String fieldNameB) { return fieldMap(fieldNameA, fieldNameB, false); }
/** * * * @param fieldA * @param fieldB * @return */ public ClassMapBuilder<A, B> field(Property fieldA, Property fieldB) { return fieldMap(fieldA, fieldB, false).add(); }
/** * * * @param fieldNameA * @param fieldB * @return */ public ClassMapBuilder<A, B> field(String fieldNameA, Property fieldB) { return fieldMap(fieldNameA, fieldB, false).add(); }
/** * * * @param fieldA * @param fieldB * @return this ClassMapBuilder */ public ClassMapBuilder<A, B> field(Property.Builder fieldA, Property.Builder fieldB) { return fieldMap(fieldA, fieldB, false).add(); }
/** * * * @param fieldA * @param fieldB * @param byDefault * @return */ public ClassMapBuilder<A,B> field(String fieldNameA, Property.Builder fieldB) { return fieldMap(fieldNameA, fieldB, false).add(); }
/** * * * @param fieldNameA * @param fieldB * @return this ClassMapBuilder */ public ClassMapBuilder<A, B> field(String fieldNameA, Property.Builder fieldB) { return fieldMap(fieldNameA, fieldB, false).add(); }
/** * Map a field in both directions * * @param fieldNameA * property name in type A * @param fieldNameB * property name in type B * @return */ public ClassMapBuilder<A, B> field(String fieldNameA, String fieldNameB) { return fieldMap(fieldNameA, fieldNameB).add(); }
/** * Maps 'fieldA' of type A to 'fieldB' of type B. * * @param fieldA * @param fieldNameB * @return this ClassMapBuilder */ public ClassMapBuilder<A, B> field(Property.Builder fieldA, String fieldNameB) { return fieldMap(fieldA, fieldNameB, false).add(); }
/** * * * @param fieldA * @param fieldNameB * @return */ public ClassMapBuilder<A, B> field(Property fieldA, String fieldNameB) { return fieldMap(fieldA, fieldNameB, false).add(); }
/** * Map a field in one direction only (from fieldNameB to fieldNameA) * * @param fieldNameB the (source) fieldName from type B * @param fieldNameA the (destination) fieldName from type A * @return */ public ClassMapBuilder<A, B> fieldBToA(String fieldNameB, String fieldNameA) { return fieldMap(fieldNameA, fieldNameB).bToA().add(); }
/** * Map a field in one direction only (from fieldNameA to fieldNameB) * * @param fieldNameA * the (source) fieldName from type A * @param fieldNameB * the (destination) fieldName from type B * @return */ public ClassMapBuilder<A, B> fieldAToB(String fieldNameA, String fieldNameB) { return fieldMap(fieldNameA, fieldNameB).aToB().add(); }
/** * Map a field in one direction only (from fieldNameB to fieldNameA) * * @param fieldNameB * the (source) fieldName from type B * @param fieldNameA * the (destination) fieldName from type A * @return */ public ClassMapBuilder<A, B> fieldBToA(String fieldNameB, String fieldNameA) { return fieldMap(fieldNameA, fieldNameB).bToA().add(); }
/** * Exclude the specified field from mapping * * @param fieldName the name of the field/property to exclude * @return */ public ClassMapBuilder<A, B> exclude(String fieldName) { return fieldMap(fieldName).exclude().add(); }
public FieldMapBuilder<A, B> fieldMap(String fieldNameA, String fieldNameB, boolean byDefault) { if (isATypeBean() && isNestedPropertyExpression(fieldNameA)) { nestedTypesUsed.add(getParentExpression(fieldNameA)); } else if (!isATypeBean() && isNestedPropertyExpression(fieldNameB)) { nestedTypesUsed.add(getParentExpression(fieldNameB)); } return super.fieldMap(fieldNameA, fieldNameB, byDefault); }
public FieldMapBuilder<A, B> fieldMap(String fieldNameA, String fieldNameB, boolean byDefault) { if (isATypeBean() && isNestedPropertyExpression(fieldNameA)) { nestedTypesUsed.add(getParentExpression(fieldNameA)); } else if (!isATypeBean() && isNestedPropertyExpression(fieldNameB)) { nestedTypesUsed.add(getParentExpression(fieldNameB)); } return super.fieldMap(fieldNameA, fieldNameB, byDefault); }