Record Class

The Record class defines objects based on database table definitions. This class contains all the methods used by the database tables (i.e., methods for the RecordDEP, RecordLN, RecordDTJ tables, etc.). The methods in this class are available to all associated Record classes for tables (e.g., RecordDEP).

The following syntax declares a type Record object:

type RecordTABLE objectName = Db.getRecord(...)

The properties of objects created in this class are defined by the column names in the database table definitions (e.g., cif.name, acn.bal where cif and acn are objectNames that belong to RecordCIF and RecordACN classes, respectively).

Ancestor

Reference

Descendants

RecordACN
RecordCIF

Methods

Description

bypassSave

Saves object data directly to the database bypassing all filers including update triggers and journal file definitions.

compare

Compares two objects of the same record class.

copy

Creates a new Record object that is a copy of another Record object of the same class.

fromArray

Deprecated. Copies data from an M array into a PSL object.

getMode

Determines whether the specified record exists.

isChanged

Determines whether a column has been changed, and whether the change was performed by a user entry or by a programmer applying a business rule.

overlay

Moves user-supplied information from an array into an object.

save

Saves a record to the database, invoking filer logic (triggers, journals, etc.).

setAuditFlag

Sets the Update History flag for the specified object. Activates the Update History flag to use a filer routine.

setCreateOnly

Informs the compiler that the object being used cannot update a record.

setMode

Sets the mode to insert or update.

setUpdateOnly

Informs the compiler that the object can only be used to update a record.

toArray

Deprecated. Copies a PSL object into an M array.

toString

Deprecated. Returns a generic string representation of an object.