return "[[UNHANDLED FIELD TYPE: " + type + "]]";
}
}
private String getContentValuesCursorGetterMethod(SchemaField field, String paramValue, JavaVariable newVariable) {
if (field.isEnumeration()) {
<BUG>return newVariable.getDataType() + ".values()[cursor.getInt(cursor.getColumnIndexOrThrow(" + paramValue + "))]";
}</BUG>
Class<?> type = field.getJavaClassType();
if (type == int.class) {
return "cursor.getInt(cursor.getColumnIndexOrThrow(" + paramValue + "))";

return "[[UNHANDLED FIELD TYPE: " + type + "]]";
}
}
private String getContentValuesCursorGetterMethod(SchemaField field, String paramValue, JavaVariable newVariable) {
if (field.isEnumeration()) {
return "org.dbtools.android.domain.util.EnumUtil.ordinalToEnum(" + newVariable.getDataType() + ".class, cursor.getInt(cursor.getColumnIndexOrThrow(" + paramValue + ")), " + newVariable.getDefaultValue() + ")";
}
Class<?> type = field.getJavaClassType();
if (type == int.class) {
return "cursor.getInt(cursor.getColumnIndexOrThrow(" + paramValue + "))";
