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