org.geotools.data.geometryless.wrapper
Class PGConnectionPool

java.lang.Object
  extended byorg.postgresql.jdbc2.optional.BaseDataSource
      extended byorg.postgresql.jdbc2.optional.ConnectionPool
          extended byorg.geotools.data.geometryless.wrapper.PGConnectionPool
All Implemented Interfaces:
javax.sql.ConnectionPoolDataSource, javax.naming.Referenceable, java.io.Serializable

public class PGConnectionPool
extends org.postgresql.jdbc2.optional.ConnectionPool

Wraps a Postgres ConnectionPoolDataSource implementation to support the setURL() method

The jdbc3 8.0x driver includes org.postgresql.jdbc2.optional.ConnectionPool, which wrappers org.postgresql.ds.PGConnectionPool, so you could use that as the extension class for 8.0x driver, ie instead of org.postgresql.jdbc2.optional.ConnectionPool, but it does't really matter, however that's why this class has the name it has

in info.xml, you need to set

Author:
Rob Atkinson rob@socialchange.net.NOSPAM.au, Peter Barrs@socialchange.net.NOSPAM.au
See Also:
Serialized Form

Constructor Summary
PGConnectionPool()
           
 
Method Summary
 void setURL(java.lang.String dbURL)
          Sets the JDBC database login credentials.
 
Methods inherited from class org.postgresql.jdbc2.optional.ConnectionPool
getDescription, getPooledConnection, getPooledConnection, isDefaultAutoCommit, setDefaultAutoCommit
 
Methods inherited from class org.postgresql.jdbc2.optional.BaseDataSource
createReference, getConnection, getConnection, getDatabaseName, getLoginTimeout, getLogWriter, getPassword, getPortNumber, getReference, getServerName, getUser, readBaseObject, setDatabaseName, setLoginTimeout, setLogWriter, setPassword, setPortNumber, setServerName, setUser, writeBaseObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.ConnectionPoolDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

PGConnectionPool

public PGConnectionPool()
Method Detail

setURL

public void setURL(java.lang.String dbURL)
            throws java.sql.SQLException
Sets the JDBC database login credentials.

Throws:
java.sql.SQLException


Copyright © GeoTools. All Rights Reserved.