|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.util.ConnectionUtil
Connection
用のユーティリティです。
メソッドの概要 | |
static void |
close(Connection connection)
コネクションを閉じます。 |
static Statement |
createStatement(Connection connection)
Statement を作成します。 |
static DatabaseMetaData |
getMetaData(Connection connection)
データベースメタデータを返します。 |
static CallableStatement |
prepareCall(Connection connection,
String sql)
CallableStatement を作成します。 |
static PreparedStatement |
prepareStatement(Connection connection,
String sql)
PreparedStatement を作成します。 |
static PreparedStatement |
prepareStatement(Connection connection,
String sql,
int autoGeneratedKeys)
PreparedStatement を作成します。 |
static PreparedStatement |
prepareStatement(Connection connection,
String sql,
int resultSetType,
int resultSetConcurrency)
準備されたステートメントを作成します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
public static void close(Connection connection) throws SQLRuntimeException
connection
- コネクション
SQLRuntimeException
- SQL例外が発生した場合public static Statement createStatement(Connection connection) throws SQLRuntimeException
Statement
を作成します。
connection
- コネクション
Statement
SQLRuntimeException
- SQL例外が発生した場合public static PreparedStatement prepareStatement(Connection connection, String sql) throws SQLRuntimeException
PreparedStatement
を作成します。
connection
- コネクションsql
- SQL
PreparedStatement
SQLRuntimeException
- SQL例外が発生した場合public static PreparedStatement prepareStatement(Connection connection, String sql, int autoGeneratedKeys) throws SQLRuntimeException
PreparedStatement
を作成します。
connection
- コネクションsql
- SQLautoGeneratedKeys
- 自動生成キーを返すかどうかを示すフラグ。Statement.RETURN_GENERATED_KEYS
または
Statement.NO_GENERATED_KEYS
PreparedStatement
SQLRuntimeException
- SQL例外が発生した場合public static PreparedStatement prepareStatement(Connection connection, String sql, int resultSetType, int resultSetConcurrency) throws SQLRuntimeException
connection
- コネクションsql
- SQLresultSetType
- 結果セットタイプresultSetConcurrency
- 結果セット同時並行性
SQLRuntimeException
- SQL例外が発生した場合public static CallableStatement prepareCall(Connection connection, String sql) throws SQLRuntimeException
CallableStatement
を作成します。
connection
- コネクションsql
- SQL
CallableStatement
SQLRuntimeException
- SQL例外が発生した場合public static DatabaseMetaData getMetaData(Connection connection) throws SQLRuntimeException
connection
- コネクション
SQLRuntimeException
- SQL例外が発生した場合
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |