Skip to main content
Version: Previous

Data types - DbEntity

DbEntity is the common interface implemented by table entities and view entities.

The DbEntity methods are described below:

NameSignatureDescription
toDbRecordfun toDbRecord(entity: E): DbRecordConverts entity to DbRecord
toGenesisSetFormattedfun toGenesisSetFormatted(entity: E, configs: Collection<ColumnConfig>? = null): GenesisSetconverts a view to GenesisSet and applies any formatter/aliases assigned to the fields
toGenesisSetfun toGenesisSet(entity: E, columns: Collection<String>): GenesisSetconverts view to GenesisSet. This is the plain representation of view fields
getoperator fun get(field: String): Any?gets the provided field value