public class LazyAttributeLoadingInterceptor extends Object implements PersistentAttributeInterceptor, LazyPropertyInitializer.InterceptorImplementor
Constructor and Description |
---|
LazyAttributeLoadingInterceptor(String entityName,
Set<String> lazyFields,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowLoadOutsideTransaction() |
void |
attributeInitialized(String name) |
Object |
fetchAttribute(Object target,
String attributeName)
Fetches the lazy attribute.
|
Set<String> |
getInitializedLazyAttributeNames() |
SessionImplementor |
getLinkedSession() |
String |
getSessionFactoryUuid() |
boolean |
hasAnyUninitializedAttributes() |
protected Object |
intercept(Object target,
String attributeName,
Object value) |
boolean |
isAttributeLoaded(String fieldName) |
protected Object |
loadAttribute(Object target,
String attributeName) |
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(SessionImplementor session) |
String |
toString() |
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) |
public LazyAttributeLoadingInterceptor(String entityName, Set<String> lazyFields, SessionImplementor session)
public Object fetchAttribute(Object target, String attributeName)
public final void setSession(SessionImplementor session)
public final void unsetSession()
public boolean isAttributeLoaded(String fieldName)
public boolean hasAnyUninitializedAttributes()
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
public SessionImplementor getLinkedSession()
public boolean allowLoadOutsideTransaction()
public String getSessionFactoryUuid()
public void attributeInitialized(String name)
attributeInitialized
in interface LazyPropertyInitializer.InterceptorImplementor
public Set<String> getInitializedLazyAttributeNames()
getInitializedLazyAttributeNames
in interface LazyPropertyInitializer.InterceptorImplementor
Copyright © 2017 JBoss by Red Hat. All rights reserved.