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 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
SQLExceptionpublic static String mangleURL(String url) throws SQLException
SQLExceptionpublic 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()
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DrivergetParentLogger in class org.postgresql.DriverSQLFeatureNotSupportedExceptionCopyright © 2014. All rights reserved.