if(Integer.class.isAssignableFrom(type))
return new NumberDataType(false);
else
return new NumberDataType();
} else if (Date.class.isAssignableFrom(type)) {
return new DateDataType("dd.MM.yyyy");
} else if(Boolean.class.isAssignableFrom(type)) {
return new BooleanDataType();
}
throw new RuntimeException("Field '" + field.getName() + "' has no recodnized datatype: '" + field.getType().getSimpleName() + "'");