Class EnhancerTestContext
java.lang.Object
org.hibernate.bytecode.enhance.spi.DefaultEnhancementContext
org.hibernate.testing.bytecode.enhancement.EnhancerTestContext
- All Implemented Interfaces:
EnhancementContext
Enhancement context used in tests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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, isDiscoveredType, isEntityClass, isMappedCollection, isMappedSuperclassClass, isPersistentField, order, registerDiscoveredType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.bytecode.enhance.spi.EnhancementContext
getUnsupportedEnhancementStrategy
-
Constructor Details
-
EnhancerTestContext
public EnhancerTestContext()
-
-
Method Details
-
doBiDirectionalAssociationManagement
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
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
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
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
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
-