- java.lang.Object
-
- io.github.mmm.entity.id.StringInstantId.Factory
-
- All Implemented Interfaces:
IdFactory<String,Instant,StringInstantId<?>>
,IdMapper
- Enclosing class:
- StringInstantId<E>
public static class StringInstantId.Factory extends Object implements IdFactory<String,Instant,StringInstantId<?>>
IdFactory
implementation.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> StringInstantId<E>
create(Class<E> type, String id, Instant version)
Class<StringInstantId<?>>
getIdClass()
<E> StringInstantId<E>
unmarshall(Class<E> type, String id, String version)
-
-
-
Method Detail
-
getIdClass
public Class<StringInstantId<?>> getIdClass()
- Specified by:
getIdClass
in interfaceIdFactory<String,Instant,StringInstantId<?>>
- Returns:
- the
Class
of the managedId
implementation.
-
unmarshall
public <E> StringInstantId<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> StringInstantId<E> create(Class<E> type, String id, Instant version)
- Specified by:
create
in interfaceIdFactory<String,Instant,StringInstantId<?>>
- 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.
-
-