Package sqlline
Enum BuiltInProperty
- java.lang.Object
-
- java.lang.Enum<BuiltInProperty>
-
- sqlline.BuiltInProperty
-
- All Implemented Interfaces:
Serializable
,Comparable<BuiltInProperty>
,SqlLineProperty
public enum BuiltInProperty extends Enum<BuiltInProperty> implements SqlLineProperty
Built-in properties of SqlLine.Every property must implement the
SqlLineProperty
interface; it is convenient to put properties in thisenum
but not mandatory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface sqlline.SqlLineProperty
SqlLineProperty.Type, SqlLineProperty.Writer
-
-
Enum Constant Summary
-
Field Summary
-
Fields inherited from interface sqlline.SqlLineProperty
DEFAULT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
couldBeStored()
Object
defaultValue()
boolean
isReadOnly()
String
propertyName()
SqlLineProperty.Type
type()
static BuiltInProperty
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlLineProperty
valueOf(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 Detail
-
AUTO_COMMIT
public static final BuiltInProperty AUTO_COMMIT
-
AUTO_SAVE
public static final BuiltInProperty AUTO_SAVE
-
COLOR_SCHEME
public static final BuiltInProperty COLOR_SCHEME
-
COLOR
public static final BuiltInProperty COLOR
-
CSV_DELIMITER
public static final BuiltInProperty CSV_DELIMITER
-
CSV_QUOTE_CHARACTER
public static final BuiltInProperty CSV_QUOTE_CHARACTER
-
DATE_FORMAT
public static final BuiltInProperty DATE_FORMAT
-
ESCAPE_OUTPUT
public static final BuiltInProperty ESCAPE_OUTPUT
-
FAST_CONNECT
public static final BuiltInProperty FAST_CONNECT
-
FORCE
public static final BuiltInProperty FORCE
-
HEADER_INTERVAL
public static final BuiltInProperty HEADER_INTERVAL
-
HISTORY_FILE
public static final BuiltInProperty HISTORY_FILE
-
INCREMENTAL
public static final BuiltInProperty INCREMENTAL
-
ISOLATION
public static final BuiltInProperty ISOLATION
-
MAX_COLUMN_WIDTH
public static final BuiltInProperty MAX_COLUMN_WIDTH
-
MAX_HEIGHT
public static final BuiltInProperty MAX_HEIGHT
-
MAX_WIDTH
public static final BuiltInProperty MAX_WIDTH
-
MAX_HISTORY_ROWS
public static final BuiltInProperty MAX_HISTORY_ROWS
-
MAX_HISTORY_FILE_ROWS
public static final BuiltInProperty MAX_HISTORY_FILE_ROWS
-
MODE
public static final BuiltInProperty MODE
-
NUMBER_FORMAT
public static final BuiltInProperty NUMBER_FORMAT
-
NULL_VALUE
public static final BuiltInProperty NULL_VALUE
-
SILENT
public static final BuiltInProperty SILENT
-
OUTPUT_FORMAT
public static final BuiltInProperty OUTPUT_FORMAT
-
PROMPT
public static final BuiltInProperty PROMPT
-
RIGHT_PROMPT
public static final BuiltInProperty RIGHT_PROMPT
-
ROW_LIMIT
public static final BuiltInProperty ROW_LIMIT
-
SHOW_ELAPSED_TIME
public static final BuiltInProperty SHOW_ELAPSED_TIME
-
SHOW_HEADER
public static final BuiltInProperty SHOW_HEADER
-
SHOW_NESTED_ERRS
public static final BuiltInProperty SHOW_NESTED_ERRS
-
SHOW_WARNINGS
public static final BuiltInProperty SHOW_WARNINGS
-
STRICT_JDBC
public static final BuiltInProperty STRICT_JDBC
-
TIME_FORMAT
public static final BuiltInProperty TIME_FORMAT
-
TIMEOUT
public static final BuiltInProperty TIMEOUT
-
TIMESTAMP_FORMAT
public static final BuiltInProperty TIMESTAMP_FORMAT
-
TRIM_SCRIPTS
public static final BuiltInProperty TRIM_SCRIPTS
-
USE_LINE_CONTINUATION
public static final BuiltInProperty USE_LINE_CONTINUATION
-
VERBOSE
public static final BuiltInProperty VERBOSE
-
VERSION
public static final BuiltInProperty VERSION
-
-
Method Detail
-
values
public static BuiltInProperty[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BuiltInProperty c : BuiltInProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltInProperty valueOf(String name)
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
propertyName
public String propertyName()
- Specified by:
propertyName
in interfaceSqlLineProperty
-
defaultValue
public 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
public SqlLineProperty.Type type()
- Specified by:
type
in interfaceSqlLineProperty
-
valueOf
public static SqlLineProperty valueOf(String propertyName, boolean ignoreCase)
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
-
-