public class NonPojoInstrumentationMetadata extends java.lang.Object implements EntityInstrumentationMetadata
| Constructor and Description |
|---|
NonPojoInstrumentationMetadata(java.lang.String entityName) |
| Modifier and Type | Method and Description |
|---|---|
FieldInterceptor |
extractInterceptor(java.lang.Object entity)
Extract the field interceptor instance from the instrumented entity.
|
java.lang.String |
getEntityName()
The name of the entity to which this metadata applies.
|
FieldInterceptor |
injectInterceptor(java.lang.Object entity,
java.lang.String entityName,
java.util.Set uninitializedFieldNames,
SessionImplementor session)
Build and inject a field interceptor instance into the instrumented entity.
|
boolean |
isInstrumented()
Has the entity class been bytecode instrumented?
|
public NonPojoInstrumentationMetadata(java.lang.String entityName)
public java.lang.String getEntityName()
EntityInstrumentationMetadatagetEntityName in interface EntityInstrumentationMetadatapublic boolean isInstrumented()
EntityInstrumentationMetadataisInstrumented in interface EntityInstrumentationMetadatatrue indicates the entity class is instrumented for Hibernate use; false
indicates it is notpublic FieldInterceptor extractInterceptor(java.lang.Object entity) throws NotInstrumentedException
EntityInstrumentationMetadataextractInterceptor in interface EntityInstrumentationMetadataentity - The entity from which to extract the interceptorNotInstrumentedException - Thrown if EntityInstrumentationMetadata.isInstrumented() returns falsepublic FieldInterceptor injectInterceptor(java.lang.Object entity, java.lang.String entityName, java.util.Set uninitializedFieldNames, SessionImplementor session) throws NotInstrumentedException
EntityInstrumentationMetadatainjectInterceptor in interface EntityInstrumentationMetadataentity - 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 EntityInstrumentationMetadata.isInstrumented() returns falseCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.