public class LazyAttributeLoader extends Object implements PersistentAttributeInterceptor
| Constructor and Description |
|---|
LazyAttributeLoader(SessionImplementor session,
Set<String> lazyFields,
String entityName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLoadOutsideTransaction() |
Object |
fetchAttribute(Object target,
String attributeName)
Fetches the lazy attribute.
|
String[] |
getiInitializedFields() |
SessionImplementor |
getLinkedSession() |
String |
getSessionFactoryUuid() |
protected Object |
intercept(Object target,
String attributeName,
Object value) |
boolean |
isAttributeLoaded(String fieldName) |
boolean |
isUninitialized() |
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 |
setLoaded(String attributeName) |
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 LazyAttributeLoader(SessionImplementor session, Set<String> lazyFields, String entityName)
public Object fetchAttribute(Object target, String attributeName)
public final void setSession(SessionImplementor session)
public final void unsetSession()
public boolean isAttributeLoaded(String fieldName)
public boolean isUninitialized()
public void setLoaded(String attributeName)
public String[] getiInitializedFields()
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 PersistentAttributeInterceptorpublic SessionImplementor getLinkedSession()
public boolean allowLoadOutsideTransaction()
public String getSessionFactoryUuid()
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.