Enum Dbms
- All Implemented Interfaces:
Serializable, Comparable<Dbms>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsUrl(String jdbcUrl) static DbmsfromDriverClass(Class<? extends Driver> driverClass) Try to detect the DBMS from a JDBC Driver class.static DbmsfromJdbcUrl(String jdbcUrl) Try to detect the DBMS from a JDBC URL prefix.Gets an InputStream for the logo resource of the DBMS.static DbmsReturns the enum constant of this type with the specified name.static Dbms[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POSTGRESQL
-
MYSQL
-
MARIADB
-
ORACLE
-
SQLSERVER
-
H2
-
-
Method Details
-
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
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
-
acceptsUrl
-
fromDriverClass
Try to detect the DBMS from a JDBC Driver class.- Parameters:
driverClass- JDBC Driver class- Returns:
- matching Dbms or null if unknown
- Throws:
IllegalArgumentException- if driverClass is null
-
fromJdbcUrl
Try to detect the DBMS from a JDBC URL prefix.- Parameters:
jdbcUrl- JDBC URL (e.g. "jdbc:postgresql://localhost/test")- Returns:
- matching Dbms or null if unknown
- Throws:
IllegalArgumentException- if jdbcUrl is invalid
-
getLogoInputStream
Gets an InputStream for the logo resource of the DBMS.- Returns:
- InputStream of the logo resource
-
getShortName
-
getDisplayName
-
getDriverClassName
-
getLogoContentType
-