public class BLCFieldUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected EJB3ConfigurationDao |
ejb3ConfigurationDao |
protected EntityConfiguration |
entityConfiguration |
static Map<String,Object> |
FIELD_CACHE |
protected DynamicDaoHelper |
helper |
protected boolean |
includeUnqualifiedPolymorphicEntities |
static Object |
NULL_FIELD |
protected org.hibernate.SessionFactory |
sessionFactory |
protected boolean |
useCache |
Constructor and Description |
---|
BLCFieldUtils(org.hibernate.SessionFactory sessionFactory,
boolean includeUnqualifiedPolymorphicEntities,
boolean useCache,
EJB3ConfigurationDao ejb3ConfigurationDao,
EntityConfiguration entityConfiguration,
DynamicDaoHelper helper)
Initialize the utility with required resources
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getClassForField(DynamicDaoHelper helper,
String token,
Field field,
Class<?>[] entities) |
Field |
getField(Class<?> clazz,
String fieldName)
Retrieve the field for the class.
|
static Field |
getSingleField(Class<?> clazz,
String fieldName)
Retrieve the field for the class.
|
public static final Object NULL_FIELD
protected org.hibernate.SessionFactory sessionFactory
protected boolean includeUnqualifiedPolymorphicEntities
protected boolean useCache
protected EJB3ConfigurationDao ejb3ConfigurationDao
protected EntityConfiguration entityConfiguration
protected DynamicDaoHelper helper
public BLCFieldUtils(org.hibernate.SessionFactory sessionFactory, boolean includeUnqualifiedPolymorphicEntities, boolean useCache, EJB3ConfigurationDao ejb3ConfigurationDao, EntityConfiguration entityConfiguration, DynamicDaoHelper helper)
sessionFactory
- provides metadata about a domain classincludeUnqualifiedPolymorphicEntities
- include polymorphic variations that were excluded with AdminPresentationClass.excludeFromPolymorphism()
useCache
- use the polymorphic type list cache in DynamicDaoHelperImpl
ejb3ConfigurationDao
- provides additional metadata about a domain classentityConfiguration
- contains any explicitly defined entity types for the systemhelper
- helper class for retrieving polymorphic types for a ceiling domain classpublic static Field getSingleField(Class<?> clazz, String fieldName) throws IllegalStateException
clazz
- fieldName
- IllegalStateException
public Field getField(Class<?> clazz, String fieldName) throws IllegalStateException
clazz
- fieldName
- IllegalStateException
protected Class<?> getClassForField(DynamicDaoHelper helper, String token, Field field, Class<?>[] entities)
Copyright © 2019. All rights reserved.