The Row class describes and manages strings that contain delimited fields of data. Implementing strings as Row objects improves code abstraction, readability, and maintainability. The Row class provides a natural interface between ResultSets and the application logic. Other notable features of Row objects include:
The properties of a Row object can be updated (e.g., set RowObject.lnm = "JONES").
References to Row object properties return the class of the property.
Passing Row objects into functions is more efficient than passing ResultSet objects, because Row objects have a more efficient implementation.
Row objects can be copied into Record<Class> objects using the Row.toRecord method.
Row objects can be assigned to Strings, and String functions can be performed on them (this requires the {String} cast to access the String methods). PSL operators can be used on Row objects.
Row objects accept the property indirection syntax: RowObject.@variable.
Row objects are comprised of one or multiple properties (or columns). Each column must have an associated name and class. The values of the Row object properties must be stored in their internal value (e.g., Date columns are stored as Julian dates).
Property templates provide "formal" declarations of delimited strings as returned values in utilities.
Refer to the Instantiating a Row Class Object section for additional information.
Ancestor |
|
Descendants |
None |
Methods |
Description |
Returns a list of columns in a Row object. | |
Returns the delimiter character used by the Row object. | |
Sets the properties (columns) of a Row object. | |
Sets the delimiter of a Row object. | |
Copies the properties of the Row object into a Record object. | |
Transforms the Row object into a formatted string. |