DataModel.getTypedValueAt

Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.

This method is similar to gda.data_model.DataModel.getValueAt, except that it also allows one to specify the expected #GType of the value to get: if the data model returned a #GValue of a type different than the expected one, then this method returns null and an error code.

Note: the same limitations and usage instructions apply as for gda.data_model.DataModel.getValueAt.

Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.

interface DataModel
getTypedValueAt

Parameters

col int

a valid column number.

row int

a valid row number.

expectedType gobject.types.GType

the expected data type of the returned value

nullok bool

if TRUE, then NULL values (value of type GDA_TYPE_NULL) will not generate any error

Return Value

Type: gobject.value.Value

a #GValue containing the value stored in the given position, or null on error (out-of-bound position, wrong data type, etc).

Throws