public class NamedParameterPreparedStatementCreator extends Object implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.PreparedStatementSetter, org.springframework.jdbc.core.SqlProvider, org.springframework.jdbc.core.ParameterDisposer
| 构造器和说明 |
|---|
NamedParameterPreparedStatementCreator(String actualSql,
List<?> parameters,
NamedParameterPreparedStatementCreatorFactory factory) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanupParameters() |
PreparedStatement |
createPreparedStatement(Connection con) |
NamedParameterPreparedStatementCreatorFactory |
getFactory() |
List |
getParameters() |
String |
getSql() |
void |
setFactory(NamedParameterPreparedStatementCreatorFactory factory) |
void |
setValues(PreparedStatement ps) |
public NamedParameterPreparedStatementCreator(String actualSql, List<?> parameters, NamedParameterPreparedStatementCreatorFactory factory)
public void cleanupParameters()
cleanupParameters 在接口中 org.springframework.jdbc.core.ParameterDisposerpublic PreparedStatement createPreparedStatement(Connection con) throws SQLException
createPreparedStatement 在接口中 org.springframework.jdbc.core.PreparedStatementCreatorSQLExceptionpublic void setValues(PreparedStatement ps) throws SQLException
setValues 在接口中 org.springframework.jdbc.core.PreparedStatementSetterSQLExceptionpublic String getSql()
getSql 在接口中 org.springframework.jdbc.core.SqlProviderpublic List getParameters()
public NamedParameterPreparedStatementCreatorFactory getFactory()
public void setFactory(NamedParameterPreparedStatementCreatorFactory factory)
Copyright © 2019. All rights reserved.