public enum DatabaseType extends Enum<DatabaseType>
Enum Constant and Description |
---|
HSQL |
MYSQL |
ORACLE |
POSTGRE_SQL |
SQL_SERVER |
Modifier and Type | Method and Description |
---|---|
static DatabaseType |
get(String name)
Get database type
|
static DatabaseType |
getByName(String name)
Get database type by name
|
String |
getDriverClazz()
Get the database type class
|
String |
getName()
Get the database type name
|
boolean |
isEquals(String value)
Get if a database type is equal to a value
|
static boolean |
isValidName(String name)
Get if the name is valid for a database
|
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.
|
public static final DatabaseType MYSQL
public static final DatabaseType SQL_SERVER
public static final DatabaseType POSTGRE_SQL
public static final DatabaseType ORACLE
public static final DatabaseType HSQL
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 boolean isEquals(String value)
value
- the valuepublic static boolean isValidName(String name)
name
- the namepublic static DatabaseType getByName(String name)
name
- the name of the databasepublic static DatabaseType get(String name)
name
- the name of the databasepublic String getName()
public String getDriverClazz()
Copyright © 2020 DEISER. All Rights Reserved.