org.hibernate.tool.instrument
Class BasicInstrumentationTask.CustomFieldFilter
java.lang.Object
org.hibernate.tool.instrument.BasicInstrumentationTask.CustomFieldFilter
- BasicInstrumentationTask
- FieldFilter
protected class BasicInstrumentationTask.CustomFieldFilter
extends java.lang.Object
boolean | shouldInstrumentField(String className, String fieldName) - Should this field definition be instrumented?
|
boolean | shouldTransformFieldAccess(String transformingClassName, String fieldOwnerClassName, String fieldName) - Should we instrument *access to* the given field.
|
shouldInstrumentField
public boolean shouldInstrumentField(String className,
String fieldName)
Should this field definition be instrumented?
- shouldInstrumentField in interface FieldFilter
className
- The name of the class currently being processedfieldName
- The name of the field being checked.
- True if we should instrument this field.
shouldTransformFieldAccess
public boolean shouldTransformFieldAccess(String transformingClassName,
String fieldOwnerClassName,
String fieldName)
- shouldTransformFieldAccess in interface FieldFilter
transformingClassName
- The class currently being transformed.fieldOwnerClassName
- The name of the class owning this field being checked.fieldName
- The name of the field being checked.
- True if this access should be transformed.