org.jboss.ejb3.entity
Class InjectedSessionFactory

java.lang.Object
  extended by org.jboss.ejb3.entity.InjectedSessionFactory
All Implemented Interfaces:
Externalizable, Serializable, Referenceable, org.hibernate.SessionFactory

public class InjectedSessionFactory
extends Object
implements org.hibernate.SessionFactory, Externalizable

Comment

Version:
$Revision: 79976 $
Author:
Bill Burke
See Also:
Serialized Form

Constructor Summary
InjectedSessionFactory()
           
InjectedSessionFactory(org.jboss.jpa.deployment.ManagedEntityManagerFactory factory)
           
 
Method Summary
 void close()
           
 void evict(Class persistentClass)
           
 void evict(Class persistentClass, Serializable id)
           
 void evictCollection(String roleName)
           
 void evictCollection(String roleName, Serializable id)
           
 void evictEntity(String entityName)
           
 void evictEntity(String entityName, Serializable id)
           
 void evictQueries()
           
 void evictQueries(String cacheRegion)
           
 Map getAllClassMetadata()
           
 Map getAllCollectionMetadata()
           
 org.hibernate.metadata.ClassMetadata getClassMetadata(Class persistentClass)
           
 org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
           
 org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
           
 org.hibernate.classic.Session getCurrentSession()
           
 Set getDefinedFilterNames()
           
 org.hibernate.engine.FilterDefinition getFilterDefinition(String filterName)
           
 Reference getReference()
           
 org.hibernate.stat.Statistics getStatistics()
           
 boolean isClosed()
           
 org.hibernate.classic.Session openSession()
           
 org.hibernate.classic.Session openSession(Connection connection)
           
 org.hibernate.classic.Session openSession(Connection connection, org.hibernate.Interceptor interceptor)
           
 org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor)
           
 org.hibernate.StatelessSession openStatelessSession()
           
 org.hibernate.StatelessSession openStatelessSession(Connection connection)
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectedSessionFactory

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

InjectedSessionFactory

public InjectedSessionFactory()
Method Detail

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

getDefinedFilterNames

public Set getDefinedFilterNames()
Specified by:
getDefinedFilterNames in interface org.hibernate.SessionFactory

getFilterDefinition

public org.hibernate.engine.FilterDefinition getFilterDefinition(String filterName)
                                                          throws org.hibernate.HibernateException
Specified by:
getFilterDefinition in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

openSession

public org.hibernate.classic.Session openSession(Connection connection)
Specified by:
openSession in interface org.hibernate.SessionFactory

openSession

public org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor)
                                          throws org.hibernate.HibernateException
Specified by:
openSession in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

openSession

public org.hibernate.classic.Session openSession(Connection connection,
                                                 org.hibernate.Interceptor interceptor)
Specified by:
openSession in interface org.hibernate.SessionFactory

openSession

public org.hibernate.classic.Session openSession()
                                          throws org.hibernate.HibernateException
Specified by:
openSession in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getCurrentSession

public org.hibernate.classic.Session getCurrentSession()
                                                throws org.hibernate.HibernateException
Specified by:
getCurrentSession in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getClassMetadata

public org.hibernate.metadata.ClassMetadata getClassMetadata(Class persistentClass)
                                                      throws org.hibernate.HibernateException
Specified by:
getClassMetadata in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getClassMetadata

public org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
                                                      throws org.hibernate.HibernateException
Specified by:
getClassMetadata in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getCollectionMetadata

public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
                                                                throws org.hibernate.HibernateException
Specified by:
getCollectionMetadata in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getAllClassMetadata

public Map getAllClassMetadata()
                        throws org.hibernate.HibernateException
Specified by:
getAllClassMetadata in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getAllCollectionMetadata

public Map getAllCollectionMetadata()
                             throws org.hibernate.HibernateException
Specified by:
getAllCollectionMetadata in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

getStatistics

public org.hibernate.stat.Statistics getStatistics()
Specified by:
getStatistics in interface org.hibernate.SessionFactory

close

public void close()
           throws org.hibernate.HibernateException
Specified by:
close in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

isClosed

public boolean isClosed()
Specified by:
isClosed in interface org.hibernate.SessionFactory

evict

public void evict(Class persistentClass)
           throws org.hibernate.HibernateException
Specified by:
evict in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evict

public void evict(Class persistentClass,
                  Serializable id)
           throws org.hibernate.HibernateException
Specified by:
evict in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evictEntity

public void evictEntity(String entityName)
                 throws org.hibernate.HibernateException
Specified by:
evictEntity in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evictEntity

public void evictEntity(String entityName,
                        Serializable id)
                 throws org.hibernate.HibernateException
Specified by:
evictEntity in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evictCollection

public void evictCollection(String roleName)
                     throws org.hibernate.HibernateException
Specified by:
evictCollection in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evictCollection

public void evictCollection(String roleName,
                            Serializable id)
                     throws org.hibernate.HibernateException
Specified by:
evictCollection in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evictQueries

public void evictQueries()
                  throws org.hibernate.HibernateException
Specified by:
evictQueries in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

evictQueries

public void evictQueries(String cacheRegion)
                  throws org.hibernate.HibernateException
Specified by:
evictQueries in interface org.hibernate.SessionFactory
Throws:
org.hibernate.HibernateException

openStatelessSession

public org.hibernate.StatelessSession openStatelessSession()
Specified by:
openStatelessSession in interface org.hibernate.SessionFactory

openStatelessSession

public org.hibernate.StatelessSession openStatelessSession(Connection connection)
Specified by:
openStatelessSession in interface org.hibernate.SessionFactory

getReference

public Reference getReference()
                       throws NamingException
Specified by:
getReference in interface Referenceable
Throws:
NamingException


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