org.seasar.extension.dataset.types
クラス ColumnTypes

java.lang.Object
  拡張org.seasar.extension.dataset.types.ColumnTypes

public class ColumnTypes
extends java.lang.Object

カラムの型を管理するクラスです。

作成者:
higa

フィールドの概要
static ColumnType BIGDECIMAL
          数値用の ColumnTypeです。
static ColumnType BINARY
          バイナリ用の ColumnTypeです。
static ColumnType BOOLEAN
          論理値用の ColumnTypeです。
static ColumnType NOT_TRIM_STRING
          トリムをしない文字列用の ColumnTypeです。
static ColumnType OBJECT
          オブジェクト用の ColumnTypeです。
static ColumnType STRING
          文字列用の ColumnTypeです。
static ColumnType TIMESTAMP
          日付用の ColumnTypeです。
 
コンストラクタの概要
protected ColumnTypes()
          インスタンスを構築します。
 
メソッドの概要
static ColumnType getColumnType(java.lang.Class clazz)
          カラムの型を返します。
static ColumnType getColumnType(int type)
          カラムの型を返します。
static ColumnType getColumnType(java.lang.Object value)
          カラムの型を返します。
static ValueType getValueType(int type)
          S2JDBC用の型を返します。
static ColumnType registerColumnType(java.lang.Class clazz, ColumnType columnType)
          カラムの型を登録します。
static ColumnType registerColumnType(int sqlType, ColumnType columnType)
          カラムの型を登録します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

STRING

public static final ColumnType STRING
文字列用の ColumnTypeです。

関連項目:
StringType

NOT_TRIM_STRING

public static final ColumnType NOT_TRIM_STRING
トリムをしない文字列用の ColumnTypeです。

関連項目:
StringType

BIGDECIMAL

public static final ColumnType BIGDECIMAL
数値用の ColumnTypeです。

関連項目:
BigDecimalType

TIMESTAMP

public static final ColumnType TIMESTAMP
日付用の ColumnTypeです。

関連項目:
TimestampType

BINARY

public static final ColumnType BINARY
バイナリ用の ColumnTypeです。

関連項目:
BinaryType

OBJECT

public static final ColumnType OBJECT
オブジェクト用の ColumnTypeです。

関連項目:
ObjectType

BOOLEAN

public static final ColumnType BOOLEAN
論理値用の ColumnTypeです。

関連項目:
BooleanType
コンストラクタの詳細

ColumnTypes

protected ColumnTypes()
インスタンスを構築します。

メソッドの詳細

getValueType

public static ValueType getValueType(int type)
S2JDBC用の型を返します。

パラメータ:
type - 型
戻り値:
JDBC用の型
関連項目:
ValueTypes

getColumnType

public static ColumnType getColumnType(int type)
カラムの型を返します。

パラメータ:
type - 型
戻り値:
カラムの型

getColumnType

public static ColumnType getColumnType(java.lang.Object value)
カラムの型を返します。

パラメータ:
value - 値
戻り値:
カラムの型

getColumnType

public static ColumnType getColumnType(java.lang.Class clazz)
カラムの型を返します。

パラメータ:
clazz - クラス
戻り値:
カラムの型

registerColumnType

public static ColumnType registerColumnType(int sqlType,
                                            ColumnType columnType)
カラムの型を登録します。

パラメータ:
sqlType - SQL型
columnType - カラムの型
戻り値:
指定されたSQL型に関連した以前のカラムの型。カラムの型にマッピングなかった場合にはnull

registerColumnType

public static ColumnType registerColumnType(java.lang.Class clazz,
                                            ColumnType columnType)
カラムの型を登録します。

パラメータ:
clazz - クラス
columnType - カラムの型
戻り値:
指定されたクラスに関連した以前のカラムの型。カラムの型にマッピングなかった場合にはnull


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