public class Properties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMULATE_ORACLE
If set the provider will attempt, where possible, to behave the same way as the oracle one.
|
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
asBigInteger(java.lang.String propertyName)
Return propertyName as a BigInteger.
|
static int |
asInteger(java.lang.String propertyName,
int defaultValue)
Return propertyName as an integer, defaultValue used if not defined.
|
static java.util.Set<java.lang.String> |
asKeySet(java.lang.String propertyName) |
static java.lang.String |
getPropertyValue(java.lang.String propertyName)
Return the String value of the property propertyName.
|
static java.lang.String |
getPropertyValue(java.lang.String propertyName,
java.lang.String defValue) |
static boolean |
isOverrideSet(java.lang.String propertyName)
Return whether a particular override has been set to true.
|
static boolean |
isOverrideSet(java.lang.String propertyName,
boolean defIsTrue)
Return whether a particular override has been set to true.
|
static boolean |
isOverrideSetTo(java.lang.String propertyName,
boolean isTrue)
Return whether a particular override has been set to false.
|
static boolean |
removeThreadOverride(java.lang.String propertyName)
Remove any value for the specified override property for the current thread only.
|
static boolean |
setThreadOverride(java.lang.String propertyName,
boolean enable)
Enable the specified override property for the current thread only.
|
public static final java.lang.String EMULATE_ORACLE
public static boolean isOverrideSet(java.lang.String propertyName)
propertyName
- the property name for the override.public static boolean isOverrideSet(java.lang.String propertyName, boolean defIsTrue)
propertyName
- the property name for the override.public static boolean isOverrideSetTo(java.lang.String propertyName, boolean isTrue)
propertyName
- the property name for the override.isTrue
- true if the override should be true, false otherwise.public static boolean setThreadOverride(java.lang.String propertyName, boolean enable)
propertyName
- the property name for the override.enable
- true if the override should be enabled, false if it should be disabled.public static boolean removeThreadOverride(java.lang.String propertyName)
propertyName
- the property name for the override.public static int asInteger(java.lang.String propertyName, int defaultValue)
propertyName
- name of property.defaultValue
- integer to return if property not defined.public static java.math.BigInteger asBigInteger(java.lang.String propertyName)
propertyName
- name of property.public static java.util.Set<java.lang.String> asKeySet(java.lang.String propertyName)
public static java.lang.String getPropertyValue(java.lang.String propertyName)
propertyName
- name of property.public static java.lang.String getPropertyValue(java.lang.String propertyName, java.lang.String defValue)