Enum Class DatabaseEngine

java.lang.Object
java.lang.Enum<DatabaseEngine>
dimstyl.orm.enums.DatabaseEngine
All Implemented Interfaces:
Serializable, Comparable<DatabaseEngine>, Constable

public enum DatabaseEngine extends Enum<DatabaseEngine>
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:

  • H2 - H2 Database Engine
  • SQLITE - SQLite Database Engine
  • DERBY - Apache Derby Database Engine
  • Enum Constant Details

    • H2

      public static final DatabaseEngine H2
      H2 Database Engine.
    • SQLITE

      public static final DatabaseEngine SQLITE
      SQLite Database Engine.
    • DERBY

      public static final DatabaseEngine DERBY
      Apache Derby Database Engine.
  • Constructor Details

    • DatabaseEngine

      private DatabaseEngine()
  • Method Details

    • values

      public static DatabaseEngine[] 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

      public static DatabaseEngine valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Returns a user-friendly string representation of the database engine.
      Overrides:
      toString in class Enum<DatabaseEngine>
      Returns:
      A formatted string representing the database engine.