DataRecord

Interface

A data record represents a record in a data source.

Subclasses: FeatureDataRecord

Properties

PropertyTypeNotes

A reference of the data source object that has this record.

dataSource

dataSource: DataSource

A reference of the data source object that has this record.

Methods

MethodReturnsNotes
clone(deep?)

Create a clone of the data record object. Use shallow clone by default. If deep is true, will use deep clone.

any

The data is a plain object. The format is {key: value}, and the key is "jimuFieldName".

getFieldValue(jimuFieldName)
any

Return the value of a specific field.

any

Return formatted record.

getFormattedFieldValue(jimuFieldName, intl)
string

Return the formatted value of a specific field.

IGeometry

Return geometry of the record.

string

Return id of the record.

setId(id)
void

Set id of the record.

any

Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName".

clone

clone(deep?boolean): DataRecord

Create a clone of the data record object. Use shallow clone by default. If deep is true, will use deep clone.

Parameters
ParameterType
deep
boolean
Returns 
DataRecord

getData

getData(): any

The data is a plain object. The format is {key: value}, and the key is "jimuFieldName".

The data before mapping use this schema: {fieldName: value}. We need to return this schema: {jimuFieldName: value}.

Returns 
any

getFieldValue

getFieldValue(jimuFieldNamestring): any

Return the value of a specific field.

Parameters
ParameterType
jimuFieldName
string
Returns 
any

getFormattedData

getFormattedData(intlIntlShape): any

Return formatted record.

Parameters
ParameterType
intl
IntlShape
Returns 
any

getFormattedFieldValue

getFormattedFieldValue(jimuFieldNamestring, intlIntlShape): string

Return the formatted value of a specific field.

Parameters
ParameterType
jimuFieldName
string
intl
IntlShape
Returns 
string

getGeometry

getGeometry(): IGeometry

Return geometry of the record.

Returns 
IGeometry

getId

getId(): string

Return id of the record.

Returns 
string

setId

setId(idstring): void

Set id of the record.

Parameters
ParameterType
id
string
Returns 
void

toJson

toJson(): any

Return the data in JSON format, which is used to serialize data, and the key is "jimuFieldName".

Returns 
any

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.