public class PersistentAttributesEnhancer extends Enhancer
attributeInterceptableCtClass, attributeInterceptorCtClass, classPool, enhancementContext, entityEntryCtClass, managedCompositeCtClass, managedEntityCtClass
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()).
|
addInterceptorHandling, enhance, enhanceComposite
public PersistentAttributesEnhancer(EnhancementContext context)
public void enhance(javassist.CtClass managedCtClass)
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 © 2016 JBoss by Red Hat. All rights reserved.