use of com.orm.androrm.field.AndrormField in project androrm by androrm.
the class Model method resetFields.
private <T extends Model> boolean resetFields() {
List<Field> fields = DatabaseBuilder.getFields(getClass(), this);
try {
for (Field field : fields) {
Object o = field.get(this);
if (o instanceof AndrormField) {
AndrormField f = (AndrormField) o;
f.reset();
}
}
return true;
} catch (IllegalAccessException e) {
return false;
}
}
Aggregations