net.hasor.jdbc.core.source
类 AbstractSqlParameterSource
java.lang.Object
net.hasor.jdbc.core.source.AbstractSqlParameterSource
- 所有已实现的接口:
- SqlParameterSource
- 直接已知子类:
- MapSqlParameterSource
public abstract class AbstractSqlParameterSource
- extends Object
- implements SqlParameterSource
Abstract base class for SqlParameterSource implementations.
Provides registration of SQL types per parameter.
- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
| 从类 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.
- 参数:
paramName - the name of the parametersqlType - the SQL type of the parameter
registerTypeName
public void registerTypeName(String paramName,
String typeName)
- Register a SQL type for the given parameter.
- 参数:
paramName - the name of the parametertypeName - the type name of the parameter
getSqlType
public int getSqlType(String paramName)
- Return the SQL type for the given parameter, if registered.
- 指定者:
- 接口
SqlParameterSource 中的 getSqlType
- 参数:
paramName - the name of the parameter
- 返回:
- the SQL type of the parameter,
or
TYPE_UNKNOWN if not registered - 另请参见:
SqlParameterSource.TYPE_UNKNOWN
getTypeName
public String getTypeName(String paramName)
- Return the type name for the given parameter, if registered.
- 指定者:
- 接口
SqlParameterSource 中的 getTypeName
- 参数:
paramName - the name of the parameter
- 返回:
- the type name of the parameter,
or
null if not registered
Copyright © 2013-2014. All Rights Reserved.