Package org.springframework.jdbc.core

Examples of org.springframework.jdbc.core.ColumnMapRowMapper


  }

  @Override
  public SqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta) {
    if (meta.getSqlType() == Types.OTHER && REF_CURSOR_NAME.equals(meta.getTypeName())) {
      return new SqlOutParameter(parameterName, getRefCursorSqlType(), new ColumnMapRowMapper());
    }
    else {
      return super.createDefaultOutParameter(parameterName, meta);
    }
  }
View Full Code Here


  }

  @Override
  public SqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta) {
    if (meta.getSqlType() == Types.OTHER && "refcursor".equals(meta.getTypeName())) {
      return new SqlOutParameter(parameterName, getRefCursorSqlType(), new ColumnMapRowMapper());
    }
    else {
      return super.createDefaultOutParameter(parameterName, meta);
    }
  }
View Full Code Here

  public Object queryForObject(String sql, Map paramMap, Class requiredType) throws DataAccessException {
    return queryForObject(sql, paramMap, new SingleColumnRowMapper(requiredType));
  }

  public Map queryForMap(String sql, SqlParameterSource paramSource) throws DataAccessException {
    return (Map) queryForObject(sql, paramSource, new ColumnMapRowMapper());
  }
View Full Code Here

  public Map queryForMap(String sql, SqlParameterSource paramSource) throws DataAccessException {
    return (Map) queryForObject(sql, paramSource, new ColumnMapRowMapper());
  }

  public Map queryForMap(String sql, Map paramMap) throws DataAccessException {
    return (Map) queryForObject(sql, paramMap, new ColumnMapRowMapper());
  }
View Full Code Here

  public List queryForList(String sql, Map paramMap, Class elementType) throws DataAccessException {
    return queryForList(sql, new MapSqlParameterSource(paramMap), elementType);
  }

  public List queryForList(String sql, SqlParameterSource paramSource) throws DataAccessException {
    return query(sql, paramSource, new ColumnMapRowMapper());
  }
View Full Code Here

  }

  @Override
  public SqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta) {
    if (meta.getSqlType() == Types.OTHER && REF_CURSOR_NAME.equals(meta.getTypeName())) {
      return new SqlOutParameter(parameterName, getRefCursorSqlType(), new ColumnMapRowMapper());
    }
    else {
      return super.createDefaultOutParameter(parameterName, meta);
    }
  }
View Full Code Here

  public Map queryForMap(String sql, SqlParameterSource paramSource) throws DataAccessException {
    return (Map) queryForObject(sql, paramSource, new ColumnMapRowMapper());
  }

  public Map queryForMap(String sql, Map paramMap) throws DataAccessException {
    return (Map) queryForObject(sql, paramMap, new ColumnMapRowMapper());
  }
View Full Code Here

  public List queryForList(String sql, Map paramMap, Class elementType) throws DataAccessException {
    return queryForList(sql, new MapSqlParameterSource(paramMap), elementType);
  }

  public List queryForList(String sql, SqlParameterSource paramSource) throws DataAccessException {
    return query(sql, paramSource, new ColumnMapRowMapper());
  }
View Full Code Here

  public Object queryForObject(String sql, Map paramMap, Class requiredType) throws DataAccessException {
    return queryForObject(sql, paramMap, new SingleColumnRowMapper(requiredType));
  }

  public Map queryForMap(String sql, SqlParameterSource paramSource) throws DataAccessException {
    return (Map) queryForObject(sql, paramSource, new ColumnMapRowMapper());
  }
View Full Code Here

                }
               
                boolean isResultSet = ps.execute();
               
                if (isResultSet) {
                    RowMapperResultSetExtractor mapper = new RowMapperResultSetExtractor(new ColumnMapRowMapper());
                    List<?> result = (List<?>) mapper.extractData(ps.getResultSet());
                    exchange.getOut().setBody(result);
                    exchange.getIn().setHeader(SqlConstants.SQL_ROW_COUNT, result.size());
                    // preserve headers
                    exchange.getOut().setHeaders(exchange.getIn().getHeaders());
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.core.ColumnMapRowMapper

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.