Class ConnectionFactoryImpl


  • public class ConnectionFactoryImpl
    extends ConnectionFactory
    ConnectionFactory implementation for version 3 (7.4+) connections.
    Author:
    Oliver Jowett (oliver@opencloud.com), based on the previous implementation
    • Constructor Detail

      • ConnectionFactoryImpl

        public ConnectionFactoryImpl()
    • Method Detail

      • openConnectionImpl

        public QueryExecutor openConnectionImpl​(HostSpec[] hostSpecs,
                                                java.lang.String user,
                                                java.lang.String database,
                                                java.util.Properties info)
                                         throws java.sql.SQLException
        Description copied from class: ConnectionFactory
        Specified by:
        openConnectionImpl in class ConnectionFactory
        Parameters:
        hostSpecs - at least one host and port to connect to; multiple elements for round-robin failover
        user - the username to authenticate with; may not be null.
        database - the database on the server to connect to; may not be null.
        info - extra properties controlling the connection; notably, "password" if present supplies the password to authenticate with.
        Returns:
        the new, initialized, connection, or null if this protocol version is not supported by the server.
        Throws:
        java.sql.SQLException - if the connection could not be established for a reason other than protocol version incompatibility.