バイナリデータは、その内容をCOBOLで操作できません。
アプリケーション情報入力ファイル
<apfw-app>
…
<operation name="SAMPLE13">
<parameter direction="IN">BITMAP</parameter>
<parameter direction="OUT">RESULT-CODE</parameter>
</operation>
…
</apfw-app> |
COBOL登録集
01 BITMAP.
49 D-MAX PIC 9(9) COMP-5.
49 D-LEN PIC 9(9) COMP-5.
49 D-BUF POINTER.
01 RESULT-CODE PIC S9(9) COMP-5. |
生成されるbean
// SAMPLE13Bean.java
public class SAMPLE13Bean
implements com.fujitsu.interstage.apfw.bean.ApfwBean
{
private int apfw_result;
private byte[] bitmap;
private int result_code;
public SAMPLE13Bean() {}
public void setApfw_result(int apfw_result)
{
this.apfw_result = apfw_result;
}
public int getApfw_result()
{
return this.apfw_result;
}
public void setBitmap(byte[] bitmap)
{
this.bitmap = bitmap;
}
public byte[] getBitmap()
{
return this.bitmap;
}
public void setResult_code(int result_code)
{
this.result_code = result_code;
}
public int getResult_code()
{
return this.result_code;
}
} |