org.jboss.jpa.spi
Interface PersistenceUnit

All Known Implementing Classes:
PersistenceUnitDeployment

public interface PersistenceUnit

EJB 3 JPA 7.1.1. To create entity managers within a container there is a bean installed which conforms to this interface.

Version:
$Revision: $
Author:
Carlo de Wolf

Method Summary
 javax.persistence.EntityManagerFactory getContainerEntityManagerFactory()
          Obtain the container entity manager factory.
 String getName()
           
 XPCResolver getXPCResolver()
          The extended persistence context resolver associated with this persistence unit.
 

Method Detail

getContainerEntityManagerFactory

javax.persistence.EntityManagerFactory getContainerEntityManagerFactory()
Obtain the container entity manager factory.

Returns:
an EntityManagerFactory

getName

String getName()

getXPCResolver

XPCResolver getXPCResolver()
The extended persistence context resolver associated with this persistence unit.

Returns:
the XPC resolver


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.