public class Java2DWrapper
extends org.postgresql.Driver
Modifier and Type | Field and Description |
---|---|
static String |
POSTGIS_PROTOCOL |
static String |
REVISION |
Constructor and Description |
---|
Java2DWrapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(String url)
Returns true if the driver thinks it can open a connection to the given
URL.
|
static void |
addGISTypes(org.postgresql.PGConnection pgconn)
adds the JTS/PostGIS Data types to a PG Connection.
|
Connection |
connect(String url,
Properties info)
Creates a postgresql connection, and then adds the PostGIS data types to
it calling addpgtypes()
|
int |
getMajorVersion()
Gets the underlying drivers major version number
|
int |
getMinorVersion()
Get the underlying drivers minor version number
|
Logger |
getParentLogger() |
static String |
getVersion()
Returns our own CVS version plus postgres Version
|
static String |
mangleURL(String url)
Mangles the PostGIS URL to return the original PostGreSQL URL
|
public static final String POSTGIS_PROTOCOL
public static final String REVISION
public Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
connect
in class org.postgresql.Driver
url
- the URL of the database to connect toinfo
- a list of arbitrary tag/value pairs as connection argumentsSQLException
- if a database access error occursDriver.connect(java.lang.String, java.util.Properties)
,
Driver
public static void addGISTypes(org.postgresql.PGConnection pgconn) throws SQLException
SQLException
public static String mangleURL(String url) throws SQLException
SQLException
public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
acceptsURL
in class org.postgresql.Driver
url
- the URL of the driverSQLException
- if a database-access error occurs (Dont know why
it would *shrug*)Driver.acceptsURL(java.lang.String)
public int getMajorVersion()
getMajorVersion
in interface Driver
getMajorVersion
in class org.postgresql.Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
getMinorVersion
in class org.postgresql.Driver
public static String getVersion()
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface Driver
getParentLogger
in class org.postgresql.Driver
SQLFeatureNotSupportedException
Copyright © 2014. All rights reserved.