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