|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DatabaseType> lumis.util.DatabaseType
@StableMinor(version="4.1", sinceVersion="4.0") public enum DatabaseType
Database type
Enum Constant Summary | |
---|---|
HYPERSONIC_SQL
|
|
MY_SQL
|
|
ORACLE
|
|
SQL_SERVER
|
Method Summary | |
---|---|
static DatabaseType |
getDatabaseType()
Returns an instance of DatabaseType corresponding to the database
the portal's default transaction accesses. |
static DatabaseType |
getDatabaseType(Connection connection)
Returns an instance of DatabaseType corresponding to the database the
given connection is connected to. |
String |
getProductName()
|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DatabaseType ORACLE
public static final DatabaseType SQL_SERVER
public static final DatabaseType MY_SQL
public static final DatabaseType HYPERSONIC_SQL
Method Detail |
---|
public static final 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 namepublic String getProductName()
public static DatabaseType getDatabaseType(Connection connection) throws SQLException
DatabaseType
corresponding to the database the
given connection is connected to.
connection
- the connection.
SQLException
- if it was not possible to obtain the corresponding database type.public static DatabaseType getDatabaseType()
DatabaseType
corresponding to the database
the portal's default transaction accesses.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |