当前页面: 
在线文档首页 > 
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
   org.jboss.seam.core.ManagedPersistenceContext
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
 
 
 
ManagedPersistenceContext
public ManagedPersistenceContext()
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:
- toStringin class- Object
 
-