IM-PDFDesigner for Accel Platform プログラミングガイド 第22版 2024-04-01

3.6. 開発手法

IM-PDFDesigner for Accel Platform のAPIは、intra-mart Accel Platform が標準で提供している他のAPIと同様に使用することができます。

利用可能な開発モデルは、次の通りです。

  • スクリプト開発モデル
  • JavaEE開発モデル

注意

JavaEE開発モデル 用APIを使用したプログラムをコンパイルする場合、< %RESIN_HOME%/lib >に設置したJARファイルをクラスパスに設定してください。

JARファイルの詳細については「 IM-PDFDesigner for Accel Platform セットアップガイド 」-「 セットアップフォルダ構成 」を参照してください。

注意

intra-mart e Builder for Accel Platform との連携方法については、「 intra-mart e Builder for Accel Platform との連携方法 」を参照してください。

3.6.1. APIの概要

IM-PDFDesigner for Accel Platform のAPIの概要は、次の通りです。

各APIの仕様に関しては、「 IM-PDFDesigner for Accel Platform API ドキュメント 」を参照してください。

  • スクリプト開発モデル 用API

    用途 クラス( スタンドアローン構成 / 分散構成 )
    単票用 IODoc/IODocRemote
    連票用
    IODBDoc/IODBDocRemote
    IOCela/IOCelaRemote
    結合用 IOIntegration/IOIntegrationRemote
    その他 PdfdRemoteFactory( 分散構成 のみ)
  • JavaEE開発モデル 用API

    用途 クラス( スタンドアローン構成 / 分散構成 )
    単票用 CSVDoc/CSVDocRemote
    連票用
    DBDoc/DBDocRemote
    CSVCela/CSVCelaRemote
    結合用 IOIntegration/IOIntegrationRemote
    その他 PdfdRemoteFactory( 分散構成 のみ)

コラム

スタンドアローン構成 、および、 分散構成 の詳細については、「 IM-PDFDesigner for Accel Platform リリースノート 」-「 スタンドアローン構成と分散構成 」を参照してください。

コラム

IM-PDFDesigner for Accel Platform のサンプルプログラムを 分散構成 の環境で使用する場合は、クラス名を変更してください。

// スクリプト開発モデル(単票)の場合
// スタンドアローン構成の場合
var pdf = new IODoc("pdfd/tutorial/nouhinkensa.iod", "");
// 分散構成の場合
var pdf = new IODocRemote("pdfd/tutorial/nouhinkensa.iod", "");
// JavaEE開発モデル(単票)の場合
// スタンドアローン構成の場合
CSVDoc pdf = new CSVDoc("pdfd/tutorial/nouhinkensa.iod", "");
// 分散構成の場合
CSVDocRemote pdf = new CSVDocRemote("pdfd/tutorial/nouhinkensa.iod", "");

コラム

分散構成で intra-mart Accel Platform サーバと PDF帳票サーバ の間にロードバランサーを導入している場合、Factoryクラスを使用することでセッションを維持できる可能性があります。

// このFactoryクラスで生成したオブジェクトは同一セッションになります
PdfdRemoteFactory factory = new PdfdRemoteFactory();

CSVDocRemote iodoc = factory.createCSVDocRemote("sample1.iod", null);
iodoc.makeIOD("sample1_temp.iod");

CSVDocRemote iodoc = factory.createCSVDocRemote("sample2.iod", null);
iodoc.makeIOD("sample2_temp.iod");

IOIntegrationRemote integration = factory.createIOIntegrationRemote();
integration.add("sample1_temp.iod");
integration.add("sample2_temp.iod");
integration.makePDF("result.pdf");