|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.tuple.entity.NonPojoInstrumentationMetadata
public class NonPojoInstrumentationMetadata
Constructor Summary | |
---|---|
NonPojoInstrumentationMetadata(String entityName)
|
Method Summary | |
---|---|
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonPojoInstrumentationMetadata(String entityName)
Method Detail |
---|
public String getEntityName()
EntityInstrumentationMetadata
getEntityName
in interface EntityInstrumentationMetadata
public boolean isInstrumented()
EntityInstrumentationMetadata
isInstrumented
in interface EntityInstrumentationMetadata
true
indicates the entity class is instrumented for Hibernate use; false
indicates it is notpublic FieldInterceptor extractInterceptor(Object entity) throws NotInstrumentedException
EntityInstrumentationMetadata
extractInterceptor
in interface EntityInstrumentationMetadata
entity
- The entity from which to extract the interceptor
NotInstrumentedException
- Thrown if EntityInstrumentationMetadata.isInstrumented()
returns false
public FieldInterceptor injectInterceptor(Object entity, String entityName, Set uninitializedFieldNames, SessionImplementor session) throws NotInstrumentedException
EntityInstrumentationMetadata
injectInterceptor
in interface EntityInstrumentationMetadata
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 EntityInstrumentationMetadata.isInstrumented()
returns false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |