Package ru.curs.celesta
Enum Class DBType
- All Implemented Interfaces:
Serializable,Comparable<DBType>,Constable
DB type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DBTypegetByNameIgnoreCase(String name) Returns DB type by its name ignoring case.static DBTyperesolveByJdbcUrl(String url) Resolves DB type from JDBC URL string.static DBTypeReturns the enum constant of this class with the specified name.static DBType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
POSTGRESQL
Postgre. -
MSSQL
MS SQL. -
ORACLE
ORACLE. -
FIREBIRD
FIREBIRD. -
H2
H2. -
UNKNOWN
Unknown type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
resolveByJdbcUrl
Resolves DB type from JDBC URL string.- Parameters:
url- JDBC URL- Returns:
-
getByNameIgnoreCase
Returns DB type by its name ignoring case.- Parameters:
name- DB type name- Returns:
-