public class JobHistoryPostgresConnectionFactory extends Object implements ConnectionFactory
| Constructor and Description |
|---|
JobHistoryPostgresConnectionFactory()
Create a connection factory with default parameters.
|
JobHistoryPostgresConnectionFactory(String hostname,
String dbname,
String username,
String password)
Create a connection factory with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Get a connection.
|
public JobHistoryPostgresConnectionFactory()
public JobHistoryPostgresConnectionFactory(String hostname, String dbname, String username, String password)
hostname - host running postgresdbname - name of the postgres dbusername - username for postgres dbpassword - password for postgres dbpublic Connection getConnection() throws SQLException
ConnectionFactorygetConnection in interface ConnectionFactorySQLException - thrown if the connection cannot be obtainedCopyright © 2022 Apache Software Foundation. All rights reserved.