toggle menu
commons
3.1.0
jvm
switch theme
search in API
core
/
eth.likespro.commons.models
/
Repository
Repository
interface
Repository
<
Entity
:
Entity
<
ID
>
,
ID
:
Any
>
Members
Functions
count
Link copied to clipboard
abstract
suspend
fun
count
(
pagination
:
Pagination
?
=
null
)
:
Long
create
Link copied to clipboard
abstract
suspend
fun
create
(
entity
:
Entity
)
:
Entity
delete
Link copied to clipboard
abstract
suspend
fun
delete
(
id
:
ID
)
find
All
Link copied to clipboard
open
suspend
fun
findAll
(
)
:
List
<
Entity
>
abstract
suspend
fun
findAll
(
pagination
:
Pagination
)
:
List
<
Entity
>
find
By
Id
Link copied to clipboard
abstract
suspend
fun
findById
(
id
:
ID
)
:
Entity
?
is
Existing
Link copied to clipboard
abstract
suspend
fun
isExisting
(
id
:
ID
)
:
Boolean
update
Link copied to clipboard
abstract
suspend
fun
update
(
entity
:
Entity
)
:
Entity
?
upsert
Link copied to clipboard
abstract
suspend
fun
upsert
(
entity
:
Entity
)
:
Entity