public class ArgumentPreparedStatementSetter extends Object implements org.springframework.jdbc.core.PreparedStatementSetter, org.springframework.jdbc.core.ParameterDisposer, PagedPreparedParameterSetter
PreparedStatementSetter that applies a given array of arguments.| 限定符和类型 | 类和说明 |
|---|---|
static class |
ArgumentPreparedStatementSetter.Factory |
| 构造器和说明 |
|---|
ArgumentPreparedStatementSetter(Object[] args)
Create a new ArgPreparedStatementSetter for the given arguments.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanupParameters() |
protected void |
doSetValue(PreparedStatement ps,
int parameterPosition,
Object argValue)
Set the value for prepared statements specified parameter index using the passed in value.
|
int |
setAfterSubqueryParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex) |
int |
setBeforeSubqueryParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex) |
int |
setOriginalParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex) |
int |
setSubqueryParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex) |
void |
setValues(PreparedStatement ps) |
public ArgumentPreparedStatementSetter(@Nullable
Object[] args)
args - the arguments to setpublic int setBeforeSubqueryParameters(PreparedStatement statement, QueryParameters queryParameters, int startIndex) throws SQLException
public int setSubqueryParameters(PreparedStatement statement, QueryParameters queryParameters, int startIndex) throws SQLException
setSubqueryParameters 在接口中 PagedPreparedParameterSetterSQLExceptionpublic int setAfterSubqueryParameters(PreparedStatement statement, QueryParameters queryParameters, int startIndex) throws SQLException
public int setOriginalParameters(PreparedStatement statement, QueryParameters queryParameters, int startIndex) throws SQLException
setOriginalParameters 在接口中 PagedPreparedParameterSetterSQLExceptionpublic void setValues(PreparedStatement ps) throws SQLException
setValues 在接口中 org.springframework.jdbc.core.PreparedStatementSetterSQLExceptionprotected void doSetValue(PreparedStatement ps, int parameterPosition, Object argValue) throws SQLException
ps - the PreparedStatementparameterPosition - index of the parameter positionargValue - the value to setSQLException - if thrown by PreparedStatement methodspublic void cleanupParameters()
cleanupParameters 在接口中 org.springframework.jdbc.core.ParameterDisposerCopyright © 2021. All rights reserved.