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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract Object
handleRead
(Object target, String attributeName, Object value) Handle the case of reading an attribute.protected abstract Object
handleWrite
(Object target, String attributeName, Object oldValue, Object newValue) Handle the case of writing an attribute.boolean
readBoolean
(Object obj, String name, boolean oldValue) byte
char
double
readDouble
(Object obj, String name, double oldValue) float
int
long
readObject
(Object obj, String name, Object oldValue) short
void
void
boolean
writeBoolean
(Object obj, String name, boolean oldValue, boolean newValue) byte
char
double
writeDouble
(Object obj, String name, double oldValue, double newValue) float
writeFloat
(Object obj, String name, float oldValue, float newValue) int
long
writeObject
(Object obj, String name, Object oldValue, Object newValue) short
writeShort
(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, wait
Methods inherited from interface org.hibernate.engine.spi.PersistentAttributeInterceptor
attributeInitialized, getInitializedLazyAttributeNames, isAttributeLoaded
-
Constructor Details
-
AbstractInterceptor
-
-
Method Details
-
getEntityName
-
getLinkedSession
- Specified by:
getLinkedSession
in interfaceSessionAssociableInterceptor
-
unsetSession
public void unsetSession()- Specified by:
unsetSession
in interfaceSessionAssociableInterceptor
-
allowLoadOutsideTransaction
public boolean allowLoadOutsideTransaction()- Specified by:
allowLoadOutsideTransaction
in interfaceSessionAssociableInterceptor
-
getSessionFactoryUuid
- Specified by:
getSessionFactoryUuid
in 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:
readBoolean
in interfacePersistentAttributeInterceptor
-
writeBoolean
- Specified by:
writeBoolean
in interfacePersistentAttributeInterceptor
-
readByte
- Specified by:
readByte
in interfacePersistentAttributeInterceptor
-
writeByte
- Specified by:
writeByte
in interfacePersistentAttributeInterceptor
-
readChar
- Specified by:
readChar
in interfacePersistentAttributeInterceptor
-
writeChar
- Specified by:
writeChar
in interfacePersistentAttributeInterceptor
-
readShort
- Specified by:
readShort
in interfacePersistentAttributeInterceptor
-
writeShort
- Specified by:
writeShort
in interfacePersistentAttributeInterceptor
-
readInt
- Specified by:
readInt
in interfacePersistentAttributeInterceptor
-
writeInt
- Specified by:
writeInt
in interfacePersistentAttributeInterceptor
-
readFloat
- Specified by:
readFloat
in interfacePersistentAttributeInterceptor
-
writeFloat
- Specified by:
writeFloat
in interfacePersistentAttributeInterceptor
-
readDouble
- Specified by:
readDouble
in interfacePersistentAttributeInterceptor
-
writeDouble
- Specified by:
writeDouble
in interfacePersistentAttributeInterceptor
-
readLong
- Specified by:
readLong
in interfacePersistentAttributeInterceptor
-
writeLong
- Specified by:
writeLong
in interfacePersistentAttributeInterceptor
-
readObject
- Specified by:
readObject
in interfacePersistentAttributeInterceptor
-
writeObject
- Specified by:
writeObject
in interfacePersistentAttributeInterceptor
-