Class MySQLConnectionFactory

  • All Implemented Interfaces:
    ConnectionFactory

    public class MySQLConnectionFactory
    extends Object
    implements ConnectionFactory
    A factory for supplying connections to MySQL databases.
    Author:
    Robert Fromont robert@fromont.net.nz
    • Constructor Detail

      • MySQLConnectionFactory

        public MySQLConnectionFactory​(String connectionUrl,
                                      String connectionName,
                                      String connectionPassword)
        Constructor.
        Parameters:
        connectionUrl - Connection URL.
        connectionName - Database user ID.
        connectionPassword - Database password.
    • Method Detail

      • getConnectionUrl

        public String getConnectionUrl()
        Getter for connectionUrl: Connection URL.
        Returns:
        Connection URL.
      • setConnectionUrl

        public MySQLConnectionFactory setConnectionUrl​(String newConnectionUrl)
        Setter for connectionUrl: Connection URL.
        Parameters:
        newConnectionUrl - Connection URL.
      • getConnectionName

        public String getConnectionName()
        Getter for connectionName: Database user ID.
        Returns:
        Database user ID.
      • setConnectionName

        public MySQLConnectionFactory setConnectionName​(String newConnectionName)
        Setter for connectionName: Database user ID.
        Parameters:
        newConnectionName - Database user ID.
      • getConnectionPassword

        public String getConnectionPassword()
        Getter for connectionPassword: Database password.
        Returns:
        Database password.
      • setConnectionPassword

        public MySQLConnectionFactory setConnectionPassword​(String newConnectionPassword)
        Setter for connectionPassword: Database password.
        Parameters:
        newConnectionPassword - Database password.