Class EntityHelper
- java.lang.Object
-
- de.xima.fc.e2e.containerresources.setup.clientmarshal.impl.EntityHelper
-
public final class EntityHelper extends Object
Internal helper for working with entities.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static de.xima.cmn.criteria.FilterCriterion
createContextFilter(Class<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entityClass, de.xima.fc.e2e.containerresources.setup.clientmarshal.impl.IEntityContextData data, boolean ignoreMissingContext)
static String
findAttributeName(Class<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entityClass, Class<?> expectedType, String... candidates)
static Class<?>
getEntityClass(de.xima.cmn.dao.interfaces.IEntity<?> entity)
static Class<?>
getEntityClass(Class<?> type)
static com.google.gson.reflect.TypeToken<?>
getEntityType(com.google.gson.reflect.TypeToken<?> type)
static Map<Class<?>,Set<de.xima.cmn.dao.interfaces.IEntity<?>>>
groupByClass(Iterable<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entities)
static Set<de.xima.cmn.dao.interfaces.IEntity<?>>
groupedToSet(Map<Class<?>,? extends Iterable<? extends de.xima.cmn.dao.interfaces.IEntity<?>>> entities)
static Set<de.xima.cmn.dao.interfaces.IEntity<?>>
toSet(Iterable<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entities)
-
-
-
Method Detail
-
getEntityClass
public static Class<?> getEntityClass(de.xima.cmn.dao.interfaces.IEntity<?> entity)
-
createContextFilter
public static de.xima.cmn.criteria.FilterCriterion createContextFilter(Class<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entityClass, de.xima.fc.e2e.containerresources.setup.clientmarshal.impl.IEntityContextData data, boolean ignoreMissingContext)
-
findAttributeName
public static String findAttributeName(Class<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entityClass, Class<?> expectedType, String... candidates)
-
getEntityType
public static com.google.gson.reflect.TypeToken<?> getEntityType(com.google.gson.reflect.TypeToken<?> type)
-
groupByClass
public static Map<Class<?>,Set<de.xima.cmn.dao.interfaces.IEntity<?>>> groupByClass(Iterable<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entities)
-
groupedToSet
public static Set<de.xima.cmn.dao.interfaces.IEntity<?>> groupedToSet(Map<Class<?>,? extends Iterable<? extends de.xima.cmn.dao.interfaces.IEntity<?>>> entities)
-
-