org.broadleafcommerce.common.util.dao
Class DynamicDaoHelperImpl

java.lang.Object
  extended by org.broadleafcommerce.common.util.dao.DynamicDaoHelperImpl
All Implemented Interfaces:
DynamicDaoHelper

public class DynamicDaoHelperImpl
extends Object
implements DynamicDaoHelper


Field Summary
static Object LOCK_OBJECT
           
static Map<Class<?>,Class<?>[]> POLYMORPHIC_ENTITY_CACHE
           
static Map<Class<?>,Class<?>[]> POLYMORPHIC_ENTITY_CACHE_WO_EXCLUSIONS
           
 
Constructor Summary
DynamicDaoHelperImpl()
           
 
Method Summary
 Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass, org.hibernate.SessionFactory sessionFactory, boolean includeUnqualifiedPolymorphicEntities, boolean useCache)
           
 Map<String,Object> getIdMetadata(Class<?> entityClass, org.hibernate.ejb.HibernateEntityManager entityManager)
           
 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)
           
 boolean isExcludeClassFromPolymorphism(Class<?> clazz)
           
 Class<?>[] sortEntities(Class<?> ceilingClass, List<Class<?>> entities)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCK_OBJECT

public static final Object LOCK_OBJECT

POLYMORPHIC_ENTITY_CACHE

public static final Map<Class<?>,Class<?>[]> POLYMORPHIC_ENTITY_CACHE

POLYMORPHIC_ENTITY_CACHE_WO_EXCLUSIONS

public static final Map<Class<?>,Class<?>[]> POLYMORPHIC_ENTITY_CACHE_WO_EXCLUSIONS
Constructor Detail

DynamicDaoHelperImpl

public DynamicDaoHelperImpl()
Method Detail

getAllPolymorphicEntitiesFromCeiling

public Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass,
                                                       org.hibernate.SessionFactory sessionFactory,
                                                       boolean includeUnqualifiedPolymorphicEntities,
                                                       boolean useCache)
Specified by:
getAllPolymorphicEntitiesFromCeiling in interface DynamicDaoHelper

sortEntities

public Class<?>[] sortEntities(Class<?> ceilingClass,
                               List<Class<?>> entities)
Specified by:
sortEntities in interface DynamicDaoHelper

isExcludeClassFromPolymorphism

public boolean isExcludeClassFromPolymorphism(Class<?> clazz)
Specified by:
isExcludeClassFromPolymorphism in interface DynamicDaoHelper

getIdMetadata

public Map<String,Object> getIdMetadata(Class<?> entityClass,
                                        org.hibernate.ejb.HibernateEntityManager entityManager)
Specified by:
getIdMetadata in interface DynamicDaoHelper

getPropertyNames

public List<String> getPropertyNames(Class<?> entityClass,
                                     org.hibernate.ejb.HibernateEntityManager entityManager)
Specified by:
getPropertyNames in interface DynamicDaoHelper

getPropertyTypes

public List<org.hibernate.type.Type> getPropertyTypes(Class<?> entityClass,
                                                      org.hibernate.ejb.HibernateEntityManager entityManager)
Specified by:
getPropertyTypes in interface DynamicDaoHelper

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory(org.hibernate.ejb.HibernateEntityManager entityManager)
Specified by:
getSessionFactory in interface DynamicDaoHelper


Copyright © 2013. All Rights Reserved.