public class GlobalSettings extends HashStructureAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFS_KEY
Key used to locate the GlobalSettings in a given PropertyStorage.
|
_hash
Modifier and Type | Method and Description |
---|---|
static GlobalSettings |
createGlobalSettings(PropertyStorage props)
Creates a copy of global settings using the given hash.
|
static GlobalSettings |
getInstance()
Gets the GlobalSettings instance for the API.
|
PlSqlCompilerOptions |
getPlSqlCompilerOptions()
Retuns the PL/SQL compiler options from the global settings.
|
java.lang.Integer |
getStatementTimeout()
Gets the timeout setting for all Statement execution in the API in seconds.
|
static void |
initialiseInstance(PropertyStorage props)
Deprecated.
replaced with
initialiseInstance(Thunk) |
static void |
initialiseInstance(Thunk<PropertyStorage> propsThunk)
Initialises the global settings with the given HashStructure for storage.
|
boolean |
isNewPlSqlLowerCase()
gets whether the keywords in new PL/SQL are in lower or upper case
|
boolean |
isValidateDateTime()
Gets whether the api validation layer is validating date/time datatype
default values.
|
void |
setNewPlSqlLowerCase(boolean newPlSqlLowerCase)
Sets whether the keywords in new PL/SQL are in lower or upper case
|
void |
setStatementTimeout(java.lang.Integer timeout)
Sets or removes the statement timeout setting.
|
void |
setValidateDateTime(boolean boo)
Sets whether the api validation layer is validating date/time datatype
default values.
|
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
public static final java.lang.String PREFS_KEY
public static final GlobalSettings getInstance()
@Deprecated public static final void initialiseInstance(PropertyStorage props)
initialiseInstance(Thunk)
public static final void initialiseInstance(Thunk<PropertyStorage> propsThunk)
getInstance()
public static final GlobalSettings createGlobalSettings(PropertyStorage props)
getInstance()
public boolean isValidateDateTime()
public void setValidateDateTime(boolean boo)
public boolean isNewPlSqlLowerCase()
public void setNewPlSqlLowerCase(boolean newPlSqlLowerCase)
public PlSqlCompilerOptions getPlSqlCompilerOptions()
public java.lang.Integer getStatementTimeout()
public void setStatementTimeout(java.lang.Integer timeout)
timeout
- the timeout in seconds, or null to remove the setting.