org.postgresql.core.v2
Class ConnectionFactoryImpl
java.lang.Object
org.postgresql.core.ConnectionFactory
org.postgresql.core.v2.ConnectionFactoryImpl
public class ConnectionFactoryImpl
- extends ConnectionFactory
ConnectionFactory implementation for version 2 (pre-7.4) connections.
- Author:
- Oliver Jowett (oliver@opencloud.com), based on the previous implementation
|
Method Summary |
ProtocolConnection |
openConnectionImpl(String host,
int port,
String user,
String database,
Properties info,
Logger logger)
Implementation of ConnectionFactory.openConnection(java.lang.String, int, java.lang.String, java.lang.String, java.util.Properties, org.postgresql.core.Logger) for a particular protocol version. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionFactoryImpl
public ConnectionFactoryImpl()
openConnectionImpl
public ProtocolConnection openConnectionImpl(String host,
int port,
String user,
String database,
Properties info,
Logger logger)
throws SQLException
- Description copied from class:
ConnectionFactory
- Implementation of
ConnectionFactory.openConnection(java.lang.String, int, java.lang.String, java.lang.String, java.util.Properties, org.postgresql.core.Logger) for a particular protocol version.
Implemented by subclasses of ConnectionFactory.
- Specified by:
openConnectionImpl in class ConnectionFactory
- Parameters:
host - the host to connect toport - the port to connect touser - 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.logger - the logger to use for this connection
- Returns:
- the new, initialized, connection, or
null if 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.
Copyright © 2013. All Rights Reserved.