org.postgis.java2d
public class Java2DWrapper extends org.postgresql.Driver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
POSTGIS_PROTOCOL |
static java.lang.String |
REVISION |
Constructor and Description |
---|
Java2DWrapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(java.lang.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.
|
java.sql.Connection |
connect(java.lang.String url,
java.util.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
|
java.util.logging.Logger |
getParentLogger() |
static java.lang.String |
getVersion()
Returns our own CVS version plus postgres Version
|
static java.lang.String |
mangleURL(java.lang.String url)
Mangles the PostGIS URL to return the original PostGreSQL URL
|
public static final java.lang.String POSTGIS_PROTOCOL
public static final java.lang.String REVISION
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
connect
in interface java.sql.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 argumentsjava.sql.SQLException
- if a database access error occursDriver.connect(java.lang.String, java.util.Properties)
,
Driver
public static void addGISTypes(org.postgresql.PGConnection pgconn) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String mangleURL(java.lang.String url) throws java.sql.SQLException
java.sql.SQLException
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
acceptsURL
in class org.postgresql.Driver
url
- the URL of the driverjava.sql.SQLException
- if a database-access error occurs (Dont know why
it would *shrug*)Driver.acceptsURL(java.lang.String)
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
getMajorVersion
in class org.postgresql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
getMinorVersion
in class org.postgresql.Driver
public static java.lang.String getVersion()
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in class org.postgresql.Driver
java.sql.SQLFeatureNotSupportedException
Copyright © 2016. All Rights Reserved.