134135136137138139140
return models.get(modelType); } private FieldMetadata toFieldMetadata(Field field) { Converter<?> converter = converters.getConverter(field.getType()); return new FieldMetadata(field, converter); }
2829303132333435
public static String keyValue(FieldMetadata fieldMetadata, Object o) { return valueStr(fieldMetadata, o); } public static String keyValue(ModelMetadata model, Object o) { FieldMetadata keyField = model.getKeyField(); return valueStr(keyField, o); }