Class EntityTools
- java.lang.Object
-
- org.hibernate.envers.internal.tools.EntityTools
-
public abstract class EntityTools extends Object
- Author:
- Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
-
-
Constructor Summary
Constructors Constructor Description EntityTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanentitiesEqual(org.hibernate.engine.spi.SessionImplementor session, String entityName, Object obj1, Object obj2)static ClassgetEntityClass(org.hibernate.engine.spi.SessionImplementor sessionImplementor, String entityName)static ObjectgetIdentifier(org.hibernate.engine.spi.SessionImplementor session, String entityName, Object obj)static <T> Class<T>getTargetClassIfProxied(Class<T> clazz)static ObjectgetTargetFromProxy(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor, org.hibernate.proxy.LazyInitializer lazyInitializer)
-
-
-
Method Detail
-
entitiesEqual
public static boolean entitiesEqual(org.hibernate.engine.spi.SessionImplementor session, String entityName, Object obj1, Object obj2)
-
getIdentifier
public static Object getIdentifier(org.hibernate.engine.spi.SessionImplementor session, String entityName, Object obj)
-
getTargetFromProxy
public static Object getTargetFromProxy(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor, org.hibernate.proxy.LazyInitializer lazyInitializer)
-
getTargetClassIfProxied
public static <T> Class<T> getTargetClassIfProxied(Class<T> clazz)
- Type Parameters:
T- Class type.- Parameters:
clazz- Class wrapped with a proxy or not.- Returns:
- Returns target class in case it has been wrapped with a proxy. If
nullreference is passed, method returnsnull.
-
-