@Test public void beforeCreate() { TestModel m = new TestModel(); m.title = "hej"; m.save(); ContentValues contentValues = Utils.getContentValues(m); assertEquals(2, contentValues.size()); assertNotNull(contentValues.get("created_at")); assertTrue(m.created); m.created = false; m.title = "tjena"; m.save(); assertFalse(m.created); }
protected void beforeCreate() { }
Model implements QueryResult { protected void beforeCreate() { } }
Model implements QueryResult { protected void beforeCreate() { }  }
Model implements QueryResult { protected void beforeCreate() { }  boolean isValid(); final boolean exists(); final boolean save(); final boolean save(Transaction t); final void saveAsync(); final void saveAsync(final OnSavedCallback callback); final void delete(); final void delete(Transaction t); final void deleteAsync(); final void deleteAsync(final OnDeletedCallback callback); }
Model implements QueryResult { protected void beforeCreate() { }  boolean isValid(); final boolean exists(); final boolean save(); final boolean save(Transaction t); final void saveAsync(); final void saveAsync(final OnSavedCallback callback); final void delete(); final void delete(Transaction t); final void deleteAsync(); final void deleteAsync(final OnDeletedCallback callback);  }