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

字段摘要
 
从接口 net.hasor.jdbc.SqlParameterSource 继承的字段
TYPE_UNKNOWN
 
构造方法摘要
AbstractSqlParameterSource()
           
 
方法摘要
 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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 net.hasor.jdbc.SqlParameterSource 继承的方法
getValue, hasValue
 

构造方法详细信息

AbstractSqlParameterSource

public AbstractSqlParameterSource()
方法详细信息

registerSqlType

public void registerSqlType(String paramName,
                            int sqlType)
Register a SQL type for the given parameter.

参数:
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.

参数:
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.

指定者:
接口 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.