|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.orm.hibernate.proxy.HibernateProxyHandler
public class HibernateProxyHandler
Implementation of the ProxyHandler interface for Hibernate
| Constructor Summary | |
|---|---|
HibernateProxyHandler()
|
|
| Method Summary | |
|---|---|
org.hibernate.proxy.HibernateProxy |
getAssociationProxy(Object obj,
String associationName)
|
void |
initialize(Object o)
Initializes an existing uninitialized proxy instance |
boolean |
isInitialized(Object o)
Returns whether a lazy proxied instance has been initialized |
boolean |
isInitialized(Object obj,
String associationName)
Tests whether an association of the given object has been initialized or not |
boolean |
isProxy(Object o)
Returns true if the specified object is a proxy |
Object |
unwrapIfProxy(Object instance)
Returns the unwrapped proxy instance or the original object if not proxied |
Object |
unwrapProxy(org.hibernate.proxy.HibernateProxy proxy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateProxyHandler()
| Method Detail |
|---|
public boolean isInitialized(Object o)
ProxyHandler
isInitialized in interface ProxyHandlero - The instance to test
public boolean isInitialized(Object obj,
String associationName)
ProxyHandler
isInitialized in interface ProxyHandlerobj - The object to checkassociationName - The association
public Object unwrapIfProxy(Object instance)
ProxyHandler
unwrapIfProxy in interface ProxyHandlerinstance - The instance to unwrap
public Object unwrapProxy(org.hibernate.proxy.HibernateProxy proxy)
public org.hibernate.proxy.HibernateProxy getAssociationProxy(Object obj,
String associationName)
public boolean isProxy(Object o)
ProxyHandler
isProxy in interface ProxyHandlero - The object in question
public void initialize(Object o)
ProxyHandler
initialize in interface ProxyHandlero - The proxy instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||