Class EnhancerTestContext
- java.lang.Object
-
- org.hibernate.bytecode.enhance.spi.DefaultEnhancementContext
-
- org.hibernate.testing.bytecode.enhancement.EnhancerTestContext
-
- All Implemented Interfaces:
EnhancementContext
public class EnhancerTestContext extends DefaultEnhancementContext
Enhancement context used in tests
-
-
Constructor Summary
Constructors Constructor Description EnhancerTestContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoBiDirectionalAssociationManagement(UnloadedField field)Should we manage association of bi-directional persistent attributes for this field?booleandoDirtyCheckingInline(UnloadedClass classDescriptor)Should we in-line dirty checking for persistent attributes for this class?booleandoExtendedEnhancement(UnloadedClass classDescriptor)Should we enhance field access to entities from this class?booleanhasLazyLoadableAttributes(UnloadedClass classDescriptor)Does the given class define any lazy loadable attributes?booleanisLazyLoadable(UnloadedField field)Determine if a field is lazy loadable.-
Methods inherited from class org.hibernate.bytecode.enhance.spi.DefaultEnhancementContext
getLoadingClassLoader, isCompositeClass, isEntityClass, isMappedCollection, isMappedSuperclassClass, isPersistentField, order
-
-
-
-
Method Detail
-
doBiDirectionalAssociationManagement
public boolean doBiDirectionalAssociationManagement(UnloadedField field)
Description copied from interface:EnhancementContextShould we manage association of bi-directional persistent attributes for this field?- Specified by:
doBiDirectionalAssociationManagementin interfaceEnhancementContext- Overrides:
doBiDirectionalAssociationManagementin classDefaultEnhancementContext- Parameters:
field- The field to check.- Returns:
- true
-
doDirtyCheckingInline
public boolean doDirtyCheckingInline(UnloadedClass classDescriptor)
Description copied from interface:EnhancementContextShould we in-line dirty checking for persistent attributes for this class?- Specified by:
doDirtyCheckingInlinein interfaceEnhancementContext- Overrides:
doDirtyCheckingInlinein classDefaultEnhancementContext- Parameters:
classDescriptor- The descriptor of the class to check.- Returns:
- true
-
doExtendedEnhancement
public boolean doExtendedEnhancement(UnloadedClass classDescriptor)
Description copied from interface:EnhancementContextShould we enhance field access to entities from this class?- Specified by:
doExtendedEnhancementin interfaceEnhancementContext- Overrides:
doExtendedEnhancementin classDefaultEnhancementContext- Parameters:
classDescriptor- The descriptor of the class to check.- Returns:
- false
-
hasLazyLoadableAttributes
public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor)
Description copied from interface:EnhancementContextDoes the given class define any lazy loadable attributes?- Specified by:
hasLazyLoadableAttributesin interfaceEnhancementContext- Overrides:
hasLazyLoadableAttributesin classDefaultEnhancementContext- Parameters:
classDescriptor- The class to check- Returns:
- true
-
isLazyLoadable
public boolean isLazyLoadable(UnloadedField field)
Description copied from interface:EnhancementContextDetermine if a field is lazy loadable.- Specified by:
isLazyLoadablein interfaceEnhancementContext- Overrides:
isLazyLoadablein classDefaultEnhancementContext- Parameters:
field- The field to check- Returns:
- true
-
-