Top Description Fields Constructors Methods
org.jabref.logic.shared

public final Enum DBMSType

extends Enum<DBMSType>
Class Inheritance
Imports
java.util.Arrays, .Optional

Enumerates all supported database systems (DBMS) by JabRef.

Field Summary

Modifier and TypeField and Description
private final int
private final String
public static final DBMSType
public static final DBMSType
public static final DBMSType
private final String
private String

Constructor Summary

AccessConstructor and Description
private
DBMSType(String type, String driverPath, String urlPattern, int defaultPort)

Method Summary

Modifier and TypeMethod and Description
public static Optional<DBMSType>
fromString(String typeName)

public int
getDefaultPort()

Retrieves the port number dependent on the type of the database system.

public String

Returns:

Java Class path for establishing JDBC connection.
getDriverClassPath
()

public String

Returns:

prepared connection URL for appropriate system.
getUrl
(String host, int port, String database)

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static DBMSType
public static DBMSType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

defaultPortback to summary
private final int defaultPort
driverPathback to summary
private final String driverPath
MYSQLback to summary
public static final DBMSType MYSQL
ORACLEback to summary
public static final DBMSType ORACLE
POSTGRESQLback to summary
public static final DBMSType POSTGRESQL
typeback to summary
private final String type
urlPatternback to summary
private String urlPattern

Constructor Detail

DBMSTypeback to summary
private DBMSType(String type, String driverPath, String urlPattern, int defaultPort)

Method Detail

fromStringback to summary
public static Optional<DBMSType> fromString(String typeName)
getDefaultPortback to summary
public int getDefaultPort()

Retrieves the port number dependent on the type of the database system.

getDriverClassPathback to summary
public String getDriverClassPath() throws Error
Returns:String

Java Class path for establishing JDBC connection.

getUrlback to summary
public String getUrl(String host, int port, String database)
Returns:String

prepared connection URL for appropriate system.

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static DBMSType valueOf(String name)
valuesback to summary
public static DBMSType[] values()