public abstract class Config extends Object
key1=value
key2=value
...
Important:
| Modifier and Type | Class and Description |
|---|---|
static class |
Config.AppServer |
static interface |
Config.ConfigSetter |
static class |
Config.DatabaseName |
static interface |
Config.DatabaseNames
Offers fields which defines the names of the supported databases.
|
static interface |
Config.Params
Defines all parameters configurable using project.properties.
|
static interface |
Config.SystemSpecificParams |
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getAllParameters()
Returns a copy of all parameters as a key/value pair map.
|
static boolean |
getBoolean(String key,
boolean def) |
static char |
getChar(String key,
char def) |
static String |
getDatabase()
Returns the database name.
|
static Config.DatabaseName |
getDatabaseName() |
static String |
getDatabaseURL() |
static double |
getDouble(String key,
double def) |
static int |
getInt(String key,
int def) |
static long |
getLong(String key,
long def) |
static String |
getParameter(String key)
Returns a parameter value for a given key.
|
static Map<String,String> |
getParametersByPattern(String pattern)
Return a copy of all config parameters which starts with the given pattern.
|
static String |
getString(String key,
String def) |
static boolean |
isHanaUsed() |
static boolean |
isHSQLDBUsed() |
static boolean |
isMySQLUsed() |
static boolean |
isOracleUsed() |
static boolean |
isPostgreSQLUsed() |
static boolean |
isSQLServerUsed() |
static boolean |
itemCacheIsolationActivated()
Deprecated.
it's no longer possible to have no isolation of (Jalo) updates inside a transaction simply
because of the potential errors caused by such a behaviour
|
static void |
setItemCacheIsolation(Boolean isolationEnabled)
Deprecated.
it's no longer possible to have no isolation of (Jalo) updates inside a transaction simply
because of the potential errors caused by such a behaviour
|
static void |
setParameter(String key,
String value)
Changes a parameter.
|
static String |
trim(String value,
char[] ignore) |
public static Map<String,String> getParametersByPattern(String pattern)
pattern - the pattern to matchpublic static Map<String,String> getAllParameters()
public static String getParameter(String key)
key - the keypublic static String getString(String key, String def)
key - the keydef - the default valuepublic static char getChar(String key, char def) throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static boolean getBoolean(String key, boolean def)
public static int getInt(String key, int def) throws NumberFormatException
NumberFormatExceptionpublic static long getLong(String key, long def) throws NumberFormatException
NumberFormatExceptionpublic static double getDouble(String key, double def) throws NumberFormatException
NumberFormatExceptionpublic static void setParameter(String key, String value)
key - the keyvalue - the valuepublic static String getDatabase()
public static Config.DatabaseName getDatabaseName()
public static boolean isOracleUsed()
public static boolean isHSQLDBUsed()
public static boolean isMySQLUsed()
public static boolean isSQLServerUsed()
public static boolean isHanaUsed()
public static boolean isPostgreSQLUsed()
public static String getDatabaseURL()
@Deprecated public static boolean itemCacheIsolationActivated()
@Deprecated public static void setItemCacheIsolation(Boolean isolationEnabled)
Copyright © 2017 SAP SE. All Rights Reserved.