public class ConnectionFactoryImpl extends ConnectionFactory
|Constructor and Description|
|Modifier and Type||Method and Description|
public QueryExecutor openConnectionImpl(HostSpec hostSpecs, String user, String database, Properties info) throws SQLException
ConnectionFactory.openConnection(org.postgresql.util.HostSpec, java.lang.String, java.lang.String, java.util.Properties)for a particular protocol version. Implemented by subclasses of
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.
nullif this protocol version is not supported by the server.
SQLException- if the connection could not be established for a reason other than protocol version incompatibility.
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.