jt400 RecordFormat 对象是否可以通过指向带有路径的 System i db 文件来创建?
我可以创建 RecordFormat 并添加字段定义,但我只想说“创建一个 RecordFormat,就像那个库中的那个文件一样”
在查看 RecordFormat 和 Record 类时,我没有看到类似的东西。
jt400 RecordFormat 对象是否可以通过指向带有路径的 System i db 文件来创建?
我可以创建 RecordFormat 并添加字段定义,但我只想说“创建一个 RecordFormat,就像那个库中的那个文件一样”
在查看 RecordFormat 和 Record 类时,我没有看到类似的东西。
查看AS400FileRecordDescription类,特别是retrieveRecordFormat方法。
AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
as400, path);
RecordFormat[] formats = recordDescription.retrieveRecordFormat();