public class JtsWrapper
extends org.postgresql.Driver
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
logger |
static String |
REVISION |
| Constructor and Description |
|---|
JtsWrapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url)
Check whether the driver thinks he can handle 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 JTS GIS data types to
it calling addpgtypes()
|
int |
getMajorVersion()
Gets the underlying drivers major version number
|
int |
getMinorVersion()
Get the underlying drivers minor version number
|
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
|
protected static final Logger logger
public static final String REVISION
public Connection connect(String url, Properties info) throws SQLException
connect in interface Driverconnect in class org.postgresql.Driverurl - 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),
Driverpublic static void addGISTypes(org.postgresql.PGConnection pgconn)
throws SQLException
pgconn - The PGConnection object to add the types toSQLException - when an SQLException occurspublic static String mangleURL(String url) throws SQLException
url - String containing the url to be "mangled"SQLException - when a SQLException occurspublic boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriveracceptsURL in class org.postgresql.Driverurl - the URL of the driverSQLException - Passed through from the underlying PostgreSQL
driver, should not happen.Driver.acceptsURL(java.lang.String)public int getMajorVersion()
getMajorVersion in interface DrivergetMajorVersion in class org.postgresql.Driverpublic int getMinorVersion()
getMinorVersion in interface DrivergetMinorVersion in class org.postgresql.Driverpublic static String getVersion()
Copyright © 2015. All rights reserved.