Class EntityHelper


  • public final class EntityHelper
    extends Object
    Internal helper for working with entities.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getEntityClass

        public static Class<?> getEntityClass​(Class<?> type)
      • 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)
      • toSet

        public static Set<de.xima.cmn.dao.interfaces.IEntity<?>> toSet​(Iterable<? extends de.xima.cmn.dao.interfaces.IEntity<?>> entities)