Data types - DbEntity
DbEntity
is the common interface implemented by table entities and view entities.
The DbEntity
methods are described below:
Name | Signature | Description |
---|---|---|
toDbRecord | fun toDbRecord(entity: E): DbRecord | Converts an entity to DbRecord |
toGenesisSetFormatted | fun toGenesisSetFormatted(entity: E, configs: Collection<ColumnConfig>? = null): GenesisSet | Converts a view to GenesisSet and applies any formatter/aliases assigned to the fields |
toGenesisSet | fun toGenesisSet(entity: E, columns: Collection<String>): GenesisSet | Converts a view to GenesisSet. This is the plain representation of view fields |
get | operator fun get(field: String): Any? | Gets the provided field value |