Package be.ugent.rml.access
Enum DatabaseType
- java.lang.Object
-
- java.lang.Enum<DatabaseType>
-
- be.ugent.rml.access.DatabaseType
-
- All Implemented Interfaces:
Serializable,Comparable<DatabaseType>,java.lang.constant.Constable
public enum DatabaseType extends Enum<DatabaseType>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DB2MYSQLORACLEPOSTGRESSQL_SERVER
-
Method Summary
Modifier and Type Method Description static DatabaseTypegetDBtype(String db)StringgetDriver()StringgetDriverSubstring()StringgetJDBCPrefix()StringtoString()static DatabaseTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DatabaseType[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
-
-
-
Enum Constant Detail
-
MYSQL
public static final DatabaseType MYSQL
-
POSTGRES
public static final DatabaseType POSTGRES
-
SQL_SERVER
public static final DatabaseType SQL_SERVER
-
ORACLE
public static final DatabaseType ORACLE
-
DB2
public static final DatabaseType DB2
-
-
Method Detail
-
values
public static DatabaseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<DatabaseType>
-
getJDBCPrefix
public String getJDBCPrefix()
-
getDriverSubstring
public String getDriverSubstring()
-
getDriver
public String getDriver()
-
getDBtype
public static DatabaseType getDBtype(String db)
-
-