Module io.github.mmm.entity
Package io.github.mmm.entity.id
Interface IdFactory<I,V extends Comparable<?>,ID extends AbstractId<?,I,V>>
-
- Type Parameters:
I
- type of theprimary key
.V
- type of theversion
.ID
- type ofId
implementation.
- All Superinterfaces:
IdMapper
- All Known Implementing Classes:
LongInstantId.Factory
,LongVersionId.Factory
,StringInstantId.Factory
,StringVersionId.Factory
,UuidInstantId.Factory
,UuidVersionId.Factory
public interface IdFactory<I,V extends Comparable<?>,ID extends AbstractId<?,I,V>> extends IdMapper
Factory to #create- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E> AbstractId<E,I,V>
create(Class<E> type, I id, V version)
Class<ID>
getIdClass()
-
Methods inherited from interface io.github.mmm.entity.id.IdMapper
unmarshall
-
-
-
-
Method Detail
-
create
<E> AbstractId<E,I,V> create(Class<E> type, I id, V version)
- Type Parameters:
E
- type of the identified entity.- Parameters:
type
- theentity type
.id
- theprimary key
.version
- theversion
. May benull
.- Returns:
- the
Id
for the given values.
-
-