public interface IHibernateAccessor extends IAccessor, Cloneable, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
将一级缓存中的所有持久化对象清除,释放其占用的内存资源
|
void |
closeSession()
关闭会话
|
void |
contains(Object entity)
判断指定的对象是否存在于一级缓存中
|
org.hibernate.Criteria |
createAGroupCriteria(org.hibernate.Criteria criteria,
ICriterion... criterions)
创建面向对象的查询分组条件
|
org.hibernate.Query |
createAGroupCriteria(org.hibernate.Query query,
ICriterion... criterions)
创建HQL的查询分组条件
|
void |
evict(Object entity)
将指定的持久化对象从一级缓存中清除,释放对象所占用的内存资源,指定对象从持久化状态变为脱管状态,从而成为游离对象
|
void |
flush()
刷新一级缓存区的内容,使之与数据库数据保持同步
|
org.hibernate.Criteria |
getCriteria(Class<?> object)
获取面向对象的查询方式
|
org.hibernate.Criteria[] |
getCriteria(ICriterion... criterions)
获取面向对象的查询方式
|
org.hibernate.Criteria |
getCriteria(String object)
获取面向对象的查询方式
|
org.hibernate.SessionFactory |
getSessionFactory()
获取会话工厂
|
org.hibernate.Session |
openSession()
开打会话
|
org.hibernate.Criteria getCriteria(Class<?> object) throws Exception
object - Exceptionorg.hibernate.Criteria getCriteria(String object) throws Exception
object - Exceptionorg.hibernate.Criteria[] getCriteria(ICriterion... criterions) throws Exception
criterions - Exceptionorg.hibernate.Criteria createAGroupCriteria(org.hibernate.Criteria criteria,
ICriterion... criterions)
throws Exception
criteria - criterions - Exceptionorg.hibernate.Query createAGroupCriteria(org.hibernate.Query query,
ICriterion... criterions)
throws Exception
query - criterions - Exceptionorg.hibernate.SessionFactory getSessionFactory()
org.hibernate.Session openSession()
void evict(Object entity) throws Exception
entity - Exceptionvoid contains(Object entity) throws Exception
entity - ExceptionCopyright © 2016 jufeng. All rights reserved.