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)
SqlParameterSourcehasValue in interface SqlParameterSourceparamName - the name of the parameterpublic java.lang.Object getValue(java.lang.String paramName)
throws java.lang.IllegalArgumentException
SqlParameterSourcegetValue in interface SqlParameterSourceparamName - the name of the parameterjava.lang.IllegalArgumentException - if there is no value for the requested parameterpublic int getSqlType(java.lang.String paramName)
SqlParameterSourcegetSqlType in interface SqlParameterSourceparamName - the name of the parameterTYPE_UNKNOWN if not knownSqlParameterSource.TYPE_UNKNOWNpublic java.lang.String getTypeName(java.lang.String paramName)
SqlParameterSourcegetTypeName in interface SqlParameterSourceparamName - the name of the parameternull if not known