Package br.net.woodstock.rockframework.core.jdbc.impl

Examples of br.net.woodstock.rockframework.core.jdbc.impl.CommonCallableClient.executeQuery()


  @Override
  public <T> T getSingle(final JDBCFilter filter, final JDBCMapper<T> mapper) {
    try {
      Client client = new CommonCallableClient(this.getConnection());
      ResultSet rs = client.executeQuery(filter.getFilter(), this.toParameterList(filter.getParameters()));
      if (rs.next()) {
        return mapper.map(rs);
      }
      return null;
    } catch (SQLException e) {
View Full Code Here


  @Override
  public <T> Collection<T> getCollection(final JDBCFilter filter, final JDBCMapper<T> mapper) {
    try {
      Client client = new CommonCallableClient(this.getConnection());
      ResultSet rs = client.executeQuery(filter.getFilter(), this.toParameterList(filter.getParameters()));
      List<T> list = new LinkedList<T>();
      while (rs.next()) {
        list.add(mapper.map(rs));
      }
      return list;
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.