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