public class GenericDaoUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getEntity(IEntityContext ec,
UUID uuid,
Object context,
Class<T> entityClass)
Gets the entity with the given UUID in the given context
|
static Long |
getIdFromUUID(IEntityContext ec,
UUID uuid,
Object context,
Class<?> entityClass)
Translates an entity UUID to its corresponding ID
|
static List<Long> |
getIdsFromUUIDs(IEntityContext ec,
List<UUID> uuids,
Object context,
Class<?> entityClass)
Translates the list of UUIDs to a list of IDs
|
static List<Long> |
getIdsFromUUIDStrings(IEntityContext ec,
List<String> strUuids,
Object context,
Class<?> entityClass)
Translates the list of UUID strings to a list of IDs
|
public static final List<Long> getIdsFromUUIDStrings(IEntityContext ec, List<String> strUuids, Object context, Class<?> entityClass)
ec - IEntityContext to usestrUuids - List entity UUID stringscontext - Object entity to use as contextentityClass - Class of the entitiesList of entity IDspublic static final List<Long> getIdsFromUUIDs(IEntityContext ec, List<UUID> uuids, Object context, Class<?> entityClass)
ec - IEntityContext to useuuids - List entity UUIDscontext - Object entity to use as contextentityClass - Class of the entitiesList of entity IDspublic static final Long getIdFromUUID(IEntityContext ec, UUID uuid, Object context, Class<?> entityClass)
ec - IEntityContext to useuuid - String entity UUIDcontext - Object entity to use as contextentityClass - Class of the entityLong ID of the entitypublic static final <T> T getEntity(IEntityContext ec, UUID uuid, Object context, Class<T> entityClass)
T - ec - IEntityContext to useuuid - String entity UUIDcontext - Object entity to use as contextentityClass - Class of the entityCopyright © 2019 XIMA MEDIA GmbH. All rights reserved.