|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.persistence.hibernate.ConfigurableSessionFactory
public final class ConfigurableSessionFactory
Session factory implementation that uses a delegate session factory created from configuration.
| Constructor Summary | |
|---|---|
ConfigurableSessionFactory(org.hibernate.cfg.Configuration configuration)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
dispose()
Clears the session factory when the container is disposed. |
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.SessionFactory |
getDelegate()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurableSessionFactory(org.hibernate.cfg.Configuration configuration)
| Method Detail |
|---|
public org.hibernate.SessionFactory getDelegate()
public void close()
close in interface org.hibernate.SessionFactorypublic void evict(Class persistentClass)
evict in interface org.hibernate.SessionFactory
public void evict(Class persistentClass,
Serializable id)
evict in interface org.hibernate.SessionFactorypublic void evictCollection(String roleName)
evictCollection in interface org.hibernate.SessionFactory
public void evictCollection(String roleName,
Serializable id)
evictCollection in interface org.hibernate.SessionFactorypublic void evictEntity(String entityName)
evictEntity in interface org.hibernate.SessionFactory
public void evictEntity(String entityName,
Serializable id)
evictEntity in interface org.hibernate.SessionFactorypublic void evictQueries()
evictQueries in interface org.hibernate.SessionFactorypublic void evictQueries(String cacheRegion)
evictQueries in interface org.hibernate.SessionFactorypublic Map getAllClassMetadata()
getAllClassMetadata in interface org.hibernate.SessionFactorypublic Map getAllCollectionMetadata()
getAllCollectionMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.ClassMetadata getClassMetadata(Class persistentClass)
getClassMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
getClassMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
getCollectionMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.classic.Session getCurrentSession()
getCurrentSession in interface org.hibernate.SessionFactorypublic Set getDefinedFilterNames()
getDefinedFilterNames in interface org.hibernate.SessionFactory
public org.hibernate.engine.FilterDefinition getFilterDefinition(String filterName)
throws org.hibernate.HibernateException
getFilterDefinition in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingExceptionpublic org.hibernate.stat.Statistics getStatistics()
getStatistics in interface org.hibernate.SessionFactorypublic boolean isClosed()
isClosed in interface org.hibernate.SessionFactorypublic org.hibernate.classic.Session openSession()
openSession in interface org.hibernate.SessionFactorypublic org.hibernate.classic.Session openSession(Connection connection)
openSession in interface org.hibernate.SessionFactory
public org.hibernate.classic.Session openSession(Connection connection,
org.hibernate.Interceptor interceptor)
openSession in interface org.hibernate.SessionFactorypublic org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor)
openSession in interface org.hibernate.SessionFactorypublic org.hibernate.StatelessSession openStatelessSession()
openStatelessSession in interface org.hibernate.SessionFactorypublic org.hibernate.StatelessSession openStatelessSession(Connection connection)
openStatelessSession in interface org.hibernate.SessionFactorypublic void dispose()
dispose in interface org.picocontainer.Disposable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||