set

operator fun set(index: Int, newValue: Any?)

Sets the attribute at index. The value is converted when the composite is sent, not here, so nothing is checked against the attribute's type at this point.

Parameters

index

Zero-based index in declaration order.

newValue

The value to store.

Throws

COLUMN_NOT_FOUND if index is outside this composite's attributes.


operator fun set(columnName: String, newValue: Any?)

Sets the attribute named columnName.

Parameters

columnName

The attribute name, as declared in the database.

newValue

The value to store.

Throws

COLUMN_NOT_FOUND if this composite has no such attribute.