public class DefaultEnhancementContext extends Object implements EnhancementContext
| Constructor and Description | 
|---|
DefaultEnhancementContext()  | 
| Modifier and Type | Method and 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? 
 | 
ClassLoader | 
getLoadingClassLoader()
Obtain access to the ClassLoader that can be used to load Class references. 
 | 
boolean | 
hasLazyLoadableAttributes(UnloadedClass classDescriptor)
Does the given class define any lazy loadable attributes? 
 | 
boolean | 
isCompositeClass(UnloadedClass classDescriptor)
look for @Embeddable annotation 
 | 
boolean | 
isEntityClass(UnloadedClass classDescriptor)
look for @Entity annotation 
 | 
boolean | 
isLazyLoadable(UnloadedField field)
Determine if a field is lazy loadable. 
 | 
boolean | 
isMappedCollection(UnloadedField field)
look for @OneToMany, @ManyToMany and @ElementCollection annotations 
 | 
boolean | 
isMappedSuperclassClass(UnloadedClass classDescriptor)
look for @MappedSuperclass annotation 
 | 
boolean | 
isPersistentField(UnloadedField ctField)
look for @Transient annotation 
 | 
UnloadedField[] | 
order(UnloadedField[] persistentFields)
keep the same order. 
 | 
public ClassLoader getLoadingClassLoader()
EnhancementContextPersistenceUnitInfo.getNewTempClassLoader()getLoadingClassLoader in interface EnhancementContextpublic boolean isEntityClass(UnloadedClass classDescriptor)
isEntityClass in interface EnhancementContextclassDescriptor - The descriptor of the class to check.true if the class is an entity; false otherwise.public boolean isCompositeClass(UnloadedClass classDescriptor)
isCompositeClass in interface EnhancementContextclassDescriptor - The descriptor of the class to check.true if the class is an embeddable/component; false otherwise.public boolean isMappedSuperclassClass(UnloadedClass classDescriptor)
isMappedSuperclassClass in interface EnhancementContextclassDescriptor - The descriptor of the class to check.true if the class is a mapped super class; false otherwise.public boolean doBiDirectionalAssociationManagement(UnloadedField field)
EnhancementContextdoBiDirectionalAssociationManagement in interface EnhancementContextfield - The field to check.public boolean doDirtyCheckingInline(UnloadedClass classDescriptor)
EnhancementContextdoDirtyCheckingInline in interface EnhancementContextclassDescriptor - The descriptor of the class to check.public boolean doExtendedEnhancement(UnloadedClass classDescriptor)
EnhancementContextdoExtendedEnhancement in interface EnhancementContextclassDescriptor - The descriptor of the class to check.public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor)
EnhancementContexthasLazyLoadableAttributes in interface EnhancementContextclassDescriptor - The class to checkpublic boolean isLazyLoadable(UnloadedField field)
EnhancementContextisLazyLoadable in interface EnhancementContextfield - The field to checkpublic boolean isPersistentField(UnloadedField ctField)
isPersistentField in interface EnhancementContextctField - The field reference.true if the field is ; false otherwise.public boolean isMappedCollection(UnloadedField field)
isMappedCollection in interface EnhancementContextfield - the field to checktrue if the field is mappedpublic UnloadedField[] order(UnloadedField[] persistentFields)
order in interface EnhancementContextpersistentFields - The persistent field references.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.