public static enum DatabaseConnection.DatabaseType extends Enum<DatabaseConnection.DatabaseType>
Enum Constant and Description |
---|
HSQL
HSQL DB
|
MSSQL
Microsoft SQL Server
|
MYSQL
MySQL
|
Modifier and Type | Method and Description |
---|---|
String |
getDataSourceClassName()
fully qualified class-name of the
javax.sql.DataSource for this type |
String |
getDefaultDriver()
fully qualified class-name of the
java.sql.Driver for this type |
String |
getDefaultValidationQuery()
the default validation query
|
String |
getTemplateUrl()
an example JDBC-URL
|
static DatabaseConnection.DatabaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseConnection.DatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseConnection.DatabaseType MYSQL
public static final DatabaseConnection.DatabaseType MSSQL
public static final DatabaseConnection.DatabaseType HSQL
public static DatabaseConnection.DatabaseType[] values()
for (DatabaseConnection.DatabaseType c : DatabaseConnection.DatabaseType.values()) System.out.println(c);
public static DatabaseConnection.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 getDefaultDriver()
java.sql.Driver
for this typepublic String getTemplateUrl()
public String getDefaultValidationQuery()
public String getDataSourceClassName()
javax.sql.DataSource
for this typeCopyright © 2011–2019 aiticon GmbH. All rights reserved.