This interface isolates the code that actually does the enhancement from the underlying context in which the enhancement is being performed.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true indicates that the field is enhanced so that for bi-directional persistent fields
the association is managed, i.e. the associations are automatically set; false indicates that
the management is handled by the user.The field to check. field)Should we manage association of bi-directional persistent attributes for this field? |
| public boolean | Returns: true indicates that dirty checking should be in-lined within the entity; false
indicates it should not. In-lined is more easily serializable and probably more performant.The descriptor of the class to check. classDescriptor)
Deprecated
for removal. Will be removed without replacement. See HHH-15641
Should we in-line dirty checking for persistent attributes for this class?
|
| public boolean | Returns: true indicates that any direct access to fields of entities should be routed to the enhanced
getter / setter method.The descriptor of the class to check. classDescriptor)Should we enhance field access to entities from this class? |
| public ClassLoader | Returns: The class loader that the enhancer can use.Obtain access to the ClassLoader that can be used to load Class references. |
| public boolean | Returns: true/falseThe class to check classDescriptor)
Deprecated
for removal. Will be removed without replacement. See HHH-15641
Does the given class define any lazy loadable attributes?
|
| public boolean | Returns: true if the class is an embeddable/component; false otherwise.The descriptor of the class to check. classDescriptor)Does the given class name represent an embeddable/component class? |
| public boolean | |
| public boolean | Returns: true if the class is an entity; false otherwise.The descriptor of the class to check. classDescriptor)Does the given class descriptor represent an entity class? |
| public boolean | Returns: true if the field is lazy loadable; false otherwise.The field to check field)Determine if a field is lazy loadable. |
| public boolean | |
| public boolean | Returns: true if the class is a mapped super class; false otherwise.The descriptor of the class to check. classDescriptor)Does the given class name represent a MappedSuperclass class? |
| public boolean | Returns: true if the field is ; false otherwise.The field reference. ctField)Does the field represent persistent state? |
| public UnloadedField[] | Returns: The ordered references.The persistent field references. persistentFields)For fields which are persistent (according to |
| public void |
| doBiDirectionalAssociationManagement | back to summary |
|---|---|
| public boolean doBiDirectionalAssociationManagement(UnloadedField field) Should we manage association of bi-directional persistent attributes for this field?
| |
| doDirtyCheckingInline | back to summary |
|---|---|
| public boolean doDirtyCheckingInline(UnloadedClass classDescriptor)
Deprecated for removal. Will be removed without replacement. See HHH-15641 Should we in-line dirty checking for persistent attributes for this class?
| |
| doExtendedEnhancement | back to summary |
|---|---|
| public boolean doExtendedEnhancement(UnloadedClass classDescriptor) Should we enhance field access to entities from this class?
| |
| getLoadingClassLoader | back to summary |
|---|---|
| public ClassLoader getLoadingClassLoader() Obtain access to the ClassLoader that can be used to load Class references. In JPA SPI terms, this
should be a "temporary class loader" as defined by
| |
| hasLazyLoadableAttributes | back to summary |
|---|---|
| public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor)
Deprecated for removal. Will be removed without replacement. See HHH-15641 Does the given class define any lazy loadable attributes?
| |
| isCompositeClass | back to summary |
|---|---|
| public boolean isCompositeClass(UnloadedClass classDescriptor) Does the given class name represent an embeddable/component class?
| |
| isDiscoveredType | back to summary |
|---|---|
| public boolean isDiscoveredType(UnloadedClass classDescriptor) | |
| isEntityClass | back to summary |
|---|---|
| public boolean isEntityClass(UnloadedClass classDescriptor) Does the given class descriptor represent an entity class?
| |
| isLazyLoadable | back to summary |
|---|---|
| public boolean isLazyLoadable(UnloadedField field) Determine if a field is lazy loadable.
| |
| isMappedCollection | back to summary |
|---|---|
public boolean isMappedCollection(UnloadedField field)
| |
| isMappedSuperclassClass | back to summary |
|---|---|
| public boolean isMappedSuperclassClass(UnloadedClass classDescriptor) Does the given class name represent a MappedSuperclass class?
| |
| isPersistentField | back to summary |
|---|---|
| public boolean isPersistentField(UnloadedField ctField) Does the field represent persistent state? Persistent fields will be "enhanced". may be better to perform basic checks in the caller (non-static, etc) and call out with just the Class name and field name...
| |
| order | back to summary |
|---|---|
| public UnloadedField[] order(UnloadedField[] persistentFields) For fields which are persistent (according to
| |
| registerDiscoveredType | back to summary |
|---|---|
| public void registerDiscoveredType(UnloadedClass classDescriptor, Type. | |