Class MyPetGlobal.Repository.MySQL

java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.Repository.MySQL
Enclosing class:
MyPetGlobal.Repository

public static final class MyPetGlobal.Repository.MySQL extends Object
Connection details for the MySQL repository type.
  • Field Details

    • DATABASE

      public static final ConfigKey<String> DATABASE
      Name of the MySQL database.

      MyPet.Repository.MySQL.Database -- default "mypet".

    • PREFIX

      public static final ConfigKey<String> PREFIX
      Table prefix, for when the database is shared with other applications.

      MyPet.Repository.MySQL.TablePrefix -- default "".

    • HOST

      public static final ConfigKey<String> HOST
      Address of the MySQL server.

      MyPet.Repository.MySQL.Host -- default "localhost".

    • PASSWORD

      public static final ConfigKey<String> PASSWORD
      Password of the MySQL user.

      MyPet.Repository.MySQL.Password -- default "".

    • USER

      public static final ConfigKey<String> USER
      Username MyPet connects as.

      MyPet.Repository.MySQL.User -- default "root".

    • CHARACTER_ENCODING

      public static final ConfigKey<String> CHARACTER_ENCODING
      Character encoding used for the connection.

      MyPet.Repository.MySQL.CharacterEncoding -- default "utf8".

    • PORT

      public static final ConfigKey<Integer> PORT
      Port of the MySQL server.

      MyPet.Repository.MySQL.Port -- default 3306.

    • POOL_SIZE

      public static final ConfigKey<Integer> POOL_SIZE
      Size of the connection pool. Defaults to twice the available processor count.

      MyPet.Repository.MySQL.MaxConnections -- default Runtime.getRuntime().availableProcessors() * 2.