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