类 EmptySqlParameterSource
- java.lang.Object
- org.springframework.jdbc.core.namedparam.EmptySqlParameterSource
- 所有已实现的接口:
SqlParameterSource
public class EmptySqlParameterSource extends Object implements SqlParameterSource
A simple empty implementation of theSqlParameterSource
interface.- 从以下版本开始:
- 3.2.2
- 作者:
- Juergen Hoeller
字段概要
字段 修饰符和类型 字段 说明 static EmptySqlParameterSource
INSTANCE
A shared instance ofEmptySqlParameterSource
.从接口继承的字段 org.springframework.jdbc.core.namedparam.SqlParameterSource
TYPE_UNKNOWN
构造器概要
构造器 构造器 说明 EmptySqlParameterSource()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getSqlType(String paramName)
Determine the SQL type for the specified named parameter.String
getTypeName(String paramName)
Determine the type name for the specified named parameter.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.
字段详细资料
INSTANCE
public static final EmptySqlParameterSource INSTANCE
A shared instance ofEmptySqlParameterSource
.
构造器详细资料
EmptySqlParameterSource
public EmptySqlParameterSource()
方法详细资料
hasValue
public boolean hasValue(String paramName)
从接口复制的说明:SqlParameterSource
Determine whether there is a value for the specified named parameter.- 指定者:
hasValue
在接口中SqlParameterSource
- 参数:
paramName
- the name of the parameter- 返回:
- whether there is a value defined
getValue
public Object getValue(String paramName) throws IllegalArgumentException
从接口复制的说明:SqlParameterSource
Return the parameter value for the requested named parameter.- 指定者:
getValue
在接口中SqlParameterSource
- 参数:
paramName
- the name of the parameter- 返回:
- the value of the specified parameter
- 抛出:
IllegalArgumentException
- if there is no value for the requested parameter
getSqlType
public int getSqlType(String paramName)
从接口复制的说明:SqlParameterSource
Determine the SQL type for the specified named parameter.- 指定者:
getSqlType
在接口中SqlParameterSource
- 参数:
paramName
- the name of the parameter- 返回:
- the SQL type of the specified parameter, or
TYPE_UNKNOWN
if not known - 另请参阅:
SqlParameterSource.TYPE_UNKNOWN
getTypeName
public String getTypeName(String paramName)
从接口复制的说明:SqlParameterSource
Determine the type name for the specified named parameter.- 指定者:
getTypeName
在接口中SqlParameterSource
- 参数:
paramName
- the name of the parameter- 返回:
- the type name of the specified parameter, or
null
if not known