public class DatabaseParam extends AbstractParam
It allows to change, programmatically, the following database options:
Modifier and Type | Field and Description |
---|---|
static int |
NEW_SESSION_NOT_SPECIFIED |
static int |
NEW_SESSION_TEMPORARY |
static int |
NEW_SESSION_TIMESTAMPED |
static int |
NEW_SESSION_USER_SPECIFIED |
Constructor and Description |
---|
DatabaseParam() |
Modifier and Type | Method and Description |
---|---|
int |
getNewSessionOption()
Gets the new session option.
|
int |
getRequestBodySize()
Gets the request body size
|
int |
getResponseBodySize()
Gets the response body size
|
boolean |
isCompactDatabase()
Tells whether the database should be compacted on exit or not.
|
boolean |
isNewSessionPrompt() |
boolean |
isRecoveryLogEnabled()
Tells whether or not database's recovery log is enabled.
|
protected void |
parse()
Parses the database options.
|
void |
setCompactDatabase(boolean compactDatabase)
Sets whether the database should be compacted on exit or not.
|
void |
setNewSessionOption(int newSessionOption)
Sets the new session option.
|
void |
setNewSessionPrompt(boolean newSessionPrompt) |
void |
setRecoveryLogEnabled(boolean enabled)
Sets whether or not database's recovery log is enabled.
|
void |
setRequestBodySize(int requestbodysize)
Sets the request body size
|
void |
setResponseBodySize(int responsebodysize)
Sets the response body size
|
clone, getBoolean, getConfig, getInt, getInteger, getString, load, load, load, logConversionException, reset
public static final int NEW_SESSION_NOT_SPECIFIED
public static final int NEW_SESSION_TIMESTAMPED
public static final int NEW_SESSION_USER_SPECIFIED
public static final int NEW_SESSION_TEMPORARY
protected void parse()
The following database options are parsed:
parse
in class AbstractParam
AbstractParam.getConfig()
public boolean isCompactDatabase()
true
if the database should be compacted on exit, false
otherwisesetCompactDatabase(boolean)
public void setCompactDatabase(boolean compactDatabase)
compactDatabase
- true
if the database should be compacted on exit, false
otherwiseisCompactDatabase()
,
Database.close(boolean)
public int getRequestBodySize()
public void setRequestBodySize(int requestbodysize)
requestbodysize
- the request body sizepublic int getResponseBodySize()
public void setResponseBodySize(int responsebodysize)
responsebodysize
- the response body sizepublic int getNewSessionOption()
setNewSessionOption(int)
public void setNewSessionOption(int newSessionOption)
newSessionOption
- the value of the new session optiongetNewSessionOption()
,
NEW_SESSION_NOT_SPECIFIED
,
NEW_SESSION_TIMESTAMPED
,
NEW_SESSION_USER_SPECIFIED
,
NEW_SESSION_TEMPORARY
public boolean isNewSessionPrompt()
public void setNewSessionPrompt(boolean newSessionPrompt)
public boolean isRecoveryLogEnabled()
true
if database's recovery log is enabled, false
otherwisesetRecoveryLogEnabled(boolean)
public void setRecoveryLogEnabled(boolean enabled)
enabled
- true
if database's recovery log should be enabled, false
otherwiseisRecoveryLogEnabled()