Class PgSQLDriver

    • Constructor Detail

      • PgSQLDriver

        public PgSQLDriver​(java.lang.String url)
                    throws java.net.URISyntaxException,
                           java.lang.ClassNotFoundException,
                           java.sql.SQLException,
                           java.lang.Exception
        Create a driver to an URL connection.
        Parameters:
        url -
        Throws:
        java.net.URISyntaxException
        java.lang.ClassNotFoundException
        java.sql.SQLException
        java.lang.Exception
      • PgSQLDriver

        public PgSQLDriver​(java.sql.Connection conn)
        Create a driver out of the connection.
        Parameters:
        conn -
    • Method Detail

      • parseURL

        protected void parseURL()
                         throws java.sql.SQLException
        Description copied from class: GenericDriver
        Parse URL for connect.
        Overrides:
        parseURL in class GenericDriver
        Throws:
        java.sql.SQLException
      • setUseSSL

        public PgSQLDriver setUseSSL​(boolean useSSL)
        Use SSL connection?
        Parameters:
        useSSL -
      • connect

        public PgSQLDriver connect​(java.lang.String user,
                                   java.lang.String password)
                            throws java.lang.Exception
        Connect to the PostgreSQL database with already given URL.
        Specified by:
        connect in interface DBConnectionDriver
        Overrides:
        connect in class GenericDriver
        Parameters:
        user -
        password -
        Returns:
        Throws:
        java.lang.Exception