public MultiModelField getMultiModelField(Field field) {
return modelFields.get(field.getFieldName());
}
public MultiModelField addField(Field field) {
MultiModelField multiModelField = null;
if (field instanceof FunctionField) {
multiModelField = new FunctionMultiField(this, (FunctionField) field);
} else {
multiModelField = new MultiModelField(this, field);
}
fields.put(multiModelField.getName(), multiModelField);
modelFields.put(field.getFieldName(), multiModelField);
if (field.isPrimaryKey()) {
primaryKey = multiModelField;
}
return multiModelField;