Package de.xima.fc.utils
Class HibernateUtils
- java.lang.Object
 - 
- de.xima.fc.utils.HibernateUtils
 
 
- 
public class HibernateUtils extends Object
Utitlity class for dealing withHibernateobjects- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinitialize(Object proxy)static <T> voidinitialize(List<T> objects, Class<T> clazz)static <T> voidinitialize(T object, Class<T> clazz)static <T> List<T>unproxyList(List<T> objects, Class<T> clazz)Unproxies any of the given objects that areHibernateProxys and returns all objectsstatic <T> TunproxyObject(T object, Class<T> clazz)Unproxies the object if it is aHibernateProxyand returns the unproxied object 
 - 
 
- 
- 
Method Detail
- 
unproxyList
public static final <T> List<T> unproxyList(List<T> objects, Class<T> clazz)
Unproxies any of the given objects that areHibernateProxys and returns all objects- Type Parameters:
 T- type of the objects- Parameters:
 objects- to unproxyclazz- of the objects- Returns:
 Listof all the objects with all the objects unproxied
 
- 
unproxyObject
public static final <T> T unproxyObject(T object, Class<T> clazz)Unproxies the object if it is aHibernateProxyand returns the unproxied object- Type Parameters:
 T- type of the objects- Parameters:
 object- to unproxyclazz- of the object- Returns:
 - unproxied value or the original if the object is no 
HibernateProxy 
 
- 
initialize
public static final <T> void initialize(T object, Class<T> clazz) 
- 
initialize
public static final void initialize(Object proxy)
 
 - 
 
 -