toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.agent.experimental.domain.mixin.support
/
AbstractMixinRepository
Abstract
Mixin
Repository
abstract
class
AbstractMixinRepository
<
ID
>
(
generateId
:
(
)
->
ID
)
:
MixinRepository
<
ID
>
Inheritors
InMemoryMixinRepository
Members
Members & Extensions
Constructors
Abstract
Mixin
Repository
Link copied to clipboard
constructor
(
generateId
:
(
)
->
ID
)
Functions
become
Link copied to clipboard
abstract
fun
<
E
:
MixinEnabledEntity
<
ID
>
,
T
>
become
(
e
:
E
,
t
:
T
,
type
:
Class
<
T
>
)
:
E
Create a mixin of the two types.
become
Link copied to clipboard
inline
fun
<
E
:
MixinEnabledEntity
<
ID
>
,
T
,
ID
>
MixinRepository
<
ID
>
.
become
(
e
:
E
,
t
:
T
)
:
E
find
By
Id
Link copied to clipboard
abstract
fun
<
E
:
MixinEnabledEntity
<
ID
>
>
findById
(
id
:
ID
,
type
:
Class
<
E
>
)
:
E
?
abstract
fun
<
E1
:
MixinEnabledEntity
<
ID
>
,
E2
:
E1
>
findById
(
id
:
ID
,
type1
:
Class
<
E1
>
,
type2
:
Class
<
E2
>
)
:
E2
?
find
By
Id
Link copied to clipboard
inline
fun
<
E1
:
MixinEnabledEntity
<
ID
>
,
E2
:
E1
,
ID
>
MixinRepository
<
ID
>
.
findById
(
id
:
ID
)
:
E2
?
save
Link copied to clipboard
open
override
fun
<
E
:
MixinEnabledEntity
<
ID
>
>
save
(
entity
:
E
)
:
E