public class EntityManagerFactoryProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,EntityManagerSetupImpl> |
emSetupImpls |
Constructor and Description |
---|
EntityManagerFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
static void |
addEntityManagerSetupImpl(java.lang.String name,
EntityManagerSetupImpl setup)
Add an EntityManagerSetupImpl to the cached list
These are used to ensure all persistence units that are the same get the same underlying session
|
static java.lang.String |
getConfigPropertyAsString(java.lang.String propertyKey,
java.util.Map overrides) |
static java.lang.String |
getConfigPropertyAsString(java.lang.String propertyKey,
java.util.Map overrides,
java.lang.String defaultValue)
Check the provided map for an object with the given key.
|
static java.util.Map<java.lang.String,EntityManagerSetupImpl> |
getEmSetupImpls() |
static EntityManagerSetupImpl |
getEntityManagerSetupImpl(java.lang.String emName)
Return the setup class for a given entity manager name
|
static boolean |
hasConfigProperty(java.lang.String propertyKey,
java.util.Map overrides) |
static java.util.Map |
keepSpecifiedProperties(java.util.Map source,
java.util.Collection keysToBeKept)
target contains the entries from source with keysToBeKept.
|
static java.util.Map |
mergeMaps(java.util.Map target,
java.util.Map source)
Merge the properties from the source object into the target object.
|
static java.util.Map |
removeSpecifiedProperties(java.util.Map source,
java.util.Collection keysToBeRemoved)
Copies source into target, removes from target all keysToBeRemoved.
|
static java.util.Map[] |
splitProperties(java.util.Map source,
java.util.Collection[] keys)
Source Map is divided between Map[] in target.
|
static java.util.Map[] |
splitSpecifiedProperties(java.util.Map source,
java.util.Collection keysToBeKept)
target is a array of two Maps
the first one contains specified properties;
the second all the rest.
|
public static final java.util.Map<java.lang.String,EntityManagerSetupImpl> emSetupImpls
public static void addEntityManagerSetupImpl(java.lang.String name, EntityManagerSetupImpl setup)
name
- setup
- public static java.lang.String getConfigPropertyAsString(java.lang.String propertyKey, java.util.Map overrides)
public static java.lang.String getConfigPropertyAsString(java.lang.String propertyKey, java.util.Map overrides, java.lang.String defaultValue)
propertyKey
- map
- defaultValue
- public static boolean hasConfigProperty(java.lang.String propertyKey, java.util.Map overrides)
public static EntityManagerSetupImpl getEntityManagerSetupImpl(java.lang.String emName)
emName
- public static java.util.Map<java.lang.String,EntityManagerSetupImpl> getEmSetupImpls()
public static java.util.Map mergeMaps(java.util.Map target, java.util.Map source)
target
- source
- public static java.util.Map removeSpecifiedProperties(java.util.Map source, java.util.Collection keysToBeRemoved)
source
- keysToBeRemoved
- public static java.util.Map keepSpecifiedProperties(java.util.Map source, java.util.Collection keysToBeKept)
source
- keysToBeKept
- public static java.util.Map[] splitSpecifiedProperties(java.util.Map source, java.util.Collection keysToBeKept)
source
- keysToBeKept
- public static java.util.Map[] splitProperties(java.util.Map source, java.util.Collection[] keys)
source
- keys
- is array of Maps of size nEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference