public class BLCFieldUtils extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected EntityConfiguration | entityConfiguration | 
| static Map<String,Object> | FIELD_CACHE | 
| protected DynamicDaoHelper | helper | 
| protected boolean | includeUnqualifiedPolymorphicEntities | 
| static Object | NULL_FIELD | 
| protected boolean | useCache | 
| Constructor and Description | 
|---|
| BLCFieldUtils(boolean includeUnqualifiedPolymorphicEntities,
             boolean useCache,
             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 boolean includeUnqualifiedPolymorphicEntities
protected boolean useCache
protected EntityConfiguration entityConfiguration
protected DynamicDaoHelper helper
public BLCFieldUtils(boolean includeUnqualifiedPolymorphicEntities,
                     boolean useCache,
                     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 DynamicDaoHelperImplentityConfiguration - 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 - IllegalStateExceptionpublic Field getField(Class<?> clazz, String fieldName) throws IllegalStateException
clazz - fieldName - IllegalStateExceptionprotected Class<?> getClassForField(DynamicDaoHelper helper, String token, Field field, Class<?>[] entities)
Copyright © 2020. All rights reserved.