org.jboss.ejb3.entity.hibernate
Class TransactionScopedSessionInvocationHandler
java.lang.Object
org.jboss.ejb3.entity.hibernate.TransactionScopedSessionInvocationHandler
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.reflect.InvocationHandler
public class TransactionScopedSessionInvocationHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, java.io.Externalizable
Handle method execution delegation to an Hibernate session following the transaction scoped persistence context rules
- See Also:
- Serialized Form
|
Method Summary |
protected org.hibernate.Session |
getHibernateSession()
|
protected javax.persistence.EntityManager |
getSession()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionScopedSessionInvocationHandler
public TransactionScopedSessionInvocationHandler(org.jboss.jpa.deployment.ManagedEntityManagerFactory factory)
TransactionScopedSessionInvocationHandler
public TransactionScopedSessionInvocationHandler()
getHibernateSession
protected org.hibernate.Session getHibernateSession()
getSession
protected javax.persistence.EntityManager getSession()
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable