core
/
dev.fritz2.repositories
/
QueryRepository
js
Query
Repository
interface
QueryRepository
<
T
,
I
,
Q
>
Content copied to clipboard
defines the interface that should be provided by all repositories dealing with a list of Entities.
Functions
Inheritors
Functions
addOrUpdate
Link copied to clipboard
js
abstract suspend fun
addOrUpdate
(entities:
List
<
T
>, entity:
T
):
List
<
T
>
Content copied to clipboard
adds or updates an entity in the list
delete
Link copied to clipboard
js
abstract suspend fun
delete
(entities:
List
<
T
>, id:
I
):
List
<
T
>
Content copied to clipboard
delete one entity
abstract suspend fun
delete
(entities:
List
<
T
>, ids:
List
<
I
>):
List
<
T
>
Content copied to clipboard
delete multiple entities
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
query
Link copied to clipboard
js
abstract suspend fun
query
(query:
Q
):
List
<
T
>
Content copied to clipboard
runs a query
toString
Link copied to clipboard
js
open fun
toString
():
String
Content copied to clipboard
updateMany
Link copied to clipboard
js
abstract suspend fun
updateMany
(entities:
List
<
T
>, entitiesToUpdate:
List
<
T
>):
List
<
T
>
Content copied to clipboard
updates all entities in the list
Inheritors
LocalStorageQuery
Link copied to clipboard
RestQuery
Link copied to clipboard