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