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, wait
attributeInitialized, getInitializedLazyAttributeNames
public AbstractInterceptor(String entityName)
public String getEntityName()
public SharedSessionContractImplementor getLinkedSession()
getLinkedSession
in interface SessionAssociableInterceptor
public void setSession(SharedSessionContractImplementor session)
setSession
in interface SessionAssociableInterceptor
public void unsetSession()
unsetSession
in interface SessionAssociableInterceptor
public boolean allowLoadOutsideTransaction()
allowLoadOutsideTransaction
in interface SessionAssociableInterceptor
public String getSessionFactoryUuid()
getSessionFactoryUuid
in interface SessionAssociableInterceptor
protected 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 PersistentAttributeInterceptor
public boolean writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)
writeBoolean
in interface PersistentAttributeInterceptor
public byte readByte(Object obj, String name, byte oldValue)
readByte
in interface PersistentAttributeInterceptor
public byte writeByte(Object obj, String name, byte oldValue, byte newValue)
writeByte
in interface PersistentAttributeInterceptor
public char readChar(Object obj, String name, char oldValue)
readChar
in interface PersistentAttributeInterceptor
public char writeChar(Object obj, String name, char oldValue, char newValue)
writeChar
in interface PersistentAttributeInterceptor
public short readShort(Object obj, String name, short oldValue)
readShort
in interface PersistentAttributeInterceptor
public short writeShort(Object obj, String name, short oldValue, short newValue)
writeShort
in interface PersistentAttributeInterceptor
public int readInt(Object obj, String name, int oldValue)
readInt
in interface PersistentAttributeInterceptor
public int writeInt(Object obj, String name, int oldValue, int newValue)
writeInt
in interface PersistentAttributeInterceptor
public float readFloat(Object obj, String name, float oldValue)
readFloat
in interface PersistentAttributeInterceptor
public float writeFloat(Object obj, String name, float oldValue, float newValue)
writeFloat
in interface PersistentAttributeInterceptor
public double readDouble(Object obj, String name, double oldValue)
readDouble
in interface PersistentAttributeInterceptor
public double writeDouble(Object obj, String name, double oldValue, double newValue)
writeDouble
in interface PersistentAttributeInterceptor
public long readLong(Object obj, String name, long oldValue)
readLong
in interface PersistentAttributeInterceptor
public long writeLong(Object obj, String name, long oldValue, long newValue)
writeLong
in interface PersistentAttributeInterceptor
public Object readObject(Object obj, String name, Object oldValue)
readObject
in interface PersistentAttributeInterceptor
public Object writeObject(Object obj, String name, Object oldValue, Object newValue)
writeObject
in interface PersistentAttributeInterceptor
Copyright © 2019 JBoss by Red Hat. All rights reserved.