Package org.appng.core.domain
Enum DatabaseConnection.DatabaseType
- java.lang.Object
-
- java.lang.Enum<DatabaseConnection.DatabaseType>
-
- org.appng.core.domain.DatabaseConnection.DatabaseType
-
- All Implemented Interfaces:
Serializable
,Comparable<DatabaseConnection.DatabaseType>
- Enclosing class:
- DatabaseConnection
public static enum DatabaseConnection.DatabaseType extends Enum<DatabaseConnection.DatabaseType>
enum-type for the supported databases
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HSQL
HSQL DBMSSQL
Microsoft SQL ServerMYSQL
MySQLPOSTGRESQL
PostgreSQL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDataSourceClassName()
fully qualified class-name of thejavax.sql.DataSource
for this typeString
getDefaultDriver()
fully qualified class-name of thejava.sql.Driver
for this typeInteger
getDefaultPort()
the default portString
getDefaultValidationQuery()
the default validation queryString
getTemplateUrl()
an example JDBC-URLstatic 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.
-
-
-
Enum Constant Detail
-
MYSQL
public static final DatabaseConnection.DatabaseType MYSQL
MySQL
-
MSSQL
public static final DatabaseConnection.DatabaseType MSSQL
Microsoft SQL Server
-
POSTGRESQL
public static final DatabaseConnection.DatabaseType POSTGRESQL
PostgreSQL
-
HSQL
public static final DatabaseConnection.DatabaseType HSQL
HSQL DB
-
-
Method Detail
-
values
public static DatabaseConnection.DatabaseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseConnection.DatabaseType c : DatabaseConnection.DatabaseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseConnection.DatabaseType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultDriver
public String getDefaultDriver()
fully qualified class-name of thejava.sql.Driver
for this type
-
getTemplateUrl
public String getTemplateUrl()
an example JDBC-URL
-
getDefaultPort
public Integer getDefaultPort()
the default port
-
getDefaultValidationQuery
public String getDefaultValidationQuery()
the default validation query
-
getDataSourceClassName
public String getDataSourceClassName()
fully qualified class-name of thejavax.sql.DataSource
for this type
-
-