public interface EntityInstrumentationMetadata
Modifier and Type | Method and Description |
---|---|
FieldInterceptor |
extractInterceptor(Object entity)
Extract the field interceptor instance from the instrumented entity.
|
String |
getEntityName()
The name of the entity to which this metadata applies.
|
FieldInterceptor |
injectInterceptor(Object entity,
String entityName,
Set uninitializedFieldNames,
SessionImplementor session)
Build and inject a field interceptor instance into the instrumented entity.
|
boolean |
isInstrumented()
Has the entity class been bytecode instrumented?
|
String getEntityName()
boolean isInstrumented()
true
indicates the entity class is instrumented for Hibernate use; false
indicates it is notFieldInterceptor injectInterceptor(Object entity, String entityName, Set uninitializedFieldNames, SessionImplementor session) throws NotInstrumentedException
entity
- The entity into which built interceptor should be injectedentityName
- The name of the entityuninitializedFieldNames
- The name of fields marked as lazysession
- The session to which the entity instance belongs.NotInstrumentedException
- Thrown if isInstrumented()
returns false
FieldInterceptor extractInterceptor(Object entity) throws NotInstrumentedException
entity
- The entity from which to extract the interceptorNotInstrumentedException
- Thrown if isInstrumented()
returns false
Copyright © 2016 JBoss by Red Hat. All rights reserved.