|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.framework.util.StatementUtil
Statement用のユーティリティクラスです。
| コンストラクタの概要 | |
protected |
StatementUtil()
インスタンスを構築します。 |
| メソッドの概要 | |
static void |
close(java.sql.Statement statement)
Statementを閉じます。 |
static boolean |
execute(java.sql.Statement statement,
java.lang.String sql)
SQLを実行します。 |
static java.sql.ResultSet |
getResultSet(java.sql.Statement statement)
結果セットを返します。 |
static int |
getUpdateCount(java.sql.Statement statement)
更新カウントを返します。 |
static void |
setFetchSize(java.sql.Statement statement,
int fetchSize)
フェッチサイズを設定します。 |
static void |
setMaxRows(java.sql.Statement statement,
int maxRows)
最大行数を設定します。 |
static void |
setQueryTimeout(java.sql.Statement statement,
int queryTimeout)
クエリタイムアウトを設定します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
protected StatementUtil()
| メソッドの詳細 |
public static boolean execute(java.sql.Statement statement,
java.lang.String sql)
throws SQLRuntimeException
statement - sql -
SQLRuntimeException - SQLExceptionが発生した場合Statement.execute(String)
public static void setFetchSize(java.sql.Statement statement,
int fetchSize)
throws SQLRuntimeException
statement - fetchSize -
SQLRuntimeException - SQLExceptionが発生した場合Statement.setFetchSize(int)
public static void setMaxRows(java.sql.Statement statement,
int maxRows)
throws SQLRuntimeException
statement - maxRows -
SQLRuntimeException - SQLExceptionが発生した場合Statement.setMaxRows(int)
public static void setQueryTimeout(java.sql.Statement statement,
int queryTimeout)
throws SQLRuntimeException
statement - queryTimeout -
SQLRuntimeException - SQLExceptionが発生した場合Statement.setQueryTimeout(int)
public static void close(java.sql.Statement statement)
throws SQLRuntimeException
Statementを閉じます。
statement -
SQLRuntimeException - SQLExceptionが発生した場合Statement.close()
public static java.sql.ResultSet getResultSet(java.sql.Statement statement)
throws SQLRuntimeException
statement -
SQLRuntimeExceptionpublic static int getUpdateCount(java.sql.Statement statement)
statement - ステートメント
Statement.getUpdateCount()
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||