Package io.datarouter.model.entity
Class EntityTool
java.lang.Object
io.datarouter.model.entity.EntityTool
public class EntityTool extends Object
-
Constructor Summary
Constructors Constructor Description EntityTool() -
Method Summary
Modifier and Type Method Description static <EK extends EntityKey<EK>, E extends Entity<EK>>
Map<EK,E>getByKey(Collection<E> entities)static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>, D extends Databean<PK, D>>
NavigableMap<EK,List<D>>getDatabeansByEntityKey(Iterable<D> databeans)static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>>
NavigableMap<EK,List<PK>>getPrimaryKeysByEntityKey(Iterable<PK> pks)
-
Constructor Details
-
EntityTool
public EntityTool()
-
-
Method Details
-
getByKey
public static <EK extends EntityKey<EK>, E extends Entity<EK>> Map<EK,E> getByKey(Collection<E> entities) -
getPrimaryKeysByEntityKey
public static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>> NavigableMap<EK,List<PK>> getPrimaryKeysByEntityKey(Iterable<PK> pks) -
getDatabeansByEntityKey
public static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>, D extends Databean<PK, D>> NavigableMap<EK,List<D>> getDatabeansByEntityKey(Iterable<D> databeans)
-