インタフェースの使用
org.opengion.fukurou.db.Transaction
Transactionを使用しているパッケージ
パッケージ
説明
業務ロジックを処理するためのクラスを提供します。
データベースのConnection オブジェクトを管理するクラスを提供します。
fileexec は、GE7X 関連テーブルを利用して、ファイルの取込、実行処理を行うクラスを提供します。
DBアクセス関連、DBTableModel、 DBColumn等データベースアクセス関連のクラス群です。
はやぶさのタグライブラリー関係のクラスを提供します。
-
org.opengion.fukurou.businessでのTransactionの使用
修飾子とタイプメソッド説明protected TransactionAbstractBizLogic.getTransaction()DBのトランザクションオブジェクトを返します。 (全てのDB処理は、1つのトランザクションとして処理されます。)Transaction型のパラメータを持つorg.opengion.fukurou.businessのメソッド修飾子とタイプメソッド説明(package private) voidAbstractBizLogic.setTransaction(Transaction tr) DBのトランザクションオブジェクトを指定します。 各実装クラスでは、コネクションのcommit,rollbackは行われません。 (全てのDB処理は、1つのトランザクションとして処理されます。) このため、commit,rollbackは呼び出し元で行う必要があります。 このメソッドは、1度しかセットすることができません。2回以上呼び出しするとエラーになります。voidBizLogicHelper.setTransaction(Transaction tran) DBのトランザクションオブジェクトを指定します。 -
org.opengion.fukurou.dbでのTransactionの使用
Transactionを実装しているorg.opengion.fukurou.dbのクラス修飾子とタイプクラス説明classコネクションを共有して、トランザクションを実現します。classTransaction インターフェースを継承した、リアルタイムトランザクションクラスです。Transaction型のパラメータを持つorg.opengion.fukurou.dbのメソッド修飾子とタイプメソッド説明static String[]DBUtil.dbCallExecute(String stmt, String[] args, Transaction tran) 初期データベースに接続して、CallableStatement(PL/SQL)を実行します(Transaction 対応)。static String[]DBUtil.dbCallExecute(String stmt, String[] args, Transaction tran, String dbid) 検索するデータベースを指定して、CallableStatement(PL/SQL)を実行します(Transaction 対応)。static String[][]DBUtil.dbExecute(String stmt, String[] args, Transaction tran) 初期データベースに接続して、Queryを実行します(Transaction 対応)。static String[][]DBUtil.dbExecute(String stmt, String[] args, Transaction tran, String dbid) 検索するデータベースを指定して、Queryを実行します(Transaction 対応)。static String[][]DBUtil.dbExecute(String stmt, String[] args, Transaction tran, String dbid, boolean useHeader) 検索するデータベースを指定して、Queryを実行します(Transaction 対応)。static intDBUtil.dbExist(String stmt, String[] args, Transaction tran, String dbid) SQL文の実行結果において、データの件数を取得します(Transaction 対応)。intDBFunctionName.getSequence(String seqName, Transaction tran) シーケンス名よりシーケンスオブジェクトを検索し、次の値を取り出します。intDBFunctionName.getSequence(String seqName, Transaction tran, String DBID) シーケンス名よりシーケンスオブジェクトを検索し、次の値を取り出します。 -
org.opengion.fukurou.fileexecでのTransactionの使用
Transaction型のパラメータを持つorg.opengion.fukurou.fileexecのメソッド修飾子とタイプメソッド説明DBUtil.dbQuery(Transaction tarn, String query, String... args) 検索するデータベースを指定して、Queryを実行します(Transaction 対応)。static intDBUtil.execute(Transaction tarn, String query, String... values) データ配列を渡して実際のDB処理を実行します。 -
org.opengion.hayabusa.dbでのTransactionの使用
修飾子とタイプメソッド説明AbstractTableFilter.getTransaction()アクセスログ取得の為,Transactionオブジェクトを取得します。TableFilter.getTransaction()アクセスログ取得の為,Transactionオブジェクトを取得します。Transaction型のパラメータを持つorg.opengion.hayabusa.dbのメソッド修飾子とタイプメソッド説明voidAbstractTableFilter.setTransaction(Transaction tran) アクセスログ取得の為,Transactionオブジェクトを設定します。voidTableFilter.setTransaction(Transaction tran) アクセスログ取得の為,Transactionオブジェクトを設定します。 -
org.opengion.hayabusa.taglibでのTransactionの使用
修飾子とタイプメソッド説明protected TransactionTransactionTag.getTranObj()Transactionオブジェクトを返します。protected TransactionCommonTagSupport.getTransaction()Transactionオブジェクトを取得します。 これは、自身のタグの親タグ(囲われているタグ)から、TransactionTag を 見つけて、すでに、Transactionオブジェクトが作成済みなら、そのオブジェクトを そうでないなら、新規に作成して返します。 Transactionオブジェクトは、AutoCloseableインタフェースを実装しているため、 try-with-resources構築を使用することが可能です。