org.seasar.extension.jdbc.types
クラス EnumType
java.lang.Object
org.seasar.extension.jdbc.types.AbstractValueType
org.seasar.extension.jdbc.types.EnumType
- すべての実装されたインタフェース:
- ValueType
public class EnumType
- extends AbstractValueType
EnumをJDBCで扱うためのクラスです。
- 作成者:
- higa
クラス 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
- 例外:
SQLException
toEnum
protected Enum toEnum(String name)
Enum
に変換します。
- パラメータ:
name
-
- 戻り値:
Enum
getValue
public Object getValue(ResultSet resultSet,
String columnName)
throws SQLException
- 例外:
SQLException
getValue
public Object getValue(CallableStatement cs,
int index)
throws SQLException
- 例外:
SQLException
getValue
public Object getValue(CallableStatement cs,
String parameterName)
throws SQLException
- 例外:
SQLException
bindValue
public void bindValue(PreparedStatement ps,
int index,
Object value)
throws SQLException
- 例外:
SQLException
bindValue
public void bindValue(CallableStatement cs,
String parameterName,
Object value)
throws SQLException
- 例外:
SQLException
toText
public String toText(Object value)
Copyright ? 2004-2007 The Seasar Foundation. All Rights Reserved.