public class BeanSqlParameterSource extends Object implements SqlParameterSource, ParameterDisposer
| 构造器和说明 |
|---|
BeanSqlParameterSource(Object dataBean) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanupParameters()
关闭参数分配的可回收资源,例如:Lob 类型参数。
|
String[] |
getParameterNames()
Enumerate all available parameter names if possible.
|
Object |
getValue(String paramName)
Return the parameter value for the requested named parameter.
|
boolean |
hasValue(String paramName)
Determine whether there is a value for the specified named parameter.
|
public BeanSqlParameterSource(Object dataBean)
public boolean hasValue(String paramName)
SqlParameterSourcehasValue 在接口中 SqlParameterSourceparamName - the name of the parameterpublic Object getValue(String paramName) throws IllegalArgumentException
SqlParameterSourcegetValue 在接口中 SqlParameterSourceparamName - the name of the parameterIllegalArgumentException - if there is no value for the requested parameterpublic String[] getParameterNames()
SqlParameterSourcegetParameterNames 在接口中 SqlParameterSourcenull if not determinablepublic void cleanupParameters()
ParameterDisposercleanupParameters 在接口中 ParameterDisposerCopyright © 2020–2021. All rights reserved.