- java.lang.Object
-
- io.github.mmm.entity.id.LongInstantId.Factory
-
- All Implemented Interfaces:
IdFactory<Long,Instant,LongInstantId<?>>
,IdMapper
- Enclosing class:
- LongInstantId<E>
public static final class LongInstantId.Factory extends Object implements IdFactory<Long,Instant,LongInstantId<?>>
IdFactory
implementation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> LongInstantId<E>
create(Class<E> type, Long id, Instant version)
Class<LongInstantId<?>>
getIdClass()
<E> LongInstantId<E>
unmarshall(Class<E> type, String id, String version)
-
-
-
Method Detail
-
getIdClass
public Class<LongInstantId<?>> getIdClass()
- Specified by:
getIdClass
in interfaceIdFactory<Long,Instant,LongInstantId<?>>
- Returns:
- the
Class
of the managedId
implementation.
-
unmarshall
public <E> LongInstantId<E> unmarshall(Class<E> type, String id, String version)
- Specified by:
unmarshall
in interfaceIdMapper
- Type Parameters:
E
- type of the identified entity.- Parameters:
type
- theentity type
.id
- theprimary key as string
.version
- theversion as string
. May benull
.- Returns:
- the parsed
Id
.
-
create
public <E> LongInstantId<E> create(Class<E> type, Long id, Instant version)
- Specified by:
create
in interfaceIdFactory<Long,Instant,LongInstantId<?>>
- 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.
-
-