Package de.mhus.lib.adb

Examples of de.mhus.lib.adb.DbManager.executeQuery()


      assertNull(b);
     
      // test selection
     
      System.out.println("----------------------");
      DbCollection<Person> col = manager.executeQuery(new Person(), "select * from $db.Person$"null);
      int count = 0;
      for (Person pp : col) {
        System.out.println("--- " + pp.getId() + " " + pp.getName());
        count++;
      }
View Full Code Here


      DbConnection con = manager.getPool().getConnection();
      con.createStatement("DELETE FROM $db.Person$", null ).execute(manager.getNameMapping());
      con.commit();
     
      System.out.println("----------------------");
      col = manager.executeQuery(new Person(), "select * from $db.Person$"null);
      count = 0;
      for (Person pp : col) {
        System.out.println("--- " + pp.getId() + " " + pp.getName());
        count++;
      }
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.