public interface AppDbConnection
DbConnectionContext#getConnection()
,
DbConnectionContext#getConnection(String)
修飾子とタイプ | メソッドと説明 |
---|---|
nablarch.core.db.statement.SqlCStatement |
prepareCallBySqlId(String sqlId)
ストアドプロシージャ実行用のStatementオブジェクトをSQL_IDを元に生成する。
|
SqlPStatement |
prepareCountStatementBySqlId(String sqlId)
SQL_IDを元に件数取得(カウント)用のStatementオブジェクトを生成する。
|
ParameterizedSqlPStatement |
prepareParameterizedCountSqlStatementBySqlId(String sqlId,
Object condition)
SQL_IDを元に件数取得(カウント)用のStatementオブジェクトを生成する。
|
ParameterizedSqlPStatement |
prepareParameterizedSqlStatementBySqlId(String sqlId)
名前付きパラメータをもつSQL文実行用のStatementオブジェクトをSQL_IDを元に生成する。
|
ParameterizedSqlPStatement |
prepareParameterizedSqlStatementBySqlId(String sqlId,
Object condition)
名前付きパラメータをもつ可変条件SQL文実行用のStatementオブジェクトをSQL_IDを元に生成する。
|
SqlPStatement |
prepareStatementBySqlId(String sqlId)
パラメータ付きSQL文実行用のStatementオブジェクトをSQL_IDを元に生成する。
|
@Published SqlPStatement prepareStatementBySqlId(String sqlId)
TransactionManagerConnection#terminate()
メソッドで自動的にクローズされるため、
アプリケーションは、取得したStatementオブジェクトを明示的にクローズする必要はない。sqlId
- SQL_IDPreparedStatement
のラッパーStatementConnection.prepareStatement(String)
@Published ParameterizedSqlPStatement prepareParameterizedSqlStatementBySqlId(String sqlId)
TransactionManagerConnection#terminate()
メソッドで自動的にクローズされるため、
アプリケーションは、取得したStatementオブジェクトを明示的にクローズする必要はない。
注意:本メソッドで返却されるParameterizedSqlPStatement
は、名前付きパラメータをもつSQL文専用である。
このため、通常のバインド変数(バインド変数を「?」で表すもの)をもつSQL文の場合は、
本メソッドで生成したParameterizedSqlPStatement
では処理できないことに注意すること。sqlId
- SQL_IDConnection.prepareStatement(String)
@Published ParameterizedSqlPStatement prepareParameterizedSqlStatementBySqlId(String sqlId, Object condition)
TransactionManagerConnection#terminate()
メソッドで自動的にクローズされるため、
アプリケーションは、取得したStatementオブジェクトを明示的にクローズする必要はない。
注意:本メソッドで返却されるParameterizedSqlPStatement
は、名前付きパラメータをもつSQL文専用である。
このため、通常のバインド変数(バインド変数を「?」で表すもの)をもつSQL文の場合は、
本メソッドで生成したParameterizedSqlPStatement
では処理できないことに注意すること。sqlId
- SQL_IDcondition
- 可変条件に設定される条件をもつオブジェクトConnection.prepareStatement(String)
@Published ParameterizedSqlPStatement prepareParameterizedCountSqlStatementBySqlId(String sqlId, Object condition)
AppDbConnection.prepareParameterizedSqlStatementBySqlId(String, Object)
と同じ処理を行う。sqlId
- SQL_IDcondition
- 可変条件に設定される条件をもつオブジェクトConnection.prepareStatement(String)
@Published SqlPStatement prepareCountStatementBySqlId(String sqlId)
AppDbConnection.prepareStatementBySqlId(String)
と同じ処理を行う。sqlId
- SQL_IDConnection.prepareStatement(String)
@Published nablarch.core.db.statement.SqlCStatement prepareCallBySqlId(String sqlId)
sqlId
- SQL_IDConnection.prepareCall(String)