public enum DatabaseType extends Enum<DatabaseType> implements FeatureSetValidation, Version
The DatabaseType is named like the identifier used within the
jdbc-connection-url (upper case), this may change in future, therefore use
get(String) to retrieve the DatabaseType.
| Enum Constant and Description |
|---|
ANSI_SQL |
H2 |
MARIADB |
MYSQL |
ORACLE |
POSTGRESQL |
SQLSERVER |
| Modifier and Type | Field and Description |
|---|---|
static DatabaseType[] |
DATABASES |
DEFAULT_NAME| Modifier and Type | Method and Description |
|---|---|
static DatabaseType |
get(String jdbcIdentifier) |
Set<Feature> |
getFeatures() |
String |
getName() |
String |
getVersionString() |
static DatabaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetMessagevalidatetoError, toErrorcontains, copy, getFeaturesClone, getNotContained, retainAllpublic static final DatabaseType ANSI_SQL
public static final DatabaseType ORACLE
public static final DatabaseType MYSQL
public static final DatabaseType SQLSERVER
public static final DatabaseType MARIADB
public static final DatabaseType POSTGRESQL
public static final DatabaseType H2
public static final DatabaseType[] DATABASES
public static DatabaseType[] values()
for (DatabaseType c : DatabaseType.values()) System.out.println(c);
public static DatabaseType 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 static DatabaseType get(String jdbcIdentifier)
jdbcIdentifier - - the database-identifier-part of jdbc-urlDatabaseTypeIllegalArgumentException - - if the specified jdbcIdentifier cannot be mapped to a DatabaseTypeNullPointerException - if jdbcIdentifier is nullpublic String getName()
getName in interface FeatureSetValidationgetName in interface ValidationCapabilityValidationCapabilitypublic Set<Feature> getFeatures()
getFeatures in interface FeatureSetgetFeatures in interface FeatureSetValidationpublic String getVersionString()
getVersionString in interface VersionCopyright © 2004–2021 JSQLParser. All rights reserved.