|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.HibernateDataSourceImpl
public class HibernateDataSourceImpl
Implementation of the HibernateDataSource.
| Constructor Summary | |
|---|---|
HibernateDataSourceImpl(org.w3c.dom.Document configDoc,
java.util.Collection<java.lang.Class<? extends java.lang.Object>> additionalClasses,
java.lang.String sessionFactoryJNDI)
Constructs a new HibernateDataSourceImpl. |
|
| Method Summary | |
|---|---|
void |
close()
closes the underlying Session-Factory and removes it from JNDI. |
org.hibernate.search.FullTextSession |
createNewSession()
Returns a newly created Session. |
void |
evict(java.lang.Class<?> persistentClass)
evicts all entries from the second-level cache. |
void |
evict(java.lang.Class<?> persistentClass,
java.io.Serializable id)
evicts an entry from the second-level cache. |
void |
evictCollection(java.lang.String roleName)
evicts all entries from the second-level cache. |
void |
evictCollection(java.lang.String roleName,
java.io.Serializable id)
evicts an entry from the second-level cache. |
void |
evictEntity(java.lang.String entityName)
evicts all entries from the second-level cache. |
void |
evictEntity(java.lang.String entityName,
java.io.Serializable id)
evicts an entry from the second-level cache. |
org.hibernate.stat.Statistics |
getStatistics()
returns the Statistics of the HibernateTM session
factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateDataSourceImpl(org.w3c.dom.Document configDoc,
java.util.Collection<java.lang.Class<? extends java.lang.Object>> additionalClasses,
java.lang.String sessionFactoryJNDI)
configDoc - the configuration from pulse.xmladditionalClasses - additional annotated classes from the bundles. *sessionFactoryJNDI - the SessionFactory's name in JNDI| Method Detail |
|---|
public final void close()
public final org.hibernate.search.FullTextSession createNewSession()
createNewSession in interface HibernateDataSourcepublic final org.hibernate.stat.Statistics getStatistics()
Statistics of the HibernateTM session
factory.
getStatistics in interface HibernateDataSourcepublic final void evict(java.lang.Class<?> persistentClass)
This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
evict in interface HibernateDataSourcepersistentClass - the persistent class to be evictedHibernateDataSource.evict(java.lang.Class),
SessionFactory.evict(Class)
public final void evict(java.lang.Class<?> persistentClass,
java.io.Serializable id)
This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
evict in interface HibernateDataSourcepersistentClass - the persistent class to be evictedid - the id of the entryHibernateDataSource.evict(java.lang.Class, java.io.Serializable),
SessionFactory.evict(Class,Serializable)public final void evictCollection(java.lang.String roleName)
This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
evictCollection in interface HibernateDataSourceroleName - the collection to be evicted (eg. "cat.kittens")HibernateDataSource.evictCollection(java.lang.String),
SessionFactory.evictCollection(String)
public final void evictCollection(java.lang.String roleName,
java.io.Serializable id)
This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
evictCollection in interface HibernateDataSourceroleName - the collection to be evicted (eg. "cat.kittens")id - the id of the collection's parentHibernateDataSource.evictCollection(java.lang.String ,
java.io.Serializable),
SessionFactory.evictCollection(String,Serializable)public final void evictEntity(java.lang.String entityName)
This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
evictEntity in interface HibernateDataSourceentityName - the name of the entity to be removed (eg. "cat")HibernateDataSource.evictEntity(java.lang.String),
SessionFactory.evictEntity(String)
public final void evictEntity(java.lang.String entityName,
java.io.Serializable id)
This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.
evictEntity in interface HibernateDataSourceentityName - the collection to be evicted (eg. "cat")id - the id of the entityHibernateDataSource.evictEntity(java.lang.String,
java.io.Serializable),
SessionFactory.evictEntity(String,Serializable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||