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

java.lang.Object
  拡張org.seasar.extension.jdbc.types.AbstractValueType
      拡張org.seasar.extension.jdbc.types.TimestampType
          拡張org.seasar.extension.jdbc.types.DateTimestampType
すべての実装インタフェース:
ValueType

public class DateTimestampType
extends TimestampType

Timestampと互換性をもつDate用のValueTypeです。

作成者:
taedium

コンストラクタの概要
DateTimestampType()
           
 
メソッドの概要
 java.lang.Object getValue(java.sql.CallableStatement cs, int index)
          パラメータの値を返します。
 java.lang.Object getValue(java.sql.CallableStatement cs, java.lang.String parameterName)
          パラメータの値を返します。
 java.lang.Object getValue(java.sql.ResultSet resultSet, int index)
          カラムの値を返します。
 java.lang.Object getValue(java.sql.ResultSet resultSet, java.lang.String columnName)
          カラムの値を返します。
protected  java.util.Date toDate(java.lang.Object value)
          Dateに変換します。
protected  java.sql.Timestamp toTimestamp(java.lang.Object value)
          Timestampに変換します。
 
クラス org.seasar.extension.jdbc.types.TimestampType から継承したメソッド
bindValue, bindValue, toText
 
クラス org.seasar.extension.jdbc.types.AbstractValueType から継承したメソッド
getSqlType, registerOutParameter, registerOutParameter, setNull, setNull
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DateTimestampType

public DateTimestampType()
メソッドの詳細

getValue

public java.lang.Object getValue(java.sql.ResultSet resultSet,
                                 int index)
                          throws java.sql.SQLException
インタフェース ValueType の記述:
カラムの値を返します。

定義:
インタフェース ValueType 内の getValue
オーバーライド:
クラス TimestampType 内の getValue
例外:
java.sql.SQLException

getValue

public java.lang.Object getValue(java.sql.ResultSet resultSet,
                                 java.lang.String columnName)
                          throws java.sql.SQLException
インタフェース ValueType の記述:
カラムの値を返します。

定義:
インタフェース ValueType 内の getValue
オーバーライド:
クラス TimestampType 内の getValue
例外:
java.sql.SQLException

getValue

public java.lang.Object getValue(java.sql.CallableStatement cs,
                                 int index)
                          throws java.sql.SQLException
インタフェース ValueType の記述:
パラメータの値を返します。

定義:
インタフェース ValueType 内の getValue
オーバーライド:
クラス TimestampType 内の getValue
例外:
java.sql.SQLException

getValue

public java.lang.Object getValue(java.sql.CallableStatement cs,
                                 java.lang.String parameterName)
                          throws java.sql.SQLException
インタフェース ValueType の記述:
パラメータの値を返します。

定義:
インタフェース ValueType 内の getValue
オーバーライド:
クラス TimestampType 内の getValue
例外:
java.sql.SQLException

toDate

protected java.util.Date toDate(java.lang.Object value)
Dateに変換します。

パラメータ:
value - 値
戻り値:
Date

toTimestamp

protected java.sql.Timestamp toTimestamp(java.lang.Object value)
Timestampに変換します。

オーバーライド:
クラス TimestampType 内の toTimestamp
パラメータ:
value - 値
戻り値:
Timestamp


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