public final class DBTableModelUtil
extends java.lang.Object
データベース関連の便利なメソッドを集めた簡易ユーティリティークラスです。 全てのメソッドは、static メソッドになっています。
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static DBColumn |
makeDBColumn(java.lang.String name,
int column,
ResultSetValue rsv,
ResourceManager resource)
ResultSetValue から、DBColumn オブジェクトを作成します。
|
static DBTableModel |
makeDBTable(java.sql.ResultSet result,
int skipRowCount,
int maxRowCount,
ResourceManager resource)
検索結果オブジェクトからDBテーブルモデルを作成します。
|
static DBTableModel |
makeDBTable(java.lang.String[] clms,
java.lang.String[][] vals,
ResourceManager resource)
カラム名の配列及びデータの2次元配列からDBテーブルモデルを作成します。
|
static DBTableModel |
makeDBTable(java.lang.String stmt,
java.lang.String[] args,
ResourceManager resource,
ApplicationInfo appInfo)
初期データベースに接続して、Queryを実行します。
|
static DBTableModel |
makeDBTable(java.lang.String stmt,
java.lang.String[] args,
ResourceManager resource,
ApplicationInfo appInfo,
java.lang.String dbid)
検索するデータベースを指定して、Queryを実行します。
|
static DBTableModel |
makeEditDBTable(java.sql.ResultSet result,
int skipRowCount,
int maxRowCount,
ResourceManager resource,
DBEditConfig config)
検索結果オブジェクトから編集設定に基づいて変換されたDBテーブルモデルを作成します。
|
static DBTableModel |
newDBTable()
空の DBTableModelオブジェクトを作成します。
|
public static DBTableModel makeDBTable(java.lang.String stmt, java.lang.String[] args, ResourceManager resource, ApplicationInfo appInfo)
stmt - ステートメント文字列args - オブジェクトの引数配列resource - リソースマネージャーappInfo - アプリ情報オブジェクトpublic static DBTableModel makeDBTable(java.lang.String stmt, java.lang.String[] args, ResourceManager resource, ApplicationInfo appInfo, java.lang.String dbid)
stmt - ステートメント文字列args - オブジェクトの引数配列resource - リソースマネージャーappInfo - アプリ情報オブジェクトdbid - 接続先IDpublic static DBTableModel newDBTable()
public static DBTableModel makeDBTable(java.lang.String[] clms, java.lang.String[][] vals, ResourceManager resource)
clms - カラム名の配列vals - 値の配列resource - リソースマネージャーpublic static DBTableModel makeDBTable(java.sql.ResultSet result, int skipRowCount, int maxRowCount, ResourceManager resource) throws java.sql.SQLException
result - 検索結果オブジェクトskipRowCount - 読み飛ばし件数maxRowCount - 最大検索件数resource - リソースマネージャーjava.sql.SQLException - データベースアクセスエラーpublic static DBTableModel makeEditDBTable(java.sql.ResultSet result, int skipRowCount, int maxRowCount, ResourceManager resource, DBEditConfig config) throws java.sql.SQLException
result - 検索結果オブジェクトskipRowCount - 読み飛ばし件数maxRowCount - 最大検索件数resource - リソースマネージャーconfig - 編集設定オブジェクトjava.sql.SQLException - データベースアクセスエラーpublic static DBColumn makeDBColumn(java.lang.String name, int column, ResultSetValue rsv, ResourceManager resource)
name - カラム名column - カラム番号rsv - ResultSetValueオブジェクトresource - リソースマネージャーWebアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.