org.springframework.jdbc.core.namedparam
Class AbstractSqlParameterSource
java.lang.Object
   org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource
org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource
- All Implemented Interfaces: 
- SqlParameterSource
- Direct Known Subclasses: 
- BeanPropertySqlParameterSource, MapSqlParameterSource
- public abstract class AbstractSqlParameterSource 
- extends Object- implements SqlParameterSource
Abstract base class for SqlParameterSource implementations.
 Provides registration of SQL types per parameter.
- Since:
- 2.0
- Author:
- Juergen Hoeller
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
AbstractSqlParameterSource
public AbstractSqlParameterSource()
registerSqlType
public void registerSqlType(String paramName,
                            int sqlType)
- Register a SQL type for the given parameter.
 
- 
 
- 
- Parameters:
- paramName- the name of the parameter
- sqlType- the SQL type of the parameter
 
registerTypeName
public void registerTypeName(String paramName,
                             String typeName)
- Register a SQL type for the given parameter.
 
- 
 
- 
- Parameters:
- paramName- the name of the parameter
- typeName- the type name of the parameter
 
getSqlType
public int getSqlType(String paramName)
- Return the SQL type for the given parameter, if registered.
 
- 
- Specified by:
- getSqlTypein interface- SqlParameterSource
 
- 
- Parameters:
- paramName- the name of the parameter
- Returns:
- the SQL type of the parameter,
 or TYPE_UNKNOWNif not registered
- See Also:
- SqlParameterSource.TYPE_UNKNOWN
 
getTypeName
public String getTypeName(String paramName)
- Return the type name for the given parameter, if registered.
 
- 
- Specified by:
- getTypeNamein interface- SqlParameterSource
 
- 
- Parameters:
- paramName- the name of the parameter
- Returns:
- the type name of the parameter,
 or nullif not registered
 
Copyright © 2002-2008 The Spring Framework.