core
/
dev.fritz2.repositories
/
EntityRepository
js
Entity
Repository
interface
EntityRepository
<
T
,
I
>
Content copied to clipboard
defines the interface that should be provided by all repositories dealing with a single Entity.
Functions
Inheritors
Functions
addOrUpdate
Link copied to clipboard
js
abstract suspend fun
addOrUpdate
(entity:
T
):
T
Content copied to clipboard
adds or updates an entity
delete
Link copied to clipboard
js
abstract suspend fun
delete
(entity:
T
)
Content copied to clipboard
deletes an entity
load
Link copied to clipboard
js
abstract suspend fun
load
(id:
I
):
T
Content copied to clipboard
loads an entity
Inheritors
LocalStorageEntity
Link copied to clipboard
RestEntity
Link copied to clipboard