Package sqlline
Enum BuiltInProperty
java.lang.Object
java.lang.Enum<BuiltInProperty>
sqlline.BuiltInProperty
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BuiltInProperty>
,java.lang.constant.Constable
,SqlLineProperty
public enum BuiltInProperty extends java.lang.Enum<BuiltInProperty> implements SqlLineProperty
Built-in properties of SqlLine.
Every property must implement the SqlLineProperty
interface;
it is convenient to put properties in this enum
but not mandatory.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
Nested classes/interfaces inherited from interface sqlline.SqlLineProperty
SqlLineProperty.Type, SqlLineProperty.Writer
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description boolean
couldBeStored()
java.lang.Object
defaultValue()
java.util.Set<java.lang.String>
getAvailableValues()
boolean
isReadOnly()
java.lang.String
propertyName()
SqlLineProperty.Type
type()
static BuiltInProperty
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SqlLineProperty
valueOf(java.lang.String propertyName, boolean ignoreCase)
Returns the built-in property with the given name, or null if not found.static BuiltInProperty[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO_COMMIT
-
AUTO_PAIRING
-
AUTO_RESIZE
-
AUTO_SAVE
-
COLOR_SCHEME
-
COLOR
-
CONFIRM
-
CONFIRM_PATTERN
-
CONNECT_INTERACTION_MODE
-
CONNECTION_CONFIG
-
CSV_DELIMITER
-
CSV_QUOTE_CHARACTER
-
DATE_FORMAT
-
ESCAPE_OUTPUT
-
FAST_CONNECT
-
FORCE
-
HEADER_INTERVAL
-
HISTORY_FILE
-
HISTORY_FLAGS
-
INCREMENTAL
-
INCREMENTAL_BUFFER_ROWS
-
ISOLATION
-
KEEP_SEMICOLON
-
LIVE_TEMPLATES
-
MAX_COLUMN_WIDTH
-
MAX_HEIGHT
-
MAX_WIDTH
-
MAX_HISTORY_ROWS
-
MAX_HISTORY_FILE_ROWS
-
MODE
-
NUMBER_FORMAT
-
NULL_VALUE
-
SILENT
-
OUTPUT_FORMAT
-
TABLE_STYLE
-
PROMPT
-
PROMPT_SCRIPT
-
PROPERTIES_FILE
-
READ_ONLY
-
RIGHT_PROMPT
-
ROW_LIMIT
-
SHOW_ELAPSED_TIME
-
SCRIPT_ENGINE
-
SHOW_COMPLETION_DESCR
-
SHOW_HEADER
-
SHOW_LINE_NUMBERS
-
SHOW_NESTED_ERRS
-
SHOW_TYPES
-
SHOW_WARNINGS
-
STRICT_JDBC
-
TIME_FORMAT
-
TIMEOUT
-
TIMESTAMP_FORMAT
-
TRIM_SCRIPTS
-
USE_LINE_CONTINUATION
-
VERBOSE
-
VERSION
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
propertyName
public java.lang.String propertyName()- Specified by:
propertyName
in interfaceSqlLineProperty
-
defaultValue
public java.lang.Object defaultValue()- Specified by:
defaultValue
in interfaceSqlLineProperty
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfaceSqlLineProperty
-
couldBeStored
public boolean couldBeStored()- Specified by:
couldBeStored
in interfaceSqlLineProperty
-
type
- Specified by:
type
in interfaceSqlLineProperty
-
getAvailableValues
public java.util.Set<java.lang.String> getAvailableValues()- Specified by:
getAvailableValues
in interfaceSqlLineProperty
-
valueOf
Returns the built-in property with the given name, or null if not found.- Parameters:
propertyName
- Property nameignoreCase
- Whether to ignore case- Returns:
- Property, or null if not found
-