DatabaseCycleFile class | QSYS API Reference Guide

Database file that participates in the RPG program Cycle. When a Cycle file record is read from the Database, the file buffer values are not immediately copied into the program fields. The RPG cycle explicitly issues a LoadBuffer call at the proper time within the cycle to load the buffer into the program fields.

Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll

Inheritance: Object –> FileBase –> DatabaseFileBase –> DatabaseFile

Properties

Type Name Description
Boolean IsPrimary Gets value indicating that file is a Primary file, otherwise is Secondary.

Methods

Signature Description
LoadBuffer() Copies data from the cycle file buffer to the program fields.
open(Database, AccessMode, Boolean, Boolean, ServerCursors) Opens the file.
Read() Reads the next record into the cycle file buffer.

void LoadBuffer()

Copies data from the cycle file buffer to the program fields.

void LoadBuffer()

void open(Database database, AccessMode accessMode, bool isCacheWrite, bool isCommit, ServerCursors serverCursor)

Opens the file.

void open(Database database, AccessMode accessMode, bool isCacheWrite, bool isCommit, ServerCursors serverCursor)

Parameters

Type Parameter name Description
Database database Database object.
AccessMode accessMode Access mode.
Boolean isCacheWrite True is writes are to be cached.
Boolean isCommit True if file participates in commitment control.
ServerCursors serverCursor Server cursor type.

void Read()

Reads the next record into the cycle file buffer.

void Read()