|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DatabaseType>
org.lexevs.dao.database.type.DatabaseType
public enum DatabaseType
The Enum DatabaseType.
Enum Constant Summary | |
---|---|
DB2
The D b2. |
|
HSQL
The HSQL. |
|
MYSQL
The MYSQL. |
|
ORACLE
The ORACLE. |
|
POSTGRES
The POSTGRES. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.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 source
LBResourceUnavailableException
- the LB resource unavailable exception
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |