org.springframework.jdbc.core.JdbcTemplate.getSingleColumnRowMapper()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.springframework.jdbc.core.JdbcTemplate.getSingleColumnRowMapper()方法的一些代码示例,展示了JdbcTemplate.getSingleColumnRowMapper()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JdbcTemplate.getSingleColumnRowMapper()方法的具体详情如下:
包路径:org.springframework.jdbc.core.JdbcTemplate
类名称:JdbcTemplate
方法名:getSingleColumnRowMapper

JdbcTemplate.getSingleColumnRowMapper介绍

[英]Create a new RowMapper for reading result objects from a single column.
[中]创建一个新的行映射器,用于从单个列读取结果对象。

代码示例

代码示例来源:origin: spring-projects/spring-framework

@Override
public <T> List<T> queryForList(String sql, Object[] args, Class<T> elementType) throws DataAccessException {
  return query(sql, args, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public <T> List<T> queryForList(String sql, Class<T> elementType) throws DataAccessException {
  return query(sql, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public <T> T queryForObject(String sql, Object[] args, Class<T> requiredType) throws DataAccessException {
  return queryForObject(sql, args, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public <T> List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elementType) throws DataAccessException {
  return query(sql, args, argTypes, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
@Nullable
public <T> T queryForObject(String sql, Class<T> requiredType) throws DataAccessException {
  return queryForObject(sql, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
@Nullable
public <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> requiredType)
    throws DataAccessException {
  return queryForObject(sql, args, argTypes, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public <T> T queryForObject(String sql, Class<T> requiredType, @Nullable Object... args) throws DataAccessException {
  return queryForObject(sql, args, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public <T> List<T> queryForList(String sql, Class<T> elementType, @Nullable Object... args) throws DataAccessException {
  return query(sql, args, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> requiredType)
    throws DataAccessException {
  return queryForObject(sql, args, argTypes, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> List<T> queryForList(String sql, Class<T> elementType) throws DataAccessException {
  return query(sql, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> List<T> queryForList(String sql, Class<T> elementType, Object... args) throws DataAccessException {
  return query(sql, args, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> T queryForObject(String sql, Class<T> requiredType, Object... args) throws DataAccessException {
  return queryForObject(sql, args, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elementType) throws DataAccessException {
  return query(sql, args, argTypes, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> T queryForObject(String sql, Class<T> requiredType) throws DataAccessException {
  return queryForObject(sql, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> T queryForObject(String sql, Object[] args, Class<T> requiredType) throws DataAccessException {
  return queryForObject(sql, args, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: org.springframework/org.springframework.jdbc

public <T> List<T> queryForList(String sql, Object[] args, Class<T> elementType) throws DataAccessException {
  return query(sql, args, getSingleColumnRowMapper(elementType));
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public <T> T queryForObject(String sql, Class<T> requiredType, @Nullable Object... args) throws DataAccessException {
  return queryForObject(sql, args, getSingleColumnRowMapper(requiredType));
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public List<Map<String, Object>> queryForList(String sql, Object[] args, int[] argTypes) throws DataAccessException {
  return query(sql, args, argTypes, getColumnMapRowMapper());
}

代码示例来源:origin: apache/servicemix-bundles

return query(sql, args, argTypes, getSingleColumnRowMapper(elementType));
return query(sql, args, getSingleColumnRowMapper(elementType));

相关文章