public enum DatabaseType extends Enum<DatabaseType>
Enum Constant and Description |
---|
DERBY
Apache Derby
|
MYSQL
MySQL
|
ORACLE
Oracle
|
OTHER
All other databases
|
POSTGRESQL
PostgreSQL
|
Modifier and Type | Method and Description |
---|---|
static DatabaseType |
getByName(String dbName) |
String |
getName() |
String |
getValidationQuery() |
String |
toString() |
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 OTHER
public static final DatabaseType DERBY
public static final DatabaseType MYSQL
public static final DatabaseType POSTGRESQL
public static final DatabaseType ORACLE
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 String toString()
toString
in class Enum<DatabaseType>
public String getName()
public String getValidationQuery()
public static DatabaseType getByName(String dbName)
Copyright © 2009-2014 Apache Software Foundation. All Rights Reserved.