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 intdefaultPortStringdisplayNameStringdriverClassStringhibernateDialectStringhikariDSClassNameStringlegacyTestQueryStringquartzDelegatebooleanrenderStringshortNameStringurlTemplate-
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 StringgetAvailableDriverClass()static EDatenbankTypgetByDriver(String driver)static EDatenbankTypgetByShortname(String shortname)static Map<EDatenbankTyp,Boolean>getDbDriverAvailability()StringgetDisplayName(Locale l)The display name of this element in the given locale.chargetEscapeChar()StringgetUrlTemplate()booleanisRender()static EDatenbankTypvalueOf(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:INamedUiElementThe display name of this element in the given locale.- Specified by:
getDisplayNamein 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
truewhen the database driver is available, andfalseotherwise.
-
-