org.jboss.jpa.remote
Class RemotelyInjectEntityManagerFactory
java.lang.Object
org.jboss.jpa.remote.RemotelyInjectEntityManagerFactory
- All Implemented Interfaces:
- Serializable, javax.persistence.EntityManagerFactory
public class RemotelyInjectEntityManagerFactory
- extends Object
- implements javax.persistence.EntityManagerFactory, Serializable
EXPERIMENTAL
Allows a persistence unit to go over the wire. It is assumed that the same
persistence unit jar is available locally. The jar is then used to boot
up JPA locally.
- Version:
- $Revision: $
- Author:
- Carlo de Wolf
- See Also:
- Serialized Form
Constructor Summary |
RemotelyInjectEntityManagerFactory(org.jboss.metadata.jpa.spec.PersistenceUnitMetaData metaData,
String jaccContextId)
Assume the data source name has been changed to a remote data source name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemotelyInjectEntityManagerFactory
public RemotelyInjectEntityManagerFactory(org.jboss.metadata.jpa.spec.PersistenceUnitMetaData metaData,
String jaccContextId)
- Assume the data source name has been changed to a remote data source name.
close
public void close()
- Specified by:
close
in interface javax.persistence.EntityManagerFactory
createEntityManager
public javax.persistence.EntityManager createEntityManager()
- Specified by:
createEntityManager
in interface javax.persistence.EntityManagerFactory
createEntityManager
public javax.persistence.EntityManager createEntityManager(Map map)
- Specified by:
createEntityManager
in interface javax.persistence.EntityManagerFactory
getJaccContextId
protected String getJaccContextId()
getJPATransactionType
protected javax.persistence.spi.PersistenceUnitTransactionType getJPATransactionType()
getPersistenceUnitRoot
protected URL getPersistenceUnitRoot()
throws IOException
- Find the persistence unit root, which can be the root of a jar
or WEB-INF/classes of a war.
- Returns:
- the persistence unit root
- Throws:
IOException
getProperties
protected Map<String,String> getProperties()
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface javax.persistence.EntityManagerFactory
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.