Forums: Open Discussion (Thread #24175)

【バッチFW】複数データベースからのデータ取得 (2009-10-12 23:05 by Anonymous #46347)

同一BLogicでヘッダと明細データを参照する場合、
データベースから読み込んだ結果を1:Nの構造にCollectorで
変換すると機能説明書にありますが、
複数データベースでのN:Nの場合はどのようにBLogicに渡せば良いでしょうか?
1レコード毎に実行されるBLogic内で
毎回同じN件のデータセットを参照したいので、
全チャンクを通して共通的に保持したいと思っております。

マニュアルを読み始めたばかりで詳細が掴めてない部分が多いのですが、
御回答の程、宜しくお願いいたします。

Reply to #46347×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【バッチFW】複数データベースからのデータ取得 (2009-10-13 13:47 by Anonymous #46354)

BLogic内で毎回同じN件のデータセットを参照したい、ということでしたら、前処理でN件のデータを取得して、JobContextにセットしておき、BLogicではJobContextから取得する、というやり方でよいと思います。N件が大きすぎるとメモリを食ったり、更新を行うと多重実行したときの排他も問題になりそうですが、記述されている内容でしたら、JobCotnextでいけるとかと思います。JobContextは、デフォルトのままでも動きますが、自分で拡張したクラスをJob Bean定義ファイルに指定できます。
Reply to #46347

Reply to #46354×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【バッチFW】複数データベースからのデータ取得 (2009-10-17 23:43 by Anonymous #46502)

返信が遅くなって申し訳ございませんでした。
拡張したJobContextで解決しそうです。
御回答ありがとうございました。
Reply to #46354

Reply to #46502×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login