Enum Class DBType
- All Implemented Interfaces:
Serializable
,Comparable<DBType>
,Constable
An enum which stores the name, the config name and if the Database supports MySQL Queries
-
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 boolean
Checks if the name of aDBType
corresponds toname
.Gets the config name of theDBType
getForName
(String name) Gets anOptional<DBType>
which matchesname
.getName()
Gets the name of theDBType
getSql()
names()
boolean
Used to check if theDBType
supports most MySQL MySQLSchemaQueries.static DBType
Returns 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.
-
Enum Constant Details
-
MYSQL
-
SQLITE
-
-
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
-
getName
Gets the name of theDBType
- Returns:
- the name
-
getConfigName
Gets the config name of theDBType
- Returns:
- the config name
-
supportsMySQLQueries
public boolean supportsMySQLQueries()Used to check if theDBType
supports most MySQL MySQLSchemaQueries.When specific Statements are not compatible, the
DBType
should be checked.- Returns:
- if the database supports MySQL MySQLSchemaQueries
-
getForName
Gets anOptional<DBType>
which matchesname
.This method is case-insensitive.
The
Optional<DBType>
is empty when noDBType
is found.- Parameters:
name
- the name of theDBType
- Returns:
- an
Optional<DBType>
-
exists
Checks if the name of aDBType
corresponds toname
.This method is case-insensitive.
- Parameters:
name
- the name of theDBType
- Returns:
- if the
DBType
exists - See Also:
-
names
-
getSql
-