public class EmptySqlParameterSource extends java.lang.Object implements SqlParameterSource
SqlParameterSource
interface.Modifier and Type | Field and Description |
---|---|
static EmptySqlParameterSource |
INSTANCE
A shared instance of
EmptySqlParameterSource . |
TYPE_UNKNOWN
Constructor and Description |
---|
EmptySqlParameterSource() |
Modifier and Type | Method and Description |
---|---|
int |
getSqlType(java.lang.String paramName)
Determine the SQL type for the specified named parameter.
|
java.lang.String |
getTypeName(java.lang.String paramName)
Determine the type name for the specified named parameter.
|
java.lang.Object |
getValue(java.lang.String paramName)
Return the parameter value for the requested named parameter.
|
boolean |
hasValue(java.lang.String paramName)
Determine whether there is a value for the specified named parameter.
|
public static final EmptySqlParameterSource INSTANCE
EmptySqlParameterSource
.public boolean hasValue(java.lang.String paramName)
SqlParameterSource
hasValue
in interface SqlParameterSource
paramName
- the name of the parameterpublic java.lang.Object getValue(java.lang.String paramName) throws java.lang.IllegalArgumentException
SqlParameterSource
getValue
in interface SqlParameterSource
paramName
- the name of the parameterjava.lang.IllegalArgumentException
- if there is no value for the requested parameterpublic int getSqlType(java.lang.String paramName)
SqlParameterSource
getSqlType
in interface SqlParameterSource
paramName
- the name of the parameterTYPE_UNKNOWN
if not knownSqlParameterSource.TYPE_UNKNOWN
public java.lang.String getTypeName(java.lang.String paramName)
SqlParameterSource
getTypeName
in interface SqlParameterSource
paramName
- the name of the parameternull
if not known