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

ManagedPersistenceContext (JBoss Seam API Documentation) - JBoss Seam 1.0.1 API 英文版文档


org.jboss.seam.core
Class ManagedPersistenceContext

java.lang.Object
  extended by org.jboss.seam.core.ManagedPersistenceContext
All Implemented Interfaces:
Serializable

@Scope(value=CONVERSATION)
@Intercept(value=NEVER)
@Mutable
public class ManagedPersistenceContext
extends Object
implements Serializable

A Seam component that manages a conversation-scoped extended persistence context that can be shared by arbitrary other components.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
ManagedPersistenceContext()
           
 
Method Summary
 void create(Component component)
           
 void destroy()
           
 String getComponentName()
           
 javax.persistence.EntityManager getEntityManager()
           
 String getPersistenceUnitJndiName()
          The JNDI name of the EntityManagerFactory
 void setPersistenceUnitJndiName(String persistenceUnitName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedPersistenceContext

public ManagedPersistenceContext()
Method Detail

create

@Create
public void create(Component component)

getEntityManager

@Unwrap
public javax.persistence.EntityManager getEntityManager()
                                                 throws NamingException,
                                                        SystemException
Throws:
NamingException
SystemException

destroy

@Destroy
public void destroy()

getPersistenceUnitJndiName

public String getPersistenceUnitJndiName()
The JNDI name of the EntityManagerFactory


setPersistenceUnitJndiName

public void setPersistenceUnitJndiName(String persistenceUnitName)

getComponentName

public String getComponentName()

toString

public String toString()
Overrides:
toString in class Object