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

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

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

JdbcTemplate.newArgTypePreparedStatementSetter介绍

[英]Create a new arg-type-based PreparedStatementSetter using the args and types passed in.

By default, we'll create an ArgumentTypePreparedStatementSetter. This method allows for the creation to be overridden by subclasses.
[中]使用传入的参数和类型创建新的基于参数类型的PreparedStatementSetter。
默认情况下,我们将创建ArgumentTypePreparedStatementSetter。此方法允许子类重写创建。

代码示例

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

@Override
public int update(String sql, Object[] args, int[] argTypes) throws DataAccessException {
  return update(sql, newArgTypePreparedStatementSetter(args, argTypes));
}

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

@Override
public void query(String sql, Object[] args, int[] argTypes, RowCallbackHandler rch) throws DataAccessException {
  query(sql, newArgTypePreparedStatementSetter(args, argTypes), rch);
}

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

@Override
@Nullable
public <T> T query(String sql, Object[] args, int[] argTypes, ResultSetExtractor<T> rse) throws DataAccessException {
  return query(sql, newArgTypePreparedStatementSetter(args, argTypes), rse);
}

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

public void query(String sql, Object[] args, int[] argTypes, RowCallbackHandler rch) throws DataAccessException {
  query(sql, newArgTypePreparedStatementSetter(args, argTypes), rch);
}

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

public <T> T query(String sql, Object[] args, int[] argTypes, ResultSetExtractor<T> rse) throws DataAccessException {
  return query(sql, newArgTypePreparedStatementSetter(args, argTypes), rse);
}

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

@Override
public void query(String sql, Object[] args, int[] argTypes, RowCallbackHandler rch) throws DataAccessException {
  query(sql, newArgTypePreparedStatementSetter(args, argTypes), rch);
}

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

public int update(String sql, Object[] args, int[] argTypes) throws DataAccessException {
  return update(sql, newArgTypePreparedStatementSetter(args, argTypes));
}

相关文章