public class EmptySqlParameterSource extends 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(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.
|
public static final EmptySqlParameterSource INSTANCE
EmptySqlParameterSource.public boolean hasValue(String paramName)
SqlParameterSourcehasValue in interface SqlParameterSourceparamName - the name of the parameterpublic Object getValue(String paramName) throws IllegalArgumentException
SqlParameterSourcegetValue in interface SqlParameterSourceparamName - the name of the parameterIllegalArgumentException - if there is no value for the requested parameterpublic int getSqlType(String paramName)
SqlParameterSourcegetSqlType in interface SqlParameterSourceparamName - the name of the parameterTYPE_UNKNOWN if not knownSqlParameterSource.TYPE_UNKNOWNpublic String getTypeName(String paramName)
SqlParameterSourcegetTypeName in interface SqlParameterSourceparamName - the name of the parameternull if not known