站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.2.0 patch1 API 英文版文档

HibernatePersistenceProvider (JBoss Seam API Documentation) - JBoss Seam 1.2.0 patch1 API 英文版文档


org.jboss.seam.persistence
Class HibernatePersistenceProvider

java.lang.Object
  extended by org.jboss.seam.persistence.PersistenceProvider
      extended by org.jboss.seam.persistence.HibernatePersistenceProvider

@Name(value="org.jboss.seam.persistence.persistenceProvider")
@Scope(value=STATELESS)
@Intercept(value=NEVER)
@Install(precedence=10,
         classDependencies="org.hibernate.Session",
         genericDependencies=ManagedPersistenceContext.class)
public class HibernatePersistenceProvider
extends PersistenceProvider

Support for non-standardized features of Hibernate, when used as the JPA persistence provider.

Author:
Gavin King

Constructor Summary
HibernatePersistenceProvider()
           
 
Method Summary
 void enableFilter(Filter f, javax.persistence.EntityManager entityManager)
           
 Object getId(Object bean, javax.persistence.EntityManager entityManager)
           
 boolean isDirty(javax.persistence.EntityManager entityManager)
           
 void setFlushModeManual(javax.persistence.EntityManager entityManager)
           
 
Methods inherited from class org.jboss.seam.persistence.PersistenceProvider
instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernatePersistenceProvider

public HibernatePersistenceProvider()
Method Detail

setFlushModeManual

public void setFlushModeManual(javax.persistence.EntityManager entityManager)
Overrides:
setFlushModeManual in class PersistenceProvider

isDirty

public boolean isDirty(javax.persistence.EntityManager entityManager)
Overrides:
isDirty in class PersistenceProvider

getId

public Object getId(Object bean,
                    javax.persistence.EntityManager entityManager)
Overrides:
getId in class PersistenceProvider

enableFilter

public void enableFilter(Filter f,
                         javax.persistence.EntityManager entityManager)
Overrides:
enableFilter in class PersistenceProvider