public enum DBType extends Enum<DBType>
Enum Constant and Description |
---|
FIREBIRD
FIREBIRD.
|
H2
H2.
|
MSSQL
MS SQL.
|
ORACLE
ORACLE.
|
POSTGRESQL
Postgre.
|
UNKNOWN
Unknown type.
|
Modifier and Type | Method and Description |
---|---|
static DBType |
getByNameIgnoreCase(String name)
Returns DB type by its name ignoring case.
|
abstract String |
getDriverClassName()
Returns JDBC driver class name.
|
static DBType |
resolveByJdbcUrl(String url)
Resolves DB type from JDBC URL string.
|
static DBType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DBType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBType POSTGRESQL
public static final DBType MSSQL
public static final DBType ORACLE
public static final DBType FIREBIRD
public static final DBType H2
public static final DBType UNKNOWN
public static DBType[] values()
for (DBType c : DBType.values()) System.out.println(c);
public static DBType 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 nullpublic abstract String getDriverClassName()
public static DBType resolveByJdbcUrl(String url)
url
- JDBC URLCopyright © 2021 CURS. All rights reserved.