org.seasar.extension.jdbc.impl
クラス PropertyTypeUtil

java.lang.Object
  拡張org.seasar.extension.jdbc.impl.PropertyTypeUtil

public class PropertyTypeUtil
extends java.lang.Object

PropertyType用のユーティリティクラスです。

作成者:
higa

フィールドの概要
protected static boolean preserveUnderscore
          カラム名に含まれるアンダースコアを維持してプロパティ名とする場合はtrueです。
 
コンストラクタの概要
protected PropertyTypeUtil()
          インスタンスを構築します。
 
メソッドの概要
static PropertyType[] createPropertyTypes(java.sql.ResultSetMetaData rsmd)
          PropertyTypeの配列を作成します。
static void setPreserveUnderscore(boolean preserve)
          カラム名に含まれるアンダースコアを維持してプロパティ名とする場合はtrueを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

preserveUnderscore

protected static boolean preserveUnderscore
カラム名に含まれるアンダースコアを維持してプロパティ名とする場合はtrueです。

コンストラクタの詳細

PropertyTypeUtil

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

メソッドの詳細

setPreserveUnderscore

public static void setPreserveUnderscore(boolean preserve)
カラム名に含まれるアンダースコアを維持してプロパティ名とする場合はtrueを設定します。

パラメータ:
preserve - カラム名に含まれるアンダースコアを維持してプロパティ名とする場合はtrue

createPropertyTypes

public static PropertyType[] createPropertyTypes(java.sql.ResultSetMetaData rsmd)
                                          throws java.sql.SQLException
PropertyTypeの配列を作成します。

パラメータ:
rsmd - 結果セットメタデータ
戻り値:
PropertyTypeの配列
例外:
java.sql.SQLException - SQL例外が発生した場合


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