Using the File Class使用文件类

Using the File Class
使用文件类

The file layout class enables you to perform file input and output operations with Application Engine using PeopleCode. A file object enables you to open a file (for reading or writing), read data from a file, or write data to it. Using the combination of the file class and Application Engine provides an effective method to integrate (or exchange) the data stored in a legacy system with your PeopleSoft system. The file class facilitates the creation of a flat file that both your legacy system and Application Engine programs support.

文件布局类使您能够使用PeopleCode在应用程序引擎中执行文件输入和输出操作。文件对象使您能够打开文件(用于读取或写入)、从文件中读取数据或向其写入数据。使用文件类和应用程序引擎的组合提供了一种有效的方法来集成(或交换)与您的PeopleSoft系统一起存储在遗留系统中的数据。文件类有助于创建遗留系统和应用程序引擎程序都支持的平面文件。

An Application Engine program running on the application server uses a file object to read the file sent from the legacy system and to translate it so that the file can update affected PeopleSoft application tables. For the PeopleSoft system and the legacy system to communicate, you first must construct a file object that both systems can use to insert and read data.

在应用程序服务器上运行的应用程序引擎程序使用文件对象来读取从旧系统发送的文件并对其进行转换,以便该文件可以更新受影响的PeopleSoft应用程序表。为了让PeopleSoft系统和旧系统进行通信,首先必须构造一个文件对象,这两个系统都可以使用该对象来插入和读取数据。

Attain rowset and record access for a file using a file layout definition. You create the file layout definition in Application Designer, and it acts as a template for the file that both systems read from and write to. This file layout definition simplifies reading, writing, and manipulating complex transaction data with PeopleCode.

使用文件布局定义获得文件的行集和记录访问权限。您可以在应用程序设计器中创建文件布局定义,它充当两个系统都可读写的文件的模板。这个文件布局定义简化了使用PeopleCode读取、写入和操作复杂事务数据的过程。

Generally, use the file class and Application Engine combination when you cannot implement the PeopleSoft Integration Broker solution.

通常,当您无法实现PeopleSoft Integration Broker解决方案时,请使用文件类和应用程序引擎的组合。

Related Links

“Understanding File Layout” (PeopleCode API Reference)

相关链接"理解文件布局"(PeopleCode API参考)

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值