abstractpublic class ConnectionPoolAdapterSingleton (Code)
This singleton abstract class provides an implementation of the
Adapter design pattern which provides a way to use any database
connection pool you want. A default implementation is provided.
This singleton class creates the concrete singleton on run-time the first
time is needed. The name of such a concrete class is obtained by using the
standard "MyPersonalizer" configuration mechanism
es.udc.mypersonalizer.kernel.config.ConnectionPoolAdapterSingletonConfig ).
There is a configuration parameter that specifies the name of the concrete
singleton class.
author: Fernando Bellas author: Daniel Fernandez author: Abel Muinho since: 1.0
Gets the ping query to be executed before returning a connection. A
ping query is a SQL command (i.e. a SELECT) that will be
executed before a connection is returned. Such a query should
execute very quickly. It returns null if no ping query will
be used.
the ping query or null