RecordIOManager bean

Use the RecordIOManager bean to retrieve records from a database or to add, update, or delete records.

With RecordIOManager, you can do the following:

Note: RecordIOManager lets you manipulate the data of a particular record format of a database file (a physical or logical file), using IBM i record level access. However, adding, updating, or deleting a record in a logical file is prohibited; only data retrieval is allowed in a logical file.
Note: RecordIOManager uses the IBM Toolbox record-level access classes, which do not support logical join files or null key fields.

To join two database files, use the joinDatabase(String[] foreignKeys, RecordIOManager database) method. Both database files must have the FILEACCESS_KEYED file access type.

RecordIOManager supports the usual security and control capabilities of database management. You can do the following:

If you want to filter records in a database, you can define your own check condition class. This check condition class must extend AbstractCondition and implement the isConditionValid(com.ibm.as400.access.Record record) method, which returns a boolean value to determine whether the record can be accessed. If the return value is true, then the record can be accessed. Otherwise, the record will be skipped.


Feedback