站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

HibernateProxyHelper (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.proxy
Class HibernateProxyHelper

java.lang.Object
  extended bynet.sf.hibernate.proxy.HibernateProxyHelper

public final class HibernateProxyHelper
extends Object

Utility methods for working with proxies.

Author:
Gavin King

Method Summary
static Class getClass(Object object)
          Get the class of an instance or the underlying class of a proxy (without initializing the proxy!).
static Serializable getIdentifier(Object object, ClassPersister persister)
          Get the identifier value of an instance or proxy
static LazyInitializer getLazyInitializer(HibernateProxy proxy)
          Get the LazyInitializer for a proxy instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLazyInitializer

public static LazyInitializer getLazyInitializer(HibernateProxy proxy)
Get the LazyInitializer for a proxy instance


getClass

public static Class getClass(Object object)
Get the class of an instance or the underlying class of a proxy (without initializing the proxy!).


getIdentifier

public static Serializable getIdentifier(Object object,
                                         ClassPersister persister)
                                  throws HibernateException
Get the identifier value of an instance or proxy

Throws:
HibernateException