public class SqlLineOpts extends Object implements jline.console.completer.Completer
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT |
static String |
DEFAULT_TRANSACTION_ISOLATION |
static String |
PROPERTY_NAME_EXIT |
static String |
PROPERTY_PREFIX |
static Date |
TEST_DATE |
Constructor and Description |
---|
SqlLineOpts(SqlLine sqlLine) |
SqlLineOpts(SqlLine sqlLine,
Properties props) |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buf,
int pos,
List<CharSequence> candidates) |
boolean |
getAutoCommit() |
boolean |
getAutosave()
Deprecated.
Use
getAutoSave() |
boolean |
getAutoSave() |
boolean |
getColor() |
String |
getCsvDelimiter() |
char |
getCsvQuoteCharacter() |
String |
getDateFormat() |
boolean |
getFastConnect() |
boolean |
getForce() |
int |
getHeaderInterval() |
String |
getHistoryFile() |
boolean |
getIncremental() |
String |
getIsolation() |
int |
getMaxColumnWidth() |
int |
getMaxHeight() |
int |
getMaxWidth() |
String |
getNullValue() |
String |
getNumberFormat() |
String |
getOutputFormat() |
File |
getPropertiesFile() |
int |
getRowLimit() |
String |
getRun() |
boolean |
getShowElapsedTime() |
boolean |
getShowHeader() |
boolean |
getShowNestedErrs() |
boolean |
getShowWarnings() |
boolean |
getSilent() |
String |
getTimeFormat() |
int |
getTimeout() |
String |
getTimestampFormat() |
boolean |
getTrimScripts() |
boolean |
getVerbose() |
void |
load() |
void |
load(InputStream fin) |
void |
loadProperties(Properties props) |
List<jline.console.completer.Completer> |
optionCompleters() |
List<String> |
possibleSettingValues() |
void |
save() |
void |
save(OutputStream out) |
File |
saveDir()
The save directory if HOME/.sqlline/ on UNIX, and HOME/sqlline/ on
Windows.
|
void |
set(String key,
String value) |
boolean |
set(String key,
String value,
boolean quiet) |
void |
setAutoCommit(boolean autoCommit) |
void |
setAutosave(boolean autoSave)
Deprecated.
|
void |
setAutoSave(boolean autoSave) |
void |
setColor(boolean color) |
void |
setCsvDelimiter(String csvDelimiter) |
void |
setCsvQuoteCharacter(String csvQuoteCharacter) |
void |
setDateFormat(String dateFormat) |
void |
setFastConnect(boolean fastConnect) |
void |
setForce(boolean force) |
void |
setHeaderInterval(int headerInterval) |
void |
setHistoryFile(String historyFile) |
void |
setIncremental(boolean incremental) |
void |
setIsolation(String isolation) |
void |
setMaxColumnWidth(int maxColumnWidth) |
void |
setMaxHeight(int maxHeight) |
void |
setMaxWidth(int maxWidth) |
void |
setNullValue(String nullValue) |
void |
setNumberFormat(String numberFormat) |
void |
setOutputFormat(String outputFormat) |
void |
setRowLimit(int rowLimit) |
void |
setRun(String runFile) |
void |
setShowElapsedTime(boolean showElapsedTime) |
void |
setShowHeader(boolean showHeader) |
void |
setShowNestedErrs(boolean showNestedErrs) |
void |
setShowWarnings(boolean showWarnings) |
void |
setSilent(boolean silent) |
void |
setTimeFormat(String timeFormat) |
void |
setTimeout(int timeout) |
void |
setTimestampFormat(String timestampFormat) |
void |
setTrimScripts(boolean trimScripts) |
void |
setVerbose(boolean verbose) |
Properties |
toProperties() |
public static final String PROPERTY_PREFIX
public static final String PROPERTY_NAME_EXIT
public static final String DEFAULT
public static final Date TEST_DATE
public static final String DEFAULT_TRANSACTION_ISOLATION
public SqlLineOpts(SqlLine sqlLine)
public SqlLineOpts(SqlLine sqlLine, Properties props)
public List<jline.console.completer.Completer> optionCompleters()
public File saveDir()
public int complete(String buf, int pos, List<CharSequence> candidates)
complete
in interface jline.console.completer.Completer
public void save() throws IOException
IOException
public void save(OutputStream out) throws IOException
IOException
public Properties toProperties() throws IllegalAccessException, InvocationTargetException, ClassNotFoundException
public void load() throws IOException
IOException
public void load(InputStream fin) throws IOException
IOException
public void loadProperties(Properties props)
public void setFastConnect(boolean fastConnect)
public boolean getFastConnect()
public void setAutoCommit(boolean autoCommit)
public boolean getAutoCommit()
public void setVerbose(boolean verbose)
public boolean getVerbose()
public void setShowElapsedTime(boolean showElapsedTime)
public boolean getShowElapsedTime()
public void setShowWarnings(boolean showWarnings)
public boolean getShowWarnings()
public void setShowNestedErrs(boolean showNestedErrs)
public boolean getShowNestedErrs()
public void setNumberFormat(String numberFormat)
public String getNumberFormat()
public String getDateFormat()
public void setDateFormat(String dateFormat)
public String getTimeFormat()
public void setTimeFormat(String timeFormat)
public String getNullValue()
public void setNullValue(String nullValue)
public String getTimestampFormat()
public void setTimestampFormat(String timestampFormat)
public void setMaxWidth(int maxWidth)
public int getMaxWidth()
public void setMaxColumnWidth(int maxColumnWidth)
public int getMaxColumnWidth()
public void setRowLimit(int rowLimit)
public int getRowLimit()
public void setTimeout(int timeout)
public int getTimeout()
public void setIsolation(String isolation)
public String getIsolation()
public void setHistoryFile(String historyFile)
public String getHistoryFile()
public void setColor(boolean color)
public boolean getColor()
public void setCsvDelimiter(String csvDelimiter)
public String getCsvDelimiter()
public void setCsvQuoteCharacter(String csvQuoteCharacter)
public char getCsvQuoteCharacter()
public void setShowHeader(boolean showHeader)
public boolean getShowHeader()
public void setHeaderInterval(int headerInterval)
public int getHeaderInterval()
public void setForce(boolean force)
public boolean getForce()
public void setIncremental(boolean incremental)
public boolean getIncremental()
public void setSilent(boolean silent)
public boolean getSilent()
@Deprecated public void setAutosave(boolean autoSave)
setAutoSave(boolean)
autoSave
- auto save flag@Deprecated public boolean getAutosave()
getAutoSave()
public void setAutoSave(boolean autoSave)
public boolean getAutoSave()
public void setOutputFormat(String outputFormat)
public String getOutputFormat()
public void setTrimScripts(boolean trimScripts)
public boolean getTrimScripts()
public void setMaxHeight(int maxHeight)
public int getMaxHeight()
public File getPropertiesFile()
public void setRun(String runFile)
public String getRun()
Copyright © 2002–2018 Julian Hyde. All rights reserved.