/** * INTERNAL: * Sets the source foreign key fields. */ public void setSourceForeignKeyFields(List<DatabaseField> fields) { sourceForeignKeyFields = fields; if ((fields != null) && (fields.size() > 0)) { this.setIsForeignKeyRelationship(true); } }
/** * INTERNAL: * Sets the source foreign key fields. */ public void setSourceForeignKeyFields(List<DatabaseField> fields) { sourceForeignKeyFields = fields; if ((fields != null) && (fields.size() > 0)) { this.setIsForeignKeyRelationship(true); } }
/** * INTERNAL: * Sets the source foreign key fields. */ public void setSourceForeignKeyFields(List fields) { sourceForeignKeyFields = fields; if ((fields != null) && (fields.size() > 0)) { this.setIsForeignKeyRelationship(true); } }
/** * INTERNAL: * Set the source keys to target keys fields association. */ public void setSourceForeignKeysToTargetKeys(Map<DatabaseField, DatabaseField> sourceToTargetKeyFields) { this.sourceForeignKeysToTargetKeys = sourceToTargetKeyFields; if ((sourceToTargetKeyFields != null) && (sourceToTargetKeyFields.keySet() != null) && (sourceToTargetKeyFields.keySet().size() > 0)) { this.setIsForeignKeyRelationship(true); } }
/** * INTERNAL: * Set the source keys to target keys fields association. */ public void setSourceForeignKeysToTargetKeys(Map<DatabaseField, DatabaseField> sourceToTargetKeyFields) { this.sourceForeignKeysToTargetKeys = sourceToTargetKeyFields; if ((sourceToTargetKeyFields != null) && (sourceToTargetKeyFields.keySet() != null) && (sourceToTargetKeyFields.keySet().size() > 0)) { this.setIsForeignKeyRelationship(true); } }
/** * INTERNAL: * Set the source keys to target keys fields association. */ public void setSourceForeignKeysToTargetKeys(Map sourceToTargetKeyFields) { this.sourceForeignKeysToTargetKeys = sourceToTargetKeyFields; if ((sourceToTargetKeyFields != null) && (sourceToTargetKeyFields.keySet() != null) && (sourceToTargetKeyFields.keySet().size() > 0)) { this.setIsForeignKeyRelationship(true); } }
/** * PUBLIC: * Define the source foreign key relationship in the one-to-many mapping. * This method is used for composite source foreign key relationships. * That is, the source object's table has multiple foreign key fields * that are references to * the target object's (typically primary) key fields. * Both the source foreign key field name and the corresponding * target primary key field name must be specified. */ @Override public void addForeignKeyField(DatabaseField sourceForeignKeyField, DatabaseField targetKeyField) { this.getSourceForeignKeyFields().add(sourceForeignKeyField); this.getTargetForeignKeyFields().add(targetKeyField); this.setIsForeignKeyRelationship(true); }
/** * PUBLIC: * Define the source foreign key relationship in the one-to-many mapping. * This method is used for composite source foreign key relationships. * That is, the source object's table has multiple foreign key fields * that are references to * the target object's (typically primary) key fields. * Both the source foreign key field name and the corresponding * target primary key field name must be specified. */ public void addForeignKeyField(DatabaseField sourceForeignKeyField, DatabaseField targetKeyField) { this.getSourceForeignKeyFields().add(sourceForeignKeyField); this.getTargetForeignKeyFields().add(targetKeyField); this.setIsForeignKeyRelationship(true); }
/** * PUBLIC: * Define the source foreign key relationship in the one-to-many mapping. * This method is used for composite source foreign key relationships. * That is, the source object's table has multiple foreign key fields * that are references to * the target object's (typically primary) key fields. * Both the source foreign key field name and the corresponding * target primary key field name must be specified. */ @Override public void addForeignKeyField(DatabaseField sourceForeignKeyField, DatabaseField targetKeyField) { this.getSourceForeignKeyFields().add(sourceForeignKeyField); this.getTargetForeignKeyFields().add(targetKeyField); this.setIsForeignKeyRelationship(true); }