@Test public void saveAsync() throws InterruptedException { final CountDownLatch latch = new CountDownLatch(1); TestModel m = new TestModel(); m.title = "hej"; m.saveAsync(new Model.OnSavedCallback() { @Override public void onSaved() { latch.countDown(); } }); assertTrue(latch.await(30, TimeUnit.SECONDS)); }
final public void saveAsync() { saveAsync(null); }
Model implements QueryResult { final public void saveAsync() { saveAsync(null); } }
Model implements QueryResult { final public void saveAsync() { saveAsync(null); }  }
Model implements QueryResult { final public void saveAsync() { saveAsync(null); }  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 { final public void saveAsync() { saveAsync(null); }  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);  }