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

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.types.EnumType
すべての実装されたインタフェース:
ValueType

public class EnumType
extends Object
implements ValueType

EnumをJDBCで扱うためのクラスです。

作成者:
higa

コンストラクタの概要
EnumType(Class<? extends Enum> enumClass)
          EnumTypeを返します。
 
メソッドの概要
 void bindValue(PreparedStatement ps, int index, Object value)
           
 Object getValue(ResultSet resultSet, int index)
           
 Object getValue(ResultSet resultSet, String columnName)
           
protected  Enum toEnum(String name)
          Enumに変換します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

EnumType

public EnumType(Class<? extends Enum> enumClass)
EnumTypeを返します。

パラメータ:
enumClass -
メソッドの詳細

getValue

public Object getValue(ResultSet resultSet,
                       int index)
                throws SQLException
定義:
インタフェース ValueType 内の getValue
例外:
SQLException

toEnum

protected Enum toEnum(String name)
Enumに変換します。

パラメータ:
name -
戻り値:
Enum

getValue

public Object getValue(ResultSet resultSet,
                       String columnName)
                throws SQLException
定義:
インタフェース ValueType 内の getValue
例外:
SQLException

bindValue

public void bindValue(PreparedStatement ps,
                      int index,
                      Object value)
               throws SQLException
定義:
インタフェース ValueType 内の bindValue
例外:
SQLException


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