public class NucleusContextHelper extends Object
Modifier and Type | Field and Description |
---|---|
static Random |
random
Random number generator, for use when needing unique names.
|
Constructor and Description |
---|
NucleusContextHelper() |
Modifier and Type | Method and Description |
---|---|
static StoreManager |
createStoreManagerForProperties(Map<String,Object> props,
Map<String,Object> datastoreProps,
ClassLoaderResolver clr,
NucleusContext nucCtx)
Method to create a StoreManager based on the specified properties passed in.
|
static String |
getTransactionIsolationForStoreManager(StoreManager storeMgr,
String transactionIsolation)
Method to return the transaction isolation level that will be used for the provided StoreManager
bearing in mind the specified level the user requested.
|
public static final Random random
public static String getTransactionIsolationForStoreManager(StoreManager storeMgr, String transactionIsolation)
storeMgr
- The Store ManagertransactionIsolation
- Requested isolation levelTransactionIsolationNotSupportedException
- When no suitable level available given the requested levelpublic static StoreManager createStoreManagerForProperties(Map<String,Object> props, Map<String,Object> datastoreProps, ClassLoaderResolver clr, NucleusContext nucCtx)
props
- The overall persistence propertiesdatastoreProps
- Persistence properties to apply to the datastoreclr
- ClassLoader resolvernucCtx
- NucleusContextNucleusUserException
- if impossible to create the StoreManager (not in CLASSPATH?, invalid definition?)Copyright © 2019. All rights reserved.