|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HibernateDataSource
The Interface for the HibernateDataSource.
Session obtained via the createNewSession() method have to be closed by the calling class itself.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
org.hibernate.search.FullTextSession createNewSession()
org.hibernate.stat.Statistics getStatistics()
Statistics of the HibernateTM session
factory.
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.
persistentClass - the persistent class to be evictedSessionFactory.evict(Class)
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.
persistentClass - the persistent class to be evictedid - the id of the entrySessionFactory.evict(Class,Serializable)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.
roleName - the collection to be evicted (eg. "cat.kittens")SessionFactory.evictCollection(String)
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.
roleName - the collection to be evicted (eg. "cat.kittens")id - the id of the collection's parentSessionFactory.evictCollection(String,Serializable)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.
entityName - the name of the entity to be removed (eg. "cat")SessionFactory.evictEntity(String)
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.
entityName - the collection to be evicted (eg. "cat")id - the id of the entitySessionFactory.evictEntity(String,Serializable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||