public class DynamicDaoHelperImpl extends Object implements DynamicDaoHelper
Modifier and Type | Field and Description |
---|---|
static String |
JAVASSIST_PROXY_KEY_PHRASE |
static Object |
LOCK_OBJECT |
static Map<Class<?>,Class<?>[]> |
POLYMORPHIC_ENTITY_CACHE |
static Map<Class<?>,Class<?>[]> |
POLYMORPHIC_ENTITY_CACHE_WO_EXCLUSIONS |
Constructor and Description |
---|
DynamicDaoHelperImpl() |
Modifier and Type | Method and Description |
---|---|
Class<?>[] |
getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass,
org.hibernate.SessionFactory sessionFactory,
boolean includeUnqualifiedPolymorphicEntities,
boolean useCache) |
Serializable |
getIdentifier(Object entity,
javax.persistence.EntityManager em) |
Serializable |
getIdentifier(Object entity,
org.hibernate.Session session) |
Field |
getIdField(Class<?> clazz,
javax.persistence.EntityManager em) |
Field |
getIdField(Class<?> clazz,
org.hibernate.Session session) |
Map<String,Object> |
getIdMetadata(Class<?> entityClass,
org.hibernate.ejb.HibernateEntityManager entityManager) |
static Class<?> |
getNonProxyImplementationClassIfNecessary(Class<?> candidate) |
List<String> |
getPropertyNames(Class<?> entityClass,
org.hibernate.ejb.HibernateEntityManager entityManager) |
List<org.hibernate.type.Type> |
getPropertyTypes(Class<?> entityClass,
org.hibernate.ejb.HibernateEntityManager entityManager) |
org.hibernate.SessionFactory |
getSessionFactory(org.hibernate.ejb.HibernateEntityManager entityManager) |
Class<?>[] |
getUpDownInheritance(Class<?> testClass,
org.hibernate.SessionFactory sessionFactory,
boolean includeUnqualifiedPolymorphicEntities,
boolean useCache,
EJB3ConfigurationDao ejb3ConfigurationDao) |
boolean |
isExcludeClassFromPolymorphism(Class<?> clazz) |
Class<?>[] |
sortEntities(Class<?> ceilingClass,
List<Class<?>> entities) |
public static final Object LOCK_OBJECT
public static final Map<Class<?>,Class<?>[]> POLYMORPHIC_ENTITY_CACHE_WO_EXCLUSIONS
public static final String JAVASSIST_PROXY_KEY_PHRASE
public static Class<?> getNonProxyImplementationClassIfNecessary(Class<?> candidate)
public Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass, org.hibernate.SessionFactory sessionFactory, boolean includeUnqualifiedPolymorphicEntities, boolean useCache)
getAllPolymorphicEntitiesFromCeiling
in interface DynamicDaoHelper
public Class<?>[] getUpDownInheritance(Class<?> testClass, org.hibernate.SessionFactory sessionFactory, boolean includeUnqualifiedPolymorphicEntities, boolean useCache, EJB3ConfigurationDao ejb3ConfigurationDao)
getUpDownInheritance
in interface DynamicDaoHelper
public Class<?>[] sortEntities(Class<?> ceilingClass, List<Class<?>> entities)
sortEntities
in interface DynamicDaoHelper
public boolean isExcludeClassFromPolymorphism(Class<?> clazz)
isExcludeClassFromPolymorphism
in interface DynamicDaoHelper
public Map<String,Object> getIdMetadata(Class<?> entityClass, org.hibernate.ejb.HibernateEntityManager entityManager)
getIdMetadata
in interface DynamicDaoHelper
public List<String> getPropertyNames(Class<?> entityClass, org.hibernate.ejb.HibernateEntityManager entityManager)
getPropertyNames
in interface DynamicDaoHelper
public List<org.hibernate.type.Type> getPropertyTypes(Class<?> entityClass, org.hibernate.ejb.HibernateEntityManager entityManager)
getPropertyTypes
in interface DynamicDaoHelper
public org.hibernate.SessionFactory getSessionFactory(org.hibernate.ejb.HibernateEntityManager entityManager)
getSessionFactory
in interface DynamicDaoHelper
public Serializable getIdentifier(Object entity, javax.persistence.EntityManager em)
getIdentifier
in interface DynamicDaoHelper
public Serializable getIdentifier(Object entity, org.hibernate.Session session)
getIdentifier
in interface DynamicDaoHelper
public Field getIdField(Class<?> clazz, javax.persistence.EntityManager em)
getIdField
in interface DynamicDaoHelper
public Field getIdField(Class<?> clazz, org.hibernate.Session session)
getIdField
in interface DynamicDaoHelper
Copyright © 2017. All rights reserved.