RecordFields (class)
public abstract RecordFields
Import from: CURL.GUI.STANDARD. Defined in package CURL.DATA-ACCESS.BASE.
Direct Known Subclasses: DefaultRecordFields, EmptyRecordFields

A class used to describe the collection of RecordFields in a RecordSet.


Constructors
default:Construct an instance of this collection.
factory public {RecordFields.default ...:RecordField}:RecordFields
Properties
size:The number of RecordFields in this collection.
accessor public abstract RecordFields.size:int
Methods
get:Returns a specific field in the collection.
public {RecordFields.get name:String}:RecordField
get-by-index:Get a field in the collection.
public abstract {RecordFields.get-by-index index:int}:RecordField
get-if-exists:Returns a specific field in the collection.
public {RecordFields.get-if-exists
    name:String
}:(field:RecordField, found?:bool)
get-index:Find the index position of a field.
public abstract {RecordFields.get-index
    name:String,
    error-if-missing?:bool = true
}:int
to-Iterator:Returns an Iterator-of which produces each RecordField.
public abstract {RecordFields.to-Iterator}:{Iterator-of RecordField}
Methods inherited from Object: object-describe, object-describe-for-debugging, object-serialize

Constructor Details
default (factory)
public {RecordFields.default ...:RecordField}:RecordFields

Construct an instance of this collection.

...: may contain multiple RecordFields.


Property Details
size (accessor)
accessor public abstract RecordFields.size:int

The number of RecordFields in this collection.



Method Details
get (method)
public {RecordFields.get name:String}:RecordField

Returns a specific field in the collection.

name: String. The name of the field sought. A RecordFieldNotFound exception will be thrown if a field with this name cannot be found.

Overriding

Not typically overridden. Override RecordFields.get-by-index or RecordFields.get-index instead.


get-by-index (method)
public abstract {RecordFields.get-by-index index:int}:RecordField

Get a field in the collection.



get-if-exists (method)
public {RecordFields.get-if-exists
    name:String
}:(field:RecordField, found?:bool)

Returns a specific field in the collection.

name: String. The name of the field sought.

Returns

This method returns two values, a RecordField and a bool. If the second return value is true, the first return value is the field sought. Otherwise it is undefined.

Overriding

Not typically overridden. Override RecordFields.get-by-index or RecordFields.get-index instead.


get-index (method)
public abstract {RecordFields.get-index
    name:String,
    error-if-missing?:bool = true
}:int

Find the index position of a field.

name: a String representing the name of the field in the collection.
error-if-missing?: bool. If true, and no field with name can be found, a RecordFieldNotFound exception will be thrown.

Returns

The index of the field, or -1 if none found.


to-Iterator (method)
public abstract {RecordFields.to-Iterator}:{Iterator-of RecordField}

Returns an Iterator-of which produces each RecordField.