Skip to main content
Version: Current

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 an 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 a view to GenesisSet. This is the plain representation of view fields
getoperator fun get(field: String): Any?Gets the provided field value