Package jodd.db.oom.mapper

Examples of jodd.db.oom.mapper.ResultSetMapper


   */
  @SuppressWarnings({"unchecked"})
  protected <T> List<T> list(Class[] types, int max, boolean close) {
    List<T> result = new ArrayList<T>(initialCollectionSize(max));

    ResultSetMapper rsm = executeAndBuildResultSetMapper();
    if (types == null) {
      types = rsm.resolveTables();
    }

    Object previousElement = null;

    while (rsm.next()) {
      Object[] objects = rsm.parseObjects(types);
      Object row = resolveRowResults(objects);

      int size = result.size();

      T newElement = (T) row;
View Full Code Here


  }
  @SuppressWarnings({"unchecked"})
  protected <T> Set<T> listSet(Class[] types, int max, boolean close) {
    Set<T> result = new LinkedHashSet<T>(initialCollectionSize(max));

    ResultSetMapper rsm = executeAndBuildResultSetMapper();
    if (types == null) {
      types = rsm.resolveTables();
    }

    Object previousElement = null;

    while (rsm.next()) {
      Object[] objects = rsm.parseObjects(types);
      Object row = resolveRowResults(objects);

      int size = result.size();

      T newElement = (T) row;
View Full Code Here

  }
  protected <T> T find(Class[] types, boolean close, ResultSet resultSet) {
    if (resultSet == null) {
      resultSet = execute();
    }
    ResultSetMapper rsm = createResultSetMapper(resultSet);

    Iterator<T> iterator = new DbListIterator<T>(this, types, rsm, false);

    T result = null;
View Full Code Here

TOP

Related Classes of jodd.db.oom.mapper.ResultSetMapper

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.