public enum Capability extends Enum<Capability>
The capabilities of the connected db can be determined by calling Database.hasCapability(Capability)
.
The capabilities are determined by checking the driver name.
Enum Constant and Description |
---|
GENERATED_KEYS |
LIMIT
Determines if the connected database support the LIMIT clause in SQL queries
|
LOWER_CASE_TABLE_NAMES
Determines if the database potentially lowercases table names like MySQL commonly does.
|
STREAMING
Signals that a streaming result is only created if the FETCH_SIZE is set to Integer.MIN_VALUE.
|
Modifier and Type | Field and Description |
---|---|
static Set<Capability> |
CLICKHOUSE_CAPABILITIES
Contains the capabilities of a Clickhouse database
|
static Set<Capability> |
MYSQL_CAPABILITIES
Contains the capabilities of a MySQL database
|
static Set<Capability> |
POSTGRES_CAPABILITIES
Contains the capabilities of a Postgres database
|
Modifier and Type | Method and Description |
---|---|
static Capability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Capability STREAMING
public static final Capability LIMIT
public static final Capability LOWER_CASE_TABLE_NAMES
public static final Capability GENERATED_KEYS
public static final Set<Capability> MYSQL_CAPABILITIES
public static final Set<Capability> POSTGRES_CAPABILITIES
public static final Set<Capability> CLICKHOUSE_CAPABILITIES
public static Capability[] values()
for (Capability c : Capability.values()) System.out.println(c);
public static Capability valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.