Class ConnectionType


  • public final class ConnectionType
    extends Object
    Represents a type of connection.
    • Field Detail

      • MYSQL

        public static final ConnectionType MYSQL
        Connection type: MySQL ; for connecting to mysql servers.
      • POSTGRESQL

        public static final ConnectionType POSTGRESQL
        Connection type: PostgreSQL ; for connecting to postgresql servers.
      • MARIADB

        public static final ConnectionType MARIADB
        Connection type: MariaDB ; for connecting to mariadb servers.

        Recommended over MySQL and PostgreSQL.

    • Constructor Detail

      • ConnectionType

        public ConnectionType​(String name)
    • Method Detail

      • defaultValues

        public static ConnectionType[] defaultValues()
        Returns the default values as an array.
        Returns:
        default values
      • getName

        public String getName()
        Returns the type name of the connection.
        Returns:
        name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object