fieldsList.add( String.format( "%s:%s/%s", referenceTo, f.getName(), field.getRelationshipName() ) );
public String getForceApiRelationshipName() { return field != null ? field.getRelationshipName() : fieldName; }
public String getForceApiRelationshipName() { return field != null ? field.getRelationshipName() : fieldName; }
/** * Determines if a Java name should be constructed from the given * Force.com API {@code Field} object's relationship name. * * @param field the Force.com API {@code Field} object to test * @return {@code true} if and only if the given {@code Field} * object is a reference field and has a non {@code null} relationship * name and only references exactly one other Force.com object */ public static boolean useRelationshipName(Field field) { return field.getType() == FieldType.reference && field.getRelationshipName() != null // With more than one reference, we'll revert back to the field name (and String type) && field.getReferenceTo().length == 1; }
/** * Constructs a valid Java name from a Force.com API {@code Field} object name. * * @param field a Force.com API {@code Field} object whose name is to * to converted to a Java name * @param firstCharLowerCase indicates if the first character in the constructed Java * name should be lower case * @return a non {@code null} {@code String} which conforms * to Java naming standards */ public static String renderJavaName(Field field, boolean firstCharLowerCase) { if (useRelationshipName(field)) { return renderJavaName(field.getRelationshipName(), "Field", firstCharLowerCase); } return renderJavaName(field.getName(), "Field", firstCharLowerCase); }
|| (type == FieldType.reference && field.getRelationshipName() != null)) { builder.add(Column.class, Collections.<String, String>singletonMap("name", "\"" + name + "\""));
if (getRelationshipName() != null) { _hashCode += getRelationshipName().hashCode();
if (field.getReferenceTo() != null && field.getReferenceTo().length > 0 && field.getRelationshipName() != null) { avroField.addProp(SalesforceSchemaConstants.REF_MODULE_NAME, field.getReferenceTo()[0]); avroField.addProp(SalesforceSchemaConstants.REF_FIELD_NAME, field.getRelationshipName());
if (field.getReferenceTo() != null && field.getReferenceTo().length > 0 && field.getRelationshipName() != null) { avroField.addProp(SalesforceSchemaConstants.REF_MODULE_NAME, field.getReferenceTo()[0]); avroField.addProp(SalesforceSchemaConstants.REF_FIELD_NAME, field.getRelationshipName());
if (field.getReferenceTo() != null && field.getReferenceTo().length > 0 && field.getRelationshipName() != null) { avroField.addProp(SalesforceSchemaConstants.REF_MODULE_NAME, field.getReferenceTo()[0]); avroField.addProp(SalesforceSchemaConstants.REF_FIELD_NAME, field.getRelationshipName());
if (field.getReferenceTo() != null && field.getReferenceTo().length > 0 && field.getRelationshipName() != null) { avroField.addProp(SalesforceSchemaConstants.REF_MODULE_NAME, field.getReferenceTo()[0]); avroField.addProp(SalesforceSchemaConstants.REF_FIELD_NAME, field.getRelationshipName());
if (field.getReferenceTo() != null && field.getReferenceTo().length > 0 && field.getRelationshipName() != null) { avroField.addProp(SalesforceSchemaConstants.REF_MODULE_NAME, field.getReferenceTo()[0]); avroField.addProp(SalesforceSchemaConstants.REF_FIELD_NAME, field.getRelationshipName());
(this.referenceTo != null && java.util.Arrays.equals(this.referenceTo, other.getReferenceTo()))) && ((this.relationshipName == null && other.getRelationshipName() == null) || (this.relationshipName != null && this.relationshipName.equals(other.getRelationshipName()))) && ((this.relationshipOrder == null && other.getRelationshipOrder() == null) || (this.relationshipOrder != null &&