Enum Class DatabaseEngine
- All Implemented Interfaces:
Serializable
,Comparable<DatabaseEngine>
,Constable
Enum representing supported database engines.
This enum defines the database management systems that can be used within the ORM framework.
It provides a custom toString()
method for user-friendly names.
Possible Values:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns a user-friendly string representation of the database engine.static DatabaseEngine
Returns the enum constant of this class with the specified name.static DatabaseEngine[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
H2
H2 Database Engine. -
SQLITE
SQLite Database Engine. -
DERBY
Apache Derby Database Engine.
-
-
Constructor Details
-
DatabaseEngine
private DatabaseEngine()
-
-
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
-
toString
Returns a user-friendly string representation of the database engine.- Overrides:
toString
in classEnum<DatabaseEngine>
- Returns:
- A formatted string representing the database engine.
-