public abstract class AbstractInterceptor extends Object implements SessionAssociableInterceptor
| Constructor and Description |
|---|
AbstractInterceptor(String entityName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLoadOutsideTransaction() |
String |
getEntityName() |
SharedSessionContractImplementor |
getLinkedSession() |
String |
getSessionFactoryUuid() |
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 |
readByte(Object obj,
String name,
byte oldValue) |
char |
readChar(Object obj,
String name,
char oldValue) |
double |
readDouble(Object obj,
String name,
double oldValue) |
float |
readFloat(Object obj,
String name,
float oldValue) |
int |
readInt(Object obj,
String name,
int oldValue) |
long |
readLong(Object obj,
String name,
long oldValue) |
Object |
readObject(Object obj,
String name,
Object oldValue) |
short |
readShort(Object obj,
String name,
short oldValue) |
void |
setSession(SharedSessionContractImplementor session) |
void |
unsetSession() |
boolean |
writeBoolean(Object obj,
String name,
boolean oldValue,
boolean newValue) |
byte |
writeByte(Object obj,
String name,
byte oldValue,
byte newValue) |
char |
writeChar(Object obj,
String name,
char oldValue,
char newValue) |
double |
writeDouble(Object obj,
String name,
double oldValue,
double newValue) |
float |
writeFloat(Object obj,
String name,
float oldValue,
float newValue) |
int |
writeInt(Object obj,
String name,
int oldValue,
int newValue) |
long |
writeLong(Object obj,
String name,
long oldValue,
long newValue) |
Object |
writeObject(Object obj,
String name,
Object oldValue,
Object newValue) |
short |
writeShort(Object obj,
String name,
short oldValue,
short newValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattributeInitialized, getInitializedLazyAttributeNamespublic AbstractInterceptor(String entityName)
public String getEntityName()
public SharedSessionContractImplementor getLinkedSession()
getLinkedSession in interface SessionAssociableInterceptorpublic void setSession(SharedSessionContractImplementor session)
setSession in interface SessionAssociableInterceptorpublic void unsetSession()
unsetSession in interface SessionAssociableInterceptorpublic boolean allowLoadOutsideTransaction()
allowLoadOutsideTransaction in interface SessionAssociableInterceptorpublic String getSessionFactoryUuid()
getSessionFactoryUuid in interface SessionAssociableInterceptorprotected abstract Object handleRead(Object target, String attributeName, Object value)
protected abstract Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue)
public boolean readBoolean(Object obj, String name, boolean oldValue)
readBoolean in interface PersistentAttributeInterceptorpublic boolean writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)
writeBoolean in interface PersistentAttributeInterceptorpublic byte readByte(Object obj, String name, byte oldValue)
readByte in interface PersistentAttributeInterceptorpublic byte writeByte(Object obj, String name, byte oldValue, byte newValue)
writeByte in interface PersistentAttributeInterceptorpublic char readChar(Object obj, String name, char oldValue)
readChar in interface PersistentAttributeInterceptorpublic char writeChar(Object obj, String name, char oldValue, char newValue)
writeChar in interface PersistentAttributeInterceptorpublic short readShort(Object obj, String name, short oldValue)
readShort in interface PersistentAttributeInterceptorpublic short writeShort(Object obj, String name, short oldValue, short newValue)
writeShort in interface PersistentAttributeInterceptorpublic int readInt(Object obj, String name, int oldValue)
readInt in interface PersistentAttributeInterceptorpublic int writeInt(Object obj, String name, int oldValue, int newValue)
writeInt in interface PersistentAttributeInterceptorpublic float readFloat(Object obj, String name, float oldValue)
readFloat in interface PersistentAttributeInterceptorpublic float writeFloat(Object obj, String name, float oldValue, float newValue)
writeFloat in interface PersistentAttributeInterceptorpublic double readDouble(Object obj, String name, double oldValue)
readDouble in interface PersistentAttributeInterceptorpublic double writeDouble(Object obj, String name, double oldValue, double newValue)
writeDouble in interface PersistentAttributeInterceptorpublic long readLong(Object obj, String name, long oldValue)
readLong in interface PersistentAttributeInterceptorpublic long writeLong(Object obj, String name, long oldValue, long newValue)
writeLong in interface PersistentAttributeInterceptorpublic Object readObject(Object obj, String name, Object oldValue)
readObject in interface PersistentAttributeInterceptorpublic Object writeObject(Object obj, String name, Object oldValue, Object newValue)
writeObject in interface PersistentAttributeInterceptorCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.