Class AbstractInterceptor
java.lang.Object
org.hibernate.bytecode.enhance.spi.interceptor.AbstractInterceptor
- All Implemented Interfaces:
SessionAssociableInterceptor,LazyPropertyInitializer.InterceptorImplementor,PersistentAttributeInterceptor
- Direct Known Subclasses:
AbstractLazyLoadInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract ObjecthandleRead(Object target, String attributeName, Object value) Handle the case of reading an attribute.protected abstract ObjecthandleWrite(Object target, String attributeName, Object oldValue, Object newValue) Handle the case of writing an attribute.booleanreadBoolean(Object obj, String name, boolean oldValue) bytechardoublereadDouble(Object obj, String name, double oldValue) floatintlongreadObject(Object obj, String name, Object oldValue) shortvoidvoidbooleanwriteBoolean(Object obj, String name, boolean oldValue, boolean newValue) bytechardoublewriteDouble(Object obj, String name, double oldValue, double newValue) floatwriteFloat(Object obj, String name, float oldValue, float newValue) intlongwriteObject(Object obj, String name, Object oldValue, Object newValue) shortwriteShort(Object obj, String name, short oldValue, short newValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.engine.spi.PersistentAttributeInterceptor
attributeInitialized, getInitializedLazyAttributeNames, isAttributeLoaded
-
Constructor Details
-
AbstractInterceptor
-
-
Method Details
-
getEntityName
-
getLinkedSession
- Specified by:
getLinkedSessionin interfaceSessionAssociableInterceptor
-
unsetSession
public void unsetSession()- Specified by:
unsetSessionin interfaceSessionAssociableInterceptor
-
allowLoadOutsideTransaction
public boolean allowLoadOutsideTransaction()- Specified by:
allowLoadOutsideTransactionin interfaceSessionAssociableInterceptor
-
getSessionFactoryUuid
- Specified by:
getSessionFactoryUuidin interfaceSessionAssociableInterceptor
-
handleRead
Handle the case of reading an attribute. The result is what is returned to the caller -
handleWrite
protected abstract Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue) Handle the case of writing an attribute. The result is what is set as the entity state -
readBoolean
- Specified by:
readBooleanin interfacePersistentAttributeInterceptor
-
writeBoolean
- Specified by:
writeBooleanin interfacePersistentAttributeInterceptor
-
readByte
- Specified by:
readBytein interfacePersistentAttributeInterceptor
-
writeByte
- Specified by:
writeBytein interfacePersistentAttributeInterceptor
-
readChar
- Specified by:
readCharin interfacePersistentAttributeInterceptor
-
writeChar
- Specified by:
writeCharin interfacePersistentAttributeInterceptor
-
readShort
- Specified by:
readShortin interfacePersistentAttributeInterceptor
-
writeShort
- Specified by:
writeShortin interfacePersistentAttributeInterceptor
-
readInt
- Specified by:
readIntin interfacePersistentAttributeInterceptor
-
writeInt
- Specified by:
writeIntin interfacePersistentAttributeInterceptor
-
readFloat
- Specified by:
readFloatin interfacePersistentAttributeInterceptor
-
writeFloat
- Specified by:
writeFloatin interfacePersistentAttributeInterceptor
-
readDouble
- Specified by:
readDoublein interfacePersistentAttributeInterceptor
-
writeDouble
- Specified by:
writeDoublein interfacePersistentAttributeInterceptor
-
readLong
- Specified by:
readLongin interfacePersistentAttributeInterceptor
-
writeLong
- Specified by:
writeLongin interfacePersistentAttributeInterceptor
-
readObject
- Specified by:
readObjectin interfacePersistentAttributeInterceptor
-
writeObject
- Specified by:
writeObjectin interfacePersistentAttributeInterceptor
-