public enum DatabasePlatform extends Enum<DatabasePlatform>
Enum Constant and Description |
---|
DB2
IBM DB2
|
DB2_AS400
IBM DB2 AS400
|
DERBY
Apache Derby
|
H2
H2
|
HANA
SAP HANA
|
HSQL
HSQL
|
INFORMIX
IBN Informix
|
MARIADB
MariaDB
|
MYSQL
MySQL
|
NONE
Denote a not specified platform
|
ORACLE
Oracle
|
POSTGRESQL
PostgreSQL
|
SQL_SERVER
Microsoft SQLServer
|
SQLITE
SQLite
|
Modifier and Type | Method and Description |
---|---|
static DatabasePlatform |
fromUrl(String jdbcUrl)
Try to guess DatabasePlatform from given JDBC connection url
|
String |
getDriverClassName()
JDBC driver class name
|
String |
getValidationQuery()
Get connection validation query
|
String |
getXaDriverClassName()
XA JDBC driver class name
|
static DatabasePlatform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabasePlatform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabasePlatform NONE
public static final DatabasePlatform DB2
public static final DatabasePlatform DB2_AS400
public static final DatabasePlatform DERBY
public static final DatabasePlatform H2
public static final DatabasePlatform HSQL
public static final DatabasePlatform INFORMIX
public static final DatabasePlatform MYSQL
public static final DatabasePlatform MARIADB
public static final DatabasePlatform HANA
public static final DatabasePlatform ORACLE
public static final DatabasePlatform POSTGRESQL
public static final DatabasePlatform SQL_SERVER
public static final DatabasePlatform SQLITE
public static DatabasePlatform[] values()
for (DatabasePlatform c : DatabasePlatform.values()) System.out.println(c);
public static DatabasePlatform 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 String getDriverClassName()
public String getXaDriverClassName()
public String getValidationQuery()
null
if not availablepublic static DatabasePlatform fromUrl(String jdbcUrl)
jdbcUrl
- JDBC connection urlnull
if unknownCopyright © 2019 The Holon Platform. All rights reserved.