Class MySQLConfiguration


public class MySQLConfiguration extends BooleanNode
Represents a container of nodes which dictate the function of and options for the MySQL server backend.
Since:
1.9.0
Author:
Isabel Maskrey
  • Field Details

    • hostname

      public final transient StringNode hostname
      The MySQL server hostname.
      Since:
      1.9.0
    • port

      public final transient IntegerNode port
      The MySQL server port.
      Since:
      1.9.0
    • database

      public final transient StringNode database
      The name of the database to use.
      Since:
      1.9.0
    • userID

      public final transient StringNode userID
      The MySQL user ID.
      Since:
      1.9.0
    • password

      public final transient StringNode password
      The MySQL user password.
      Since:
      1.9.0
    • flags

      public final transient MapListNode flags
      Options for the MySQL connection.
      Since:
      1.9.0
    • tablePrefix

      public final transient StringNode tablePrefix
      Optional prefix for any created table's names.
      Since:
      1.9.0
    • appendUnderscoreToPrefix

      public final transient BooleanNode appendUnderscoreToPrefix
      Whether to automatically add an underscore between the prefix and the table name.

      Defaults to true.

      Since:
      1.9.0
  • Constructor Details

    • MySQLConfiguration

      public MySQLConfiguration(ConfigurationNode<?> parent)
      Creates a new MySQL configuration container.
      Parameters:
      parent - The parent container.
      Since:
      1.9.0