Package org.apache.ibatis.executor.result

Examples of org.apache.ibatis.executor.result.DefaultMapResultHandler


    return selectMap(statement, parameter, mapKey, RowBounds.DEFAULT);
  }

  public Map selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) {
    final List list = selectList(statement, parameter, rowBounds);
    final DefaultMapResultHandler mapResultHandler = new DefaultMapResultHandler(mapKey);
    final DefaultResultContext context = new DefaultResultContext();
    for (Object o : list) {
      context.nextResultObject(o);
      mapResultHandler.handleResult(context);
    }
    return mapResultHandler.getMappedResults();
  }
View Full Code Here

TOP

Related Classes of org.apache.ibatis.executor.result.DefaultMapResultHandler

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.