本文整理了Java中org.springframework.jdbc.core.JdbcTemplate.newArgPreparedStatementSetter()
方法的一些代码示例,展示了JdbcTemplate.newArgPreparedStatementSetter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JdbcTemplate.newArgPreparedStatementSetter()
方法的具体详情如下:
包路径:org.springframework.jdbc.core.JdbcTemplate
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!