public class JtsGisWrapper
extends org.postgresql.Driver
| Constructor and Description |
|---|
JtsGisWrapper() |
| 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
|
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 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 - if a database-access error occurs (Dont know why
it would *shrug*)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.