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 boolean
doBiDirectionalAssociationManagement(UnloadedField field)
Should we manage association of bi-directional persistent attributes for this field?boolean
doDirtyCheckingInline(UnloadedClass classDescriptor)
Should we in-line dirty checking for persistent attributes for this class?boolean
doExtendedEnhancement(UnloadedClass classDescriptor)
Should we enhance field access to entities from this class?boolean
hasLazyLoadableAttributes(UnloadedClass classDescriptor)
Does the given class define any lazy loadable attributes?boolean
isLazyLoadable(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:EnhancementContext
Should we manage association of bi-directional persistent attributes for this field?- Specified by:
doBiDirectionalAssociationManagement
in interfaceEnhancementContext
- Overrides:
doBiDirectionalAssociationManagement
in classDefaultEnhancementContext
- Parameters:
field
- The field to check.- Returns:
- true
-
doDirtyCheckingInline
public boolean doDirtyCheckingInline(UnloadedClass classDescriptor)
Description copied from interface:EnhancementContext
Should we in-line dirty checking for persistent attributes for this class?- Specified by:
doDirtyCheckingInline
in interfaceEnhancementContext
- Overrides:
doDirtyCheckingInline
in classDefaultEnhancementContext
- Parameters:
classDescriptor
- The descriptor of the class to check.- Returns:
- true
-
doExtendedEnhancement
public boolean doExtendedEnhancement(UnloadedClass classDescriptor)
Description copied from interface:EnhancementContext
Should we enhance field access to entities from this class?- Specified by:
doExtendedEnhancement
in interfaceEnhancementContext
- Overrides:
doExtendedEnhancement
in classDefaultEnhancementContext
- Parameters:
classDescriptor
- The descriptor of the class to check.- Returns:
- false
-
hasLazyLoadableAttributes
public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor)
Description copied from interface:EnhancementContext
Does the given class define any lazy loadable attributes?- Specified by:
hasLazyLoadableAttributes
in interfaceEnhancementContext
- Overrides:
hasLazyLoadableAttributes
in classDefaultEnhancementContext
- Parameters:
classDescriptor
- The class to check- Returns:
- true
-
isLazyLoadable
public boolean isLazyLoadable(UnloadedField field)
Description copied from interface:EnhancementContext
Determine if a field is lazy loadable.- Specified by:
isLazyLoadable
in interfaceEnhancementContext
- Overrides:
isLazyLoadable
in classDefaultEnhancementContext
- Parameters:
field
- The field to check- Returns:
- true
-
-