(T instance, String fieldName)
| 207 | } |
| 208 | |
| 209 | private static final <T extends Model> void raiseFieldExecption(T instance, String fieldName) { |
| 210 | throw new NoSuchFieldException("No field named " |
| 211 | + fieldName |
| 212 | + " was found in class " |
| 213 | + instance.getClass().getSimpleName() |
| 214 | +"! Choices are: " |
| 215 | + getEligableFields(instance.getClass(), instance).toString()); |
| 216 | } |
| 217 | |
| 218 | protected static final void runMigrations(Context context, List<Class<? extends Model>> models) { |
| 219 | DatabaseAdapter adapter = DatabaseAdapter.getInstance(context); |
no test coverage detected