public class EntityManagerFactoryProvider extends Object
Modifier and Type | Field and Description |
---|---|
static HashMap<String,EntityManagerSetupImpl> |
emSetupImpls |
Constructor and Description |
---|
EntityManagerFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
static void |
addEntityManagerSetupImpl(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 String |
getConfigPropertyAsString(String propertyKey,
Map overrides) |
static String |
getConfigPropertyAsString(String propertyKey,
Map overrides,
String defaultValue)
Check the provided map for an object with the given key.
|
static Map<String,EntityManagerSetupImpl> |
getEmSetupImpls() |
static EntityManagerSetupImpl |
getEntityManagerSetupImpl(String emName)
Return the setup class for a given entity manager name
|
static boolean |
hasConfigProperty(String propertyKey,
Map overrides) |
static Map |
keepSpecifiedProperties(Map source,
Collection keysToBeKept)
target contains the entries from source with keysToBeKept.
|
static Map |
mergeMaps(Map target,
Map source)
Merge the properties from the source object into the target object.
|
static Map |
removeSpecifiedProperties(Map source,
Collection keysToBeRemoved)
Copies source into target, removes from target all keysToBeRemoved.
|
static Map[] |
splitProperties(Map source,
Collection[] keys)
Source Map is divided between Map[] in target.
|
static Map[] |
splitSpecifiedProperties(Map source,
Collection keysToBeKept)
target is a array of two Maps
the first one contains specified properties;
the second all the rest.
|
public static final HashMap<String,EntityManagerSetupImpl> emSetupImpls
public static void addEntityManagerSetupImpl(String name, EntityManagerSetupImpl setup)
name
- setup
- public static String getConfigPropertyAsString(String propertyKey, Map overrides)
public static String getConfigPropertyAsString(String propertyKey, Map overrides, String defaultValue)
propertyKey
- map
- defaultValue
- public static EntityManagerSetupImpl getEntityManagerSetupImpl(String emName)
emName
- public static Map<String,EntityManagerSetupImpl> getEmSetupImpls()
public static Map mergeMaps(Map target, Map source)
target
- source
- public static Map removeSpecifiedProperties(Map source, Collection keysToBeRemoved)
source
- keysToBeRemoved
- public static Map keepSpecifiedProperties(Map source, Collection keysToBeKept)
source
- keysToBeKept
- public static Map[] splitSpecifiedProperties(Map source, Collection keysToBeKept)
source
- keysToBeKept
- public static Map[] splitProperties(Map source, Collection[] keys)
source
- keys
- is array of Maps of size nEclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference