examples
Class TestAutoregister
java.lang.Object
examples.TestAutoregister
public class TestAutoregister
- extends java.lang.Object
This test program tests whether the autoregistration of PostGIS data types
within the pgjdbc driver was successful. This is supposed to work with
pgjdbc.jar version 8.0 and newer, and thus refuses to work with older pgjdbc
versions. (But it will work fine against older servers.) It also checks for
postgis version to know whether box2d is available.
Method Summary |
static int |
getPostgisMajor(java.sql.Statement stat)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestAutoregister
public TestAutoregister()
main
public static void main(java.lang.String[] args)
getPostgisMajor
public static int getPostgisMajor(java.sql.Statement stat)
throws java.sql.SQLException
- Throws:
java.sql.SQLException