public abstract class AbstractSqlParameterSource extends Object implements SqlParameterSource
SqlParameterSource implementations.
Provides registration of SQL types per parameter.TYPE_UNKNOWN| Constructor and Description |
|---|
AbstractSqlParameterSource() |
| Modifier and Type | Method and Description |
|---|---|
int |
getSqlType(String paramName)
Return the SQL type for the given parameter, if registered.
|
String |
getTypeName(String paramName)
Return the type name for the given parameter, if registered.
|
void |
registerSqlType(String paramName,
int sqlType)
Register a SQL type for the given parameter.
|
void |
registerTypeName(String paramName,
String typeName)
Register a SQL type for the given parameter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValue, hasValuepublic void registerSqlType(String paramName, int sqlType)
paramName - the name of the parametersqlType - the SQL type of the parameterpublic void registerTypeName(String paramName, String typeName)
paramName - the name of the parametertypeName - the type name of the parameterpublic int getSqlType(String paramName)
getSqlType in interface SqlParameterSourceparamName - the name of the parameterTYPE_UNKNOWN if not registeredSqlParameterSource.TYPE_UNKNOWNpublic String getTypeName(String paramName)
getTypeName in interface SqlParameterSourceparamName - the name of the parameternull if not registered