public class ProxyUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxyUtils.CollectionField |
static class |
ProxyUtils.CollectionType |
Constructor and Description |
---|
ProxyUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
deproxy(java.lang.Object o)
de-proxies the passed object
o if it is an initialized proxy object,
otherwise o is returned. |
static java.lang.Object |
deproxyOrNull(java.lang.Object o)
de-proxies the passed object
o if it is an initialized proxy object,
otherwise null is returned. |
static ProxyUtils.CollectionField |
getCollectionField(org.hibernate.collection.spi.PersistentCollection pc) |
static java.lang.Object |
getCollectionType(java.lang.Object obj,
java.lang.Class<?> clazz) |
static java.lang.Object |
getObject(org.hibernate.collection.spi.PersistentCollection pc) |
static boolean |
isUninitializedProxy(java.lang.Object o) |
static void |
setRoleValueInOwner(java.lang.Object owner,
java.lang.String role,
java.lang.Object value) |
public static java.lang.Object getCollectionType(java.lang.Object obj, java.lang.Class<?> clazz)
public static java.lang.Object getObject(org.hibernate.collection.spi.PersistentCollection pc)
public static ProxyUtils.CollectionField getCollectionField(org.hibernate.collection.spi.PersistentCollection pc)
public static java.lang.Object deproxy(java.lang.Object o)
o
if it is an initialized proxy object,
otherwise o
is returned.public static java.lang.Object deproxyOrNull(java.lang.Object o)
o
if it is an initialized proxy object,
otherwise null
is returned.public static boolean isUninitializedProxy(java.lang.Object o)
public static void setRoleValueInOwner(java.lang.Object owner, java.lang.String role, java.lang.Object value)
Copyright © 2007-2020 EDIT. All Rights Reserved.