org.jboss.jpa.deployment
Class PersistenceUnitDeployment
java.lang.Object
org.jboss.jpa.deployment.PersistenceUnitDeployment
- All Implemented Interfaces:
- PersistenceUnit
public class PersistenceUnitDeployment
- extends Object
- implements PersistenceUnit
Comment
- Version:
- $Revision: 84471 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialContext
protected InitialContext initialContext
di
protected org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit di
explicitEntityClasses
protected List<String> explicitEntityClasses
managedFactory
protected ManagedEntityManagerFactory managedFactory
actualFactory
protected javax.persistence.EntityManagerFactory actualFactory
metaData
protected org.jboss.metadata.jpa.spec.PersistenceUnitMetaData metaData
kernelName
protected String kernelName
deployment
protected PersistenceDeployment deployment
PersistenceUnitDeployment
public PersistenceUnitDeployment(InitialContext initialContext,
PersistenceDeployment deployment,
List<String> explicitEntityClasses,
org.jboss.metadata.jpa.spec.PersistenceUnitMetaData metadata,
String kernelName,
org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit deploymentUnit,
Properties defaultPersistenceProperties)
create
public void create()
destroy
public void destroy()
getDefaultKernelName
public static String getDefaultKernelName(String unitName)
getDeployment
public PersistenceDeployment getDeployment()
getJaccContextId
protected String getJaccContextId()
getActualFactory
public javax.persistence.EntityManagerFactory getActualFactory()
getXml
public org.jboss.metadata.jpa.spec.PersistenceUnitMetaData getXml()
getKernelName
public String getKernelName()
getName
public String getName()
- Specified by:
getName
in interface PersistenceUnit
getPersistenceUnitRoot
protected org.jboss.virtual.VirtualFile getPersistenceUnitRoot()
- 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
getContainerEntityManagerFactory
public javax.persistence.EntityManagerFactory getContainerEntityManagerFactory()
- Description copied from interface:
PersistenceUnit
- Obtain the container entity manager factory.
- Specified by:
getContainerEntityManagerFactory
in interface PersistenceUnit
- Returns:
- an EntityManagerFactory
getEntityManagerName
public String getEntityManagerName()
getManagedFactory
public ManagedEntityManagerFactory getManagedFactory()
getProperties
protected Map<String,String> getProperties()
getXPCResolver
public XPCResolver getXPCResolver()
- Description copied from interface:
PersistenceUnit
- The extended persistence context resolver associated with
this persistence unit.
- Specified by:
getXPCResolver
in interface PersistenceUnit
- Returns:
- the XPC resolver
setXPCResolver
public void setXPCResolver(XPCResolver xpcResolver)
start
public void start()
throws Exception
- Throws:
Exception
stop
public void stop()
throws Exception
- Throws:
Exception
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.