|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.jca.JCASessionFactoryImpl
| Constructor Summary | |
JCASessionFactoryImpl(ManagedConnectionFactoryImpl managedFactory,
javax.resource.spi.ConnectionManager cxManager)
|
|
| Method Summary | |
void |
close()
Destroy this SessionFactory and release all resources (caches, connection pools, etc). |
void |
evict(Class persistentClass)
Evict all entries from the second-level cache. |
void |
evict(Class persistentClass,
Serializable id)
Evict an entry from the second-level cache. |
void |
evictCollection(String roleName)
Evict all entries from the second-level cache. |
void |
evictCollection(String roleName,
Serializable id)
Evict an entry from the second-level cache. |
void |
evictQueries()
Evict any query result sets cached in the default query cache region. |
void |
evictQueries(String cacheRegion)
Evict any query result sets cached in the named query cache region. |
Map |
getAllClassMetadata()
Get all ClassMetadata as a Map from Class to metadata object |
Map |
getAllCollectionMetadata()
Get all CollectionMetadata as a Map from role name to metadata object |
ClassMetadata |
getClassMetadata(Class persistentClass)
Get the ClassMetadata associated with the given entity class |
CollectionMetadata |
getCollectionMetadata(String roleName)
Get the CollectionMetadata associated with the named collection role |
Reference |
getReference()
|
SQLExceptionConverter |
getSQLExceptionConverter()
Retrieves the SQLExceptionConverter in effect for this SessionFactory. |
Databinder |
openDatabinder()
Create a new databinder. |
Session |
openSession()
Create database connection and open a Session on it. |
Session |
openSession(Connection connection)
Open a Session on the given connection. |
Session |
openSession(Connection connection,
Interceptor interceptor)
Open a Session on the given connection, specifying an interceptor. |
Session |
openSession(Interceptor interceptor)
Create database connection and open a Session on it, specifying an interceptor. |
void |
setReference(Reference ref)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JCASessionFactoryImpl(ManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionManager cxManager) throws HibernateException
| Method Detail |
public void close()
throws HibernateException
SessionFactory
close in interface SessionFactoryHibernateExceptionpublic Map getAllClassMetadata() throws HibernateException
SessionFactory
getAllClassMetadata in interface SessionFactoryHibernateExceptionClassMetadatapublic Map getAllCollectionMetadata() throws HibernateException
SessionFactory
getAllCollectionMetadata in interface SessionFactoryHibernateExceptionCollectionMetadatapublic ClassMetadata getClassMetadata(Class persistentClass) throws HibernateException
SessionFactory
getClassMetadata in interface SessionFactoryHibernateExceptionClassMetadatapublic CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException
SessionFactory
getCollectionMetadata in interface SessionFactoryHibernateExceptionCollectionMetadatapublic Databinder openDatabinder() throws HibernateException
SessionFactory
openDatabinder in interface SessionFactoryHibernateExceptionpublic Session openSession() throws HibernateException
SessionFactory
openSession in interface SessionFactoryHibernateExceptionpublic Session openSession(Connection connection, Interceptor interceptor)
SessionFactoryNote that the second-level cache will be disabled if you supply a JDBC connection. Hibernate will not be able to track any statements you might have executed in the same transaction. Consider implementing your own ConnectionProvider.
openSession in interface SessionFactoryconnection - a connection provided by the application.interceptor - a session-scoped interceptor
public Session openSession(Connection connection)
SessionFactoryNote that the second-level cache will be disabled if you supply a JDBC connection. Hibernate will not be able to track any statements you might have executed in the same transaction. Consider implementing your own ConnectionProvider.
openSession in interface SessionFactoryconnection - a connection provided by the application.
public Session openSession(Interceptor interceptor) throws HibernateException
SessionFactory
openSession in interface SessionFactoryinterceptor - a session-scoped interceptor
HibernateExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic void setReference(Reference ref)
setReference in interface javax.resource.Referenceablepublic void evict(Class persistentClass, Serializable id) throws HibernateException
SessionFactory
evict in interface SessionFactoryHibernateExceptionpublic void evict(Class persistentClass) throws HibernateException
SessionFactory
evict in interface SessionFactoryHibernateExceptionpublic void evictCollection(String roleName, Serializable id) throws HibernateException
SessionFactory
evictCollection in interface SessionFactoryHibernateExceptionpublic void evictCollection(String roleName) throws HibernateException
SessionFactory
evictCollection in interface SessionFactoryHibernateException
public void evictQueries()
throws HibernateException
SessionFactory
evictQueries in interface SessionFactoryHibernateExceptionpublic void evictQueries(String cacheRegion) throws HibernateException
SessionFactory
evictQueries in interface SessionFactoryHibernateExceptionpublic SQLExceptionConverter getSQLExceptionConverter()
getSQLExceptionConverter in interface SessionFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||