| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
LdiStatementUtil()
インスタンスを構築します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
close(Statement statement)
Statementを閉じます。 |
static boolean |
execute(Statement statement,
String sql)
SQLを実行します。
|
static ResultSet |
getResultSet(Statement statement)
結果セットを返します。
|
static int |
getUpdateCount(Statement statement)
更新カウントを返します。
|
static void |
setFetchSize(Statement statement,
int fetchSize)
フェッチサイズを設定します。
|
static void |
setMaxRows(Statement statement,
int maxRows)
最大行数を設定します。
|
static void |
setQueryTimeout(Statement statement,
int queryTimeout)
クエリタイムアウトを設定します。
|
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 - SQLRuntimeExceptionpublic static int getUpdateCount(Statement statement)
statement - ステートメントStatement.getUpdateCount()Copyright © 2015 The DBFlute Project. All rights reserved.