Examples of DaoObserver


Examples of com.j256.ormlite.dao.Dao.DaoObserver

  @Test
  public void testDaoObserver() throws Exception {
    Dao<Foo, Integer> dao = createDao(Foo.class, true);

    final AtomicInteger changeCount = new AtomicInteger();
    DaoObserver obverver = new DaoObserver() {
      public void onChange() {
        changeCount.incrementAndGet();
      }
    };
    dao.registerObserver(obverver);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.