Package org.postgresql.core.v3
Class ConnectionFactoryImpl
java.lang.Object
org.postgresql.core.ConnectionFactory
org.postgresql.core.v3.ConnectionFactoryImpl
ConnectionFactory implementation for version 3 (7.4+) connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopenConnectionImpl(HostSpec[] hostSpecs, Properties info) Implementation ofConnectionFactory.openConnection(org.postgresql.util.HostSpec[], java.util.Properties)for a particular protocol version.Methods inherited from class org.postgresql.core.ConnectionFactory
closeStream, openConnection
-
Constructor Details
-
ConnectionFactoryImpl
public ConnectionFactoryImpl()
-
-
Method Details
-
openConnectionImpl
Description copied from class:ConnectionFactoryImplementation ofConnectionFactory.openConnection(org.postgresql.util.HostSpec[], java.util.Properties)for a particular protocol version. Implemented by subclasses ofConnectionFactory.- Specified by:
openConnectionImplin classConnectionFactory- Parameters:
hostSpecs- at least one host and port to connect to; multiple elements for round-robin failoverinfo- extra properties controlling the connection; notably, "password" if present supplies the password to authenticate with.- Returns:
- the new, initialized, connection, or
nullif this protocol version is not supported by the server. - Throws:
SQLException- if the connection could not be established for a reason other than protocol version incompatibility.
-