- 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<?>>
IdFactoryimplementation.
-
-
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:
getIdClassin interfaceIdFactory<String,Instant,StringInstantId<?>>- Returns:
- the
Classof the managedIdimplementation.
-
unmarshall
public <E> StringInstantId<E> unmarshall(Class<E> type, String id, String version)
- Specified by:
unmarshallin 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:
createin 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
Idfor the given values.
-
-