Skip to content
Permalink
Browse files

refactor: deprecated PGPoolingDataSource (#739)

Since 42.0.0, instead of this class you should use a fully featured connection pool
like HikariCP, vibur-dbcp, commons-dbcp, c3p0, etc.

It also deprecates the backwards compatibility classes of DataSource with a link
to the correct implementation.

closes #729
  • Loading branch information
jorsol authored and vlsi committed Jan 27, 2017
1 parent 6b3a1ef commit 55e2cd16cc7e30b1370e777d71556aa625bace9f
@@ -54,7 +54,11 @@
* </p>
*
* @author Aaron Mulder (ammulder@chariotsolutions.com)
*
* @deprecated Since 42.0.0, instead of this class you should use a fully featured connection pool
* like HikariCP, vibur-dbcp, commons-dbcp, c3p0, etc.
*/
@Deprecated
public class PGPoolingDataSource extends BaseDataSource implements DataSource {
protected static ConcurrentMap<String, PGPoolingDataSource> dataSources =
new ConcurrentHashMap<String, PGPoolingDataSource>();
@@ -7,5 +7,9 @@

import org.postgresql.ds.PGConnectionPoolDataSource;

/**
* @deprecated Please use {@link PGConnectionPoolDataSource}
*/
@Deprecated
public class ConnectionPool extends PGConnectionPoolDataSource {
}
@@ -7,5 +7,9 @@

import org.postgresql.ds.PGPoolingDataSource;

/**
* @deprecated Since 42.0.0, see {@link PGPoolingDataSource}
*/
@Deprecated
public class PoolingDataSource extends PGPoolingDataSource {
}
@@ -7,5 +7,9 @@

import org.postgresql.ds.PGSimpleDataSource;

/**
* @deprecated Please use {@link PGSimpleDataSource}
*/
@Deprecated
public class SimpleDataSource extends PGSimpleDataSource {
}
@@ -7,5 +7,9 @@

import org.postgresql.ds.PGConnectionPoolDataSource;

/**
* @deprecated Please use {@link PGConnectionPoolDataSource}
*/
@Deprecated
public class Jdbc3ConnectionPool extends PGConnectionPoolDataSource {
}
@@ -7,5 +7,9 @@

import org.postgresql.ds.PGPoolingDataSource;

/**
* @deprecated Since 42.0.0, see {@link PGPoolingDataSource}
*/
@Deprecated
public class Jdbc3PoolingDataSource extends PGPoolingDataSource {
}
@@ -7,5 +7,9 @@

import org.postgresql.ds.PGSimpleDataSource;

/**
* @deprecated Please use {@link PGSimpleDataSource}
*/
@Deprecated
public class Jdbc3SimpleDataSource extends PGSimpleDataSource {
}

0 comments on commit 55e2cd1

Please sign in to comment.
You can’t perform that action at this time.