public interface EntityManagerFactoryRegistry
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
get(String reference)
Retrieve a factory using the default (implementation-dependent) scope.
|
EntityManagerFactory |
get(String namespace,
String reference)
Retrieve a factory using the given scope.
|
EntityManagerFactory |
getDefault() |
EntityManagerFactory getDefault()
EntityManagerFactory
, if there is one.EntityManagerFactory get(String reference)
reference
- The reference allowing to identify the factory uniquely. Must be non-null and non-empty.EntityManagerFactory
for the given reference string.EntityManagerFactory get(String namespace, String reference)
namespace
- The namespace of the reference; accepted namespaces are implementation-dependent.
Must be non-null and non-empty.
For instance an implementation could accept the namespace 'persistence-unit-name', meaning
that the reference will be interpreted as a persistence unit name.reference
- The reference allowing to identify the factory uniquely. Must be non-null and non-empty.EntityManagerFactory
for the given reference string.Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.