org.hibernate.search.util.impl
Class HibernateHelper

java.lang.Object
  extended by org.hibernate.search.util.impl.HibernateHelper

public final class HibernateHelper
extends Object

Author:
Emmanuel Bernard

Method Summary
static
<T> Class<T>
getClass(T entity)
          Get the real class type.
static
<T> Class<T>
getClassFromWork(Work<T> work)
           
static void initialize(Object entity)
           
static boolean isInitialized(Object entity)
           
static Object unproxy(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClass

public static <T> Class<T> getClass(T entity)
Get the real class type. In case of Hibernate proxies, return the entity type rather than the proxy's


initialize

public static void initialize(Object entity)

isInitialized

public static boolean isInitialized(Object entity)

getClassFromWork

public static <T> Class<T> getClassFromWork(Work<T> work)

unproxy

public static Object unproxy(Object value)


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved