@StableMinor(version="12.3", sinceVersion="4.0") public enum DatabaseType extends Enum<DatabaseType>
Enum Constant and Description |
---|
HYPERSONIC_SQL |
MY_SQL |
ORACLE |
SQL_SERVER |
Modifier and Type | Method and Description |
---|---|
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 are declared.
|
public static final DatabaseType ORACLE
public static final DatabaseType SQL_SERVER
public static final DatabaseType MY_SQL
public static final DatabaseType HYPERSONIC_SQL
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 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.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.