org.seasar.extension.jdbc.types
クラス AbstractValueType

java.lang.Object
  拡張org.seasar.extension.jdbc.types.AbstractValueType
すべての実装インタフェース:
ValueType
直系の既知のサブクラス:
BigDecimalType, BigIntegerType, BinaryStreamType, BinaryType, BooleanIntegerType, BooleanType, BytesType, ByteType, CharacterType, DoubleType, FloatType, IntegerType, LongType, ObjectType, OracleResultSetType, PostgreResultSetType, ShortType, SqlDateType, StringClobType, StringType, TimestampType, TimeType

public abstract class AbstractValueType
extends Object
implements ValueType

ValueTypeの抽象クラスです。

作成者:
taedium

コンストラクタの概要
AbstractValueType(int sqlType)
          インスタンスを構築します。
 
メソッドの概要
 int getSqlType()
          SQLのタイプを返します。
 void registerOutParameter(CallableStatement cs, int index)
          OUTパラメータを登録します。
 void registerOutParameter(CallableStatement cs, String parameterName)
          OUTパラメータを登録します。
protected  void setNull(CallableStatement cs, String parameterName)
          SQLのNULLを設定します。
protected  void setNull(PreparedStatement ps, int index)
          SQLのNULLを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.extension.jdbc.ValueType から継承したメソッド
bindValue, bindValue, getValue, getValue, getValue, getValue, toText
 

コンストラクタの詳細

AbstractValueType

public AbstractValueType(int sqlType)
インスタンスを構築します。

パラメータ:
sqlType - JDBCのSQL型
メソッドの詳細

setNull

protected void setNull(PreparedStatement ps,
                       int index)
                throws SQLException
SQLのNULLを設定します。

パラメータ:
ps - 準備された文
index - 位置
例外:
SQLException - SQL例外が発生した場合

setNull

protected void setNull(CallableStatement cs,
                       String parameterName)
                throws SQLException
SQLのNULLを設定します。

パラメータ:
cs - ストアドプロシージャを表す文
parameterName - パラメータ名
例外:
SQLException - SQL例外が発生した場合

registerOutParameter

public void registerOutParameter(CallableStatement cs,
                                 int index)
                          throws SQLException
インタフェース ValueType の記述:
OUTパラメータを登録します。

定義:
インタフェース ValueType 内の registerOutParameter
パラメータ:
cs - ストアドプロシージャを表す文
index - 位置
例外:
SQLException - SQL例外が発生した場合

registerOutParameter

public void registerOutParameter(CallableStatement cs,
                                 String parameterName)
                          throws SQLException
インタフェース ValueType の記述:
OUTパラメータを登録します。

定義:
インタフェース ValueType 内の registerOutParameter
パラメータ:
cs - ストアドプロシージャを表す文
parameterName - パラメータ名
例外:
SQLException - SQL例外が発生した場合

getSqlType

public int getSqlType()
SQLのタイプを返します。

戻り値:
SQLのタイプ


Copyright ? 2004-2007 The Seasar Foundation. All Rights Reserved.