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

PersistenceProvider (JBoss Seam API Documentation) - JBoss Seam 1.2.1 API 英文版文档


org.jboss.seam.persistence
Class PersistenceProvider

java.lang.Object
  extended by org.jboss.seam.persistence.PersistenceProvider
Direct Known Subclasses:
HibernatePersistenceProvider

@Name(value="org.jboss.seam.persistence.persistenceProvider")
@Scope(value=STATELESS)
@Intercept(value=NEVER)
@Install(precedence=0,
         genericDependencies=ManagedPersistenceContext.class)
public class PersistenceProvider
extends Object

Abstraction layer for persistence providers (JPA implementations). This class provides a working base implementation that can be optimized for performance and non-standardized features by extending and overriding the methods.

Author:
Gavin King

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

Constructor Detail

PersistenceProvider

public PersistenceProvider()
Method Detail

setFlushModeManual

public void setFlushModeManual(javax.persistence.EntityManager entityManager)

isDirty

public boolean isDirty(javax.persistence.EntityManager entityManager)

getId

public Object getId(Object bean,
                    javax.persistence.EntityManager entityManager)

enableFilter

public void enableFilter(Filter f,
                         javax.persistence.EntityManager entityManager)

instance

public static PersistenceProvider instance()

getRenderFlushMode

public FlushModeType getRenderFlushMode()