Package de.xima.fc.mdl.enums
Enum EDatenbankTyp
- java.lang.Object
-
- java.lang.Enum<EDatenbankTyp>
-
- de.xima.fc.mdl.enums.EDatenbankTyp
-
- All Implemented Interfaces:
INamedUiElement
,Serializable
,Comparable<EDatenbankTyp>
public enum EDatenbankTyp extends Enum<EDatenbankTyp> implements INamedUiElement
Enumeration of the database management systems natively supported by formcycle.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description int
defaultPort
String
displayName
String
driverClass
String
hibernateDialect
String
hikariDSClassName
String
legacyTestQuery
String
quartzDelegate
boolean
render
String
shortName
String
urlTemplate
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAvailableDriverClass()
static EDatenbankTyp
getByDriver(String driver)
static EDatenbankTyp
getByShortname(String shortname)
static Map<EDatenbankTyp,Boolean>
getDbDriverAvailability()
String
getDisplayName(Locale l)
The display name of this element in the given locale.char
getEscapeChar()
String
getUrlTemplate()
boolean
isRender()
static EDatenbankTyp
valueOf(String name)
Returns the enum constant of this type with the specified name.static EDatenbankTyp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MYSQL
public static final EDatenbankTyp MYSQL
MySQL database.
-
MARIADB
public static final EDatenbankTyp MARIADB
MariaDB database.
-
ORACLE
public static final EDatenbankTyp ORACLE
Oracle Database.
-
POSTGRESQL
public static final EDatenbankTyp POSTGRESQL
PostgreSQL database.
-
SQLSERVER
public static final EDatenbankTyp SQLSERVER
Microsoft SQL Server database.
-
H2
public static final EDatenbankTyp H2
H2 database engine.
-
GENERIC
public static final EDatenbankTyp GENERIC
Other generic database management system. Driver needs to be supplied by the user. No guarantees are made whether it is compatible with formcycle.
-
-
Field Detail
-
displayName
public final String displayName
-
shortName
public final String shortName
-
driverClass
public final String driverClass
-
hibernateDialect
public final String hibernateDialect
-
hikariDSClassName
public final String hikariDSClassName
-
quartzDelegate
public final String quartzDelegate
-
legacyTestQuery
public final String legacyTestQuery
-
urlTemplate
public final String urlTemplate
-
defaultPort
public final int defaultPort
-
render
public final boolean render
-
-
Method Detail
-
values
public static EDatenbankTyp[] 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 (EDatenbankTyp c : EDatenbankTyp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDatenbankTyp 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
-
getEscapeChar
public char getEscapeChar()
-
getUrlTemplate
public String getUrlTemplate()
-
isRender
public boolean isRender()
-
getByDriver
public static EDatenbankTyp getByDriver(String driver)
-
getByShortname
public static EDatenbankTyp getByShortname(String shortname)
-
getDisplayName
public String getDisplayName(Locale l)
Description copied from interface:INamedUiElement
The display name of this element in the given locale.- Specified by:
getDisplayName
in interfaceINamedUiElement
- Parameters:
l
- The locale to get the display name for.- Returns:
- The display name of this element in the given locale.
-
getAvailableDriverClass
public String getAvailableDriverClass()
-
getDbDriverAvailability
public static Map<EDatenbankTyp,Boolean> getDbDriverAvailability()
- Returns:
- A map that lists whether the driver for each database type is available or not. The key is the database
type, the value
true
when the database driver is available, andfalse
otherwise.
-
-