com.googlecode.jdbw.server.postgresql
Class PostgresqlJDBCDriverDescriptor
java.lang.Object
com.googlecode.jdbw.server.postgresql.PostgresqlJDBCDriverDescriptor
- All Implemented Interfaces:
- JDBCDriverDescriptor
public class PostgresqlJDBCDriverDescriptor
- extends Object
- implements JDBCDriverDescriptor
JDBC driver descriptor designed to work with the official PostgreSQL JDBC
client driver, org.postgresql.Driver
- Author:
- Martin Berglund
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgresqlJDBCDriverDescriptor
public PostgresqlJDBCDriverDescriptor()
formatJDBCUrl
public String formatJDBCUrl(String host,
int port,
String defaultCatalog)
- Description copied from interface:
JDBCDriverDescriptor
- Given a host, port and default catalog, return a JDBC URL formatted to
be used by this driver
- Specified by:
formatJDBCUrl in interface JDBCDriverDescriptor
- Parameters:
host - Hostname of the database serverport - Port number to connect ondefaultCatalog - Default catalog to use
- Returns:
- JDBC url formatted for this driver
getDriverClassName
public String getDriverClassName()
- Specified by:
getDriverClassName in interface JDBCDriverDescriptor
- Returns:
- The full path of the JDBC driver class to be loaded
Copyright © 2012. All Rights Reserved.