Methods Summary |
---|
public static org.jboss.ejb3.entity.PersistenceUnitDeployment | getPersistenceUnit(java.lang.String kernelName)
PersistenceUnitDeployment unit = persistenceUnits.get(kernelName);
log.trace("get " + kernelName + " = " + unit);
if(unit == null)
throw new IllegalStateException("Unable to find persistence unit " + kernelName);
return unit;
|
public static java.util.Collection | getPersistenceUnits()
return persistenceUnits.values();
|
public static void | register(org.jboss.ejb3.entity.PersistenceUnitDeployment container)
String kernelName = container.getKernelName();
if (persistenceUnits.contains(kernelName)) throw new RuntimeException("Persistence Unit is already registered: " + kernelName);
log.trace("register " + kernelName);
persistenceUnits.put(kernelName, container);
|
public static void | unregister(org.jboss.ejb3.entity.PersistenceUnitDeployment container)
String kernelName = container.getKernelName();
log.trace("unregister " + kernelName);
persistenceUnits.remove(kernelName);
|