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 java.lang.Object
implements ValueType

ValueTypeの抽象クラスです。

作成者:
taedium

コンストラクタの概要
AbstractValueType(int sqlType)
          インスタンスを構築します。
 
メソッドの概要
 int getSqlType()
          JDBCのSQL型を返します。
 void registerOutParameter(java.sql.CallableStatement cs, int index)
          OUTパラメータを登録します。
 void registerOutParameter(java.sql.CallableStatement cs, java.lang.String parameterName)
          OUTパラメータを登録します。
protected  void setNull(java.sql.CallableStatement cs, java.lang.String parameterName)
          SQLのNULLを設定します。
protected  void setNull(java.sql.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(java.sql.PreparedStatement ps,
                       int index)
                throws java.sql.SQLException
SQLのNULLを設定します。

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

setNull

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

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

registerOutParameter

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

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

registerOutParameter

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

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

getSqlType

public int getSqlType()
インタフェース ValueType の記述:
JDBCのSQL型を返します。

定義:
インタフェース ValueType 内の getSqlType
戻り値:
JDBCのSQL型


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.