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

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

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

JdbcTemplate.newArgPreparedStatementSetter介绍

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

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

代码示例

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

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

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

@Override
public int update(String sql, @Nullable Object... args) throws DataAccessException {
  return update(sql, newArgPreparedStatementSetter(args));
}

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

@Override
public void query(String sql, RowCallbackHandler rch, @Nullable Object... args) throws DataAccessException {
  query(sql, newArgPreparedStatementSetter(args), rch);
}

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

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

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

@Override
@Nullable
public <T> T query(String sql, ResultSetExtractor<T> rse, @Nullable Object... args) throws DataAccessException {
  return query(sql, newArgPreparedStatementSetter(args), rse);
}

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

public int update(String sql, Object... args) throws DataAccessException {
  return update(sql, newArgPreparedStatementSetter(args));
}

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

public <T> T query(String sql, ResultSetExtractor<T> rse, Object... args) throws DataAccessException {
  return query(sql, newArgPreparedStatementSetter(args), rse);
}

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

public void query(String sql, RowCallbackHandler rch, Object... args) throws DataAccessException {
  query(sql, newArgPreparedStatementSetter(args), rch);
}

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

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

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

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

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

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

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

@Override
public void query(String sql, RowCallbackHandler rch, @Nullable Object... args) throws DataAccessException {
  query(sql, newArgPreparedStatementSetter(args), rch);
}

相关文章