public class ArgumentTypePreparedStatementSetter extends Object implements org.springframework.jdbc.core.PreparedStatementSetter, org.springframework.jdbc.core.ParameterDisposer, PagedPreparedParameterSetter
PreparedStatementSetter that applies
given arrays of arguments and JDBC argument types.| 限定符和类型 | 类和说明 |
|---|---|
static class |
ArgumentTypePreparedStatementSetter.Factory |
| 构造器和说明 |
|---|
ArgumentTypePreparedStatementSetter(Object[] args,
int[] argTypes)
Create a new ArgTypePreparedStatementSetter for the given arguments.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanupParameters() |
protected void |
doSetValue(PreparedStatement ps,
int parameterPosition,
int argType,
Object argValue)
Set the value for the prepared statement's specified parameter position using the passed in
value and type.
|
int |
setAfterSubqueryParameters(PreparedStatement ps,
QueryParameters queryParameters,
int startIndex) |
int |
setBeforeSubqueryParameters(PreparedStatement ps,
QueryParameters queryParameters,
int startIndex) |
int |
setOriginalParameters(PreparedStatement ps,
QueryParameters queryParameters,
int startIndex) |
int |
setSubqueryParameters(PreparedStatement ps,
QueryParameters queryParameters,
int startIndex) |
void |
setValues(PreparedStatement ps) |
public ArgumentTypePreparedStatementSetter(@Nullable
Object[] args,
@Nullable
int[] argTypes)
args - the arguments to setargTypes - the corresponding SQL types of the argumentspublic int setBeforeSubqueryParameters(PreparedStatement ps, QueryParameters queryParameters, int startIndex) throws SQLException
public int setSubqueryParameters(PreparedStatement ps, QueryParameters queryParameters, int startIndex) throws SQLException
setSubqueryParameters 在接口中 PagedPreparedParameterSetterSQLExceptionpublic int setAfterSubqueryParameters(PreparedStatement ps, QueryParameters queryParameters, int startIndex) throws SQLException
public int setOriginalParameters(PreparedStatement ps, 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, int argType, Object argValue) throws SQLException
ps - the PreparedStatementparameterPosition - index of the parameter positionargType - the argument typeargValue - the argument valueSQLException - if thrown by PreparedStatement methodspublic void cleanupParameters()
cleanupParameters 在接口中 org.springframework.jdbc.core.ParameterDisposerCopyright © 2020. All rights reserved.