Enum Class DatabaseDriver

java.lang.Object
java.lang.Enum<DatabaseDriver>
org.sgrewritten.stargate.database.DatabaseDriver
All Implemented Interfaces:
Serializable, Comparable<DatabaseDriver>, Constable

public enum DatabaseDriver extends Enum<DatabaseDriver>
An enum representing the different SQL drivers available
Author:
Frostalf
  • Enum Constant Details

    • MYSQL

      public static final DatabaseDriver MYSQL
      Represents a MySQL driver
    • MARIADB

      public static final DatabaseDriver MARIADB
      Represents a MariaDB driver
    • SQLITE

      public static final DatabaseDriver SQLITE
      Represents an SQLite driver
    • POSTGRESQL

      public static final DatabaseDriver POSTGRESQL
      Represents a PostgreSQL driver
  • Method Details

    • values

      public static DatabaseDriver[] 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 DatabaseDriver 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
    • getDriver

      public String getDriver()
      Gets the string representation of this database driver
      Returns:

      The string representation of this database driver

    • getQueryFolder

      public String getQueryFolder()
      Gets the name of the query file containing this driver's queries
      Returns:

      The name of the query file containing this driver's queries