org.jboss.ejb3.entity.hibernate
Class ExtendedSessionInvocationHandler

java.lang.Object
  extended by org.jboss.ejb3.entity.hibernate.ExtendedSessionInvocationHandler
All Implemented Interfaces:
Serializable, InvocationHandler

public class ExtendedSessionInvocationHandler
extends Object
implements InvocationHandler, Serializable

Handle method execution delegation to an Hibernate Session following the extended persistence context rules

Author:
Emmanuel Bernard
See Also:
Serialized Form

Constructor Summary
ExtendedSessionInvocationHandler()
           
ExtendedSessionInvocationHandler(String identity)
           
 
Method Summary
 org.hibernate.Session getHibernateSession()
           
 javax.persistence.EntityManager getPersistenceContext()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedSessionInvocationHandler

public ExtendedSessionInvocationHandler(String identity)

ExtendedSessionInvocationHandler

public ExtendedSessionInvocationHandler()
Method Detail

getPersistenceContext

public javax.persistence.EntityManager getPersistenceContext()

getHibernateSession

public org.hibernate.Session getHibernateSession()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.