public final class ProxyHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class |
getReferentClass(Object entity)
Returns the class backing this entity
|
static boolean |
isFetched(Object entity)
Checks if the proxied entity has been fetched.
|
static boolean |
isProxied(Class<?> clazz)
Checks if the Class passed is a ProxiedReference
|
static boolean |
isProxy(Object entity)
Checks if the Java reference passed is a proxy
|
static boolean |
isUnFetched(Object entity)
Checks if the proxied entity has been fetched.
|
static <T> T |
unwrap(T entity)
If proxied, returns the unwrapped entity.
|
public static <T> T unwrap(T entity)
T - the type of the entityentity - the entity to checkpublic static boolean isProxy(Object entity)
entity - the entity to checkpublic static boolean isProxied(Class<?> clazz)
clazz - the class to checkpublic static Class getReferentClass(Object entity)
entity - the entity to checkpublic static boolean isUnFetched(Object entity)
entity - the entity to checkpublic static boolean isFetched(Object entity)
entity - the entity to check