public enum JDBCDriverDescription extends java.lang.Enum<JDBCDriverDescription>
Enum Constant and Description |
---|
AS400_JTOPEN |
DB2 |
DERBY |
H2 |
MY_SQL |
ORACLE |
POSTGRESQL |
SQLITE |
SQLSERVER_JTDS |
SQLSERVER_MS |
TERADATA |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
className |
java.lang.String |
name |
java.lang.String |
url |
Modifier and Type | Method and Description |
---|---|
static JDBCDriverDescription |
fromDriverClassName(java.lang.String driverClassName)
Returns the JDBCDriverDescription which driver class name corresponds to a supported JDBC driver.
|
static java.util.List<JDBCDriverDescription> |
getDrivers() |
void |
load() |
static JDBCDriverDescription |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JDBCDriverDescription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JDBCDriverDescription MY_SQL
public static final JDBCDriverDescription ORACLE
public static final JDBCDriverDescription POSTGRESQL
public static final JDBCDriverDescription SQLITE
public static final JDBCDriverDescription SQLSERVER_JTDS
public static final JDBCDriverDescription SQLSERVER_MS
public static final JDBCDriverDescription AS400_JTOPEN
public static final JDBCDriverDescription DERBY
public static final JDBCDriverDescription H2
public static final JDBCDriverDescription DB2
public static final JDBCDriverDescription TERADATA
public java.lang.String name
public java.lang.String className
public java.lang.String url
public static JDBCDriverDescription[] values()
for (JDBCDriverDescription c : JDBCDriverDescription.values()) System.out.println(c);
public static JDBCDriverDescription 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 void load() throws java.lang.Exception
java.lang.Exception
public static JDBCDriverDescription fromDriverClassName(java.lang.String driverClassName)
driverClassName
- the name of the driver classjava.util.NoSuchElementException
- if the driver class name is not that of a supported JDBC driverpublic static java.util.List<JDBCDriverDescription> getDrivers()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.