Package com.ibatis.sqlmap.client

Examples of com.ibatis.sqlmap.client.SqlMapClient.queryForList()


            // must be a poll so lets do a query
            Message msg = exchange.getOut(true);
            if (LOG.isTraceEnabled()) {
                LOG.trace("Querying for list: " + statement);
            }
            List list = client.queryForList(statement);
            msg.setBody(list);
            msg.setHeader(IBatisConstants.IBATIS_STATEMENT_NAME, statement);
        } else {
            // lets handle arrays or collections of objects
            Iterator iter = ObjectHelper.createIterator(body);
View Full Code Here


  public Feed retrieveFeed(RequestContext request) throws FeedServerAdapterException {
    SqlMapClient client = getSqlMapClient();
    String queryId = config.getFeedId() + "-get-feed";
    List<Map<String, Object>> rows;
    try {
      rows = client.queryForList(queryId, getRequestParams(request));
    } catch (SQLException e) {
      throw new FeedServerAdapterException(
          FeedServerAdapterException.Reason.ERROR_EXECUTING_ADAPTER_REQUEST, e.getMessage());
    }
    Feed feed = createFeed();
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.