All Known Subinterfaces:
MutableRecordModel

public interface RecordModel
RecordV2 data model.

A read only model can be created from any RecordV2 object using the asModel method. The model then provides direct access to the fields within the data. Fields may be accessed either by explicitly specifying the record and field occurrence or by specifying a key of the form:

 recordName(recordIndex).fieldName(fieldIndex)
 
Indexes start from 0 and if omitted then 0 is assumed. The record name may also be omitted, in which case the first record definition. This form of addressing is useful when there is only one record definition.

So valid keys would be:

Address(4).AddressLine(3) The 4th AddressLine occurrence within the 5th Address record
Address.Name The first (or only) Name field within the first (or only) Address record
AddressLine(1) The 2nd AddressLine field within the first (or only) record
Name The first (or only) Name field within the first (or only) record

The recordCount(java.lang.String) and fieldCount(java.lang.String, int, java.lang.String) methods are useful for determining the actual number of occurrences of variable multiplicity items.

Since:
6.0
Author:
DiffusionData Limited
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an immutable RecordV2 object generated from the model.
    int
    fieldCount(String recordName, int recordIndex, String fieldName)
    Returns the actual number of occurrences of a named field within a specified record occurrences.
    get(String key)
    Get a field value.
    get(String recordName, int recordIndex, String fieldName, int fieldIndex)
    Get a field value.
    int
    recordCount(String recordName)
    Returns the actual number of occurrences of a named record.