当前页面:
在线文档首页 >
JBoss Seam 1.1.1 API 英文版文档
EntityManagerFactory (JBoss Seam API Documentation) - JBoss Seam 1.1.1 API 英文版文档
org.jboss.seam.core
Class EntityManagerFactory
java.lang.Object
org.jboss.seam.core.EntityManagerFactory
@Scope(value=APPLICATION)
@Intercept(value=NEVER)
@Startup(depends="org.jboss.seam.core.microcontainer")
public class EntityManagerFactory
- extends Object
A Seam component that boostraps an EntityManagerFactory,
for use of JPA outside of Java EE 5 / Embeddable EJB3.
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityManagerFactory
public EntityManagerFactory()
getEntityManagerFactory
@Unwrap
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
startup
@Create
public void startup(Component component)
throws Exception
- Throws:
Exception
shutdown
@Destroy
public void shutdown()
getPersistenceUnitName
public String getPersistenceUnitName()
- The persistence unit name
setPersistenceUnitName
public void setPersistenceUnitName(String persistenceUnitName)
getPersistenceUnitProperties
public Map getPersistenceUnitProperties()
- Properties to pass to Persistence.createEntityManagerFactory()
setPersistenceUnitProperties
public void setPersistenceUnitProperties(Map persistenceUnitProperties)