EntityRepository

interface EntityRepository<T, I>

defines the interface that should be provided by all repositories dealing with a single Entity.

Functions

addOrUpdate
Link copied to clipboard
js
abstract suspend fun addOrUpdate(entity: T): T
adds or updates an entity
delete
Link copied to clipboard
js
abstract suspend fun delete(entity: T)
deletes an entity
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
load
Link copied to clipboard
js
abstract suspend fun load(id: I): T
loads an entity
toString
Link copied to clipboard
js
open fun toString(): String

Inheritors

LocalStorageEntity
Link copied to clipboard
RestEntity
Link copied to clipboard