public enum DatabaseType extends java.lang.Enum<DatabaseType>
Enum Constant and Description |
---|
DB2
The D b2.
|
HSQL
The HSQL.
|
MYSQL
The MYSQL.
|
ORACLE
The ORACLE.
|
POSTGRES
The POSTGRES.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAliases() |
static DatabaseType |
getDatabaseType(javax.sql.DataSource dataSource)
Gets the database type.
|
java.lang.String |
getProductName()
Gets the product name.
|
static DatabaseType |
toDatabaseType(java.lang.String databaseType) |
static DatabaseType |
valueOf(java.lang.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 DB2
public static final DatabaseType HSQL
public static final DatabaseType MYSQL
public static final DatabaseType ORACLE
public static final DatabaseType POSTGRES
public static DatabaseType[] values()
for (DatabaseType c : DatabaseType.values()) System.out.println(c);
public static DatabaseType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DatabaseType toDatabaseType(java.lang.String databaseType)
public java.lang.String getProductName()
public java.lang.String[] getAliases()
public static DatabaseType getDatabaseType(javax.sql.DataSource dataSource) throws LBResourceUnavailableException
dataSource
- the data sourceLBResourceUnavailableException
- the LB resource unavailable exception