Package hendrey.orm

Examples of hendrey.orm.RecordSet


    }
  }

  public List<String> getUniqueLastNames() {
    Query q = dict.getQuery("selectDistinctLastnameOnly");
    RecordSet rs;
    Connection con = null;
    try {
      rs = dbSess.executeQuery(con = dataSource.getConnection(), q);
      List<String> lastnames = new ArrayList<String>();
      Contact c = new Contact();
      while (rs.next()) {
        rs.populate(c);
        lastnames.add(c.getLastname());
      }
      return lastnames;
    } catch (SQLException ex) {
      throw new RuntimeException(ex);
View Full Code Here


  }

  public List<String> getUniqueLastNames()
  {
    Query q = dict.getQuery("selectDistinctLastnameOnly");
    RecordSet rs;
    Connection con = null;
    try
    {
      rs = dbSess.executeQuery(con = dataSource.getConnection(), q);
      List<String> lastnames = new ArrayList<String>();
      Contact c = new Contact();
      while (rs.next())
      {
        rs.populate(c);
        lastnames.add(c.getLastname());
      }
      return lastnames;
    }
    catch (SQLException ex)
View Full Code Here

TOP

Related Classes of hendrey.orm.RecordSet

Copyright © 2018 www.massapicom. 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.