public class ModifyContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModifyContext.BooleanOption |
static class |
ModifyContext.StringOption |
Modifier and Type | Method and Description |
---|---|
static ModifyContext |
getModifyContext(PgqlConnection pgqlConn) |
boolean |
getOption(ModifyContext.BooleanOption option)
Get the value for the given Boolean option
|
java.lang.String |
getOption(ModifyContext.StringOption option)
Get the value for the given String option
|
void |
resetOptions()
Set all the options to their default values
|
void |
setOption(ModifyContext.BooleanOption option, boolean value)
Set the Boolean option to the given value
|
void |
setOption(ModifyContext.StringOption option, java.lang.String value)
Set the String option to the given value
|
void |
setOptionsFromString(java.lang.String optionsString)
Set each one of the options according to the value in the given string
|
void |
setOptionsFromSystemProperties()
Set each one of the options according the value given in System properties
|
java.lang.String |
toString() |
public static ModifyContext getModifyContext(PgqlConnection pgqlConn)
public boolean getOption(ModifyContext.BooleanOption option)
option
- the option to getpublic java.lang.String getOption(ModifyContext.StringOption option)
option
- the option to getpublic void resetOptions()
public void setOption(ModifyContext.BooleanOption option, boolean value)
option
- the option to setvalue
- the value for the optionpublic void setOption(ModifyContext.StringOption option, java.lang.String value)
option
- the option to setvalue
- the value for the optionpublic void setOptionsFromString(java.lang.String optionsString)
optionsString
- the options string to processpublic void setOptionsFromSystemProperties()
public java.lang.String toString()
toString
in class java.lang.Object