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