public class PersistentAttributesEnhancer extends Enhancer
enhancementContext
Constructor and Description |
---|
PersistentAttributesEnhancer(EnhancementContext context) |
Modifier and Type | Method and Description |
---|---|
void |
enhance(javassist.CtClass managedCtClass) |
protected void |
enhanceAttributesAccess(javassist.CtClass managedCtClass,
IdentityHashMap<String,org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.PersistentAttributeAccessMethods> attributeDescriptorMap) |
void |
extendedEnhancement(javassist.CtClass aCtClass)
Replace access to fields of entities (for example, entity.field) with a call to the enhanced getter / setter
(in this example, entity.$$_hibernate_read_field()).
|
protected javassist.CtMethod |
generateFieldReader(javassist.CtClass managedCtClass,
javassist.CtField persistentField,
AttributeTypeDescriptor typeDescriptor) |
protected javassist.CtMethod |
generateFieldWriter(javassist.CtClass managedCtClass,
javassist.CtField persistentField,
AttributeTypeDescriptor typeDescriptor) |
addInterceptorHandling, enhance, enhanceComposite, loadCtClassFromClass
public PersistentAttributesEnhancer(EnhancementContext context)
public void enhance(javassist.CtClass managedCtClass)
protected javassist.CtMethod generateFieldReader(javassist.CtClass managedCtClass, javassist.CtField persistentField, AttributeTypeDescriptor typeDescriptor)
protected javassist.CtMethod generateFieldWriter(javassist.CtClass managedCtClass, javassist.CtField persistentField, AttributeTypeDescriptor typeDescriptor)
protected void enhanceAttributesAccess(javassist.CtClass managedCtClass, IdentityHashMap<String,org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.PersistentAttributeAccessMethods> attributeDescriptorMap)
public void extendedEnhancement(javassist.CtClass aCtClass)
aCtClass
- Class to enhance (not an entity class).Copyright © 2017 JBoss by Red Hat. All rights reserved.