org.jboss.ejb3.entity
Class InjectedSessionFactory

java.lang.Object
  extended by org.jboss.ejb3.jpa.integration.Hibernate3_3SessionFactoryDelegator
      extended by org.jboss.ejb3.jpa.integration.AbstractSessionFactoryDelegator
          extended by org.jboss.ejb3.entity.InjectedSessionFactory
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.naming.Referenceable, org.hibernate.SessionFactory

public class InjectedSessionFactory
extends org.jboss.ejb3.jpa.integration.AbstractSessionFactoryDelegator
implements org.hibernate.SessionFactory, java.io.Externalizable

Comment

See Also:
Serialized Form

Constructor Summary
InjectedSessionFactory()
           
InjectedSessionFactory(org.jboss.jpa.deployment.ManagedEntityManagerFactory factory)
           
 
Method Summary
 void close()
           
protected  org.hibernate.SessionFactory getSessionFactory()
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.jboss.ejb3.jpa.integration.Hibernate3_3SessionFactoryDelegator
evict, evict, evictCollection, evictCollection, evictEntity, evictEntity, evictQueries, evictQueries, getAllClassMetadata, getAllCollectionMetadata, getClassMetadata, getClassMetadata, getCollectionMetadata, getCurrentSession, getDefinedFilterNames, getFilterDefinition, getReference, getStatistics, isClosed, openSession, openSession, openSession, openSession, openStatelessSession, openStatelessSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.SessionFactory
evict, evict, evictCollection, evictCollection, evictEntity, evictEntity, evictQueries, evictQueries, getAllClassMetadata, getAllCollectionMetadata, getClassMetadata, getClassMetadata, getCollectionMetadata, getCurrentSession, getDefinedFilterNames, getFilterDefinition, getStatistics, isClosed, openSession, openSession, openSession, openSession, openStatelessSession, openStatelessSession
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

InjectedSessionFactory

public InjectedSessionFactory(org.jboss.jpa.deployment.ManagedEntityManagerFactory factory)

InjectedSessionFactory

public InjectedSessionFactory()
Method Detail

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

getSessionFactory

protected org.hibernate.SessionFactory getSessionFactory()
Specified by:
getSessionFactory in class org.jboss.ejb3.jpa.integration.Hibernate3_3SessionFactoryDelegator

close

public void close()
           throws org.hibernate.HibernateException
Specified by:
close in interface org.hibernate.SessionFactory
Overrides:
close in class org.jboss.ejb3.jpa.integration.Hibernate3_3SessionFactoryDelegator
Throws:
org.hibernate.HibernateException