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
equals
Link copied to clipboard
js
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
js
open fun
hashCode
():
Int
Content copied to clipboard
load
Link copied to clipboard
js
abstract suspend fun
load
(id:
I
):
T
Content copied to clipboard
loads an entity
toString
Link copied to clipboard
js
open fun
toString
():
String
Content copied to clipboard
Inheritors
LocalStorageEntity
Link copied to clipboard
RestEntity
Link copied to clipboard