public interface EnhancementContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
doBiDirectionalAssociationManagement(javassist.CtField field)
Should we manage association of bi-directional persistent attributes for this field?
|
boolean |
doDirtyCheckingInline(javassist.CtClass classDescriptor)
Should we in-line dirty checking for persistent attributes for this class?
|
boolean |
doExtendedEnhancement(javassist.CtClass classDescriptor)
Should we enhance field access to entities from this class?
|
ClassLoader |
getLoadingClassLoader()
Obtain access to the ClassLoader that can be used to load Class references.
|
boolean |
hasLazyLoadableAttributes(javassist.CtClass classDescriptor)
Does the given class define any lazy loadable attributes?
|
boolean |
isCompositeClass(javassist.CtClass classDescriptor)
Does the given class name represent an embeddable/component class?
|
boolean |
isEntityClass(javassist.CtClass classDescriptor)
Does the given class descriptor represent a entity class?
|
boolean |
isLazyLoadable(javassist.CtField field)
Determine if a field is lazy loadable.
|
boolean |
isMappedCollection(javassist.CtField field) |
boolean |
isMappedSuperclassClass(javassist.CtClass classDescriptor)
Does the given class name represent an MappedSuperclass class?
|
boolean |
isPersistentField(javassist.CtField ctField)
Does the field represent persistent state? Persistent fields will be "enhanced".
|
javassist.CtField[] |
order(javassist.CtField[] persistentFields)
For fields which are persistent (according to
isPersistentField(javassist.CtField)), determine the corresponding ordering
maintained within the Hibernate metamodel. |
ClassLoader getLoadingClassLoader()
PersistenceUnitInfo.getNewTempClassLoader()boolean isEntityClass(javassist.CtClass classDescriptor)
classDescriptor - The descriptor of the class to check.true if the class is an entity; false otherwise.boolean isCompositeClass(javassist.CtClass classDescriptor)
classDescriptor - The descriptor of the class to check.true if the class is an embeddable/component; false otherwise.boolean isMappedSuperclassClass(javassist.CtClass classDescriptor)
classDescriptor - The descriptor of the class to check.true if the class is an mapped super class; false otherwise.boolean doBiDirectionalAssociationManagement(javassist.CtField field)
field - The field to check.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.boolean doDirtyCheckingInline(javassist.CtClass classDescriptor)
classDescriptor - The descriptor of the class to check.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.boolean doExtendedEnhancement(javassist.CtClass classDescriptor)
classDescriptor - The descriptor of the class to check.true indicates that any direct access to fields of entities should be routed to the enhanced
getter / setter method.boolean hasLazyLoadableAttributes(javassist.CtClass classDescriptor)
classDescriptor - The class to checkboolean isPersistentField(javassist.CtField ctField)
ctField - The field reference.true if the field is ; false otherwise.javassist.CtField[] order(javassist.CtField[] persistentFields)
isPersistentField(javassist.CtField)), determine the corresponding ordering
maintained within the Hibernate metamodel.persistentFields - The persistent field references.boolean isLazyLoadable(javassist.CtField field)
field - The field to checktrue if the field is lazy loadable; false otherwise.boolean isMappedCollection(javassist.CtField field)
field - the field to checktrue if the field is mappedCopyright © 2017 JBoss by Red Hat. All rights reserved.