nl.knowledgeplaza.util.pool
Class JdbcConnectionPoolFactoryServletUtils

java.lang.Object
  extended by nl.knowledgeplaza.util.pool.JdbcConnectionPoolFactoryServletUtils

public class JdbcConnectionPoolFactoryServletUtils
extends Object

Servlet related helper methods for the JdbcConnectionPoolFactory. The splitup of these methods to this class eliminates any imports of servlet classes in JdbcConnectionPoolFactory, which would cause usage of JdbcConnectionPoolFactory outside a webapp to be problematic.

Version:
$Revision: 1.2 $

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
JdbcConnectionPoolFactoryServletUtils()
           
 
Method Summary
static ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request, String poolname)
           
static ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request, String poolname, String applicationname)
           
static ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request, String poolname, String applicationname, boolean autocommit)
          Deprecated.  
static ObjectPool getConnectionPool(javax.servlet.http.HttpSession session, String poolname)
           
static ObjectPool getConnectionPool(javax.servlet.http.HttpSession session, String poolname, String applicationname)
           
static ObjectPool getConnectionPool(javax.servlet.ServletContext context, String poolname)
           
static ObjectPool getConnectionPool(javax.servlet.ServletContext context, String poolname, ConfigurationProperties configurationProperties)
          Get the database pool from a servlet context or create one
static ObjectPool getConnectionPool(javax.servlet.ServletContext context, String poolname, String applicationname)
          Get the database pool from a servlet context or create one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

JdbcConnectionPoolFactoryServletUtils

public JdbcConnectionPoolFactoryServletUtils()
Method Detail

getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.ServletContext context,
                                           String poolname,
                                           ConfigurationProperties configurationProperties)
Get the database pool from a servlet context or create one


getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.ServletContext context,
                                           String poolname,
                                           String applicationname)
Get the database pool from a servlet context or create one


getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.ServletContext context,
                                           String poolname)

getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.http.HttpSession session,
                                           String poolname,
                                           String applicationname)

getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.http.HttpSession session,
                                           String poolname)

getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request,
                                           String poolname,
                                           String applicationname)

getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request,
                                           String poolname)

getConnectionPool

public static ObjectPool getConnectionPool(javax.servlet.http.HttpServletRequest request,
                                           String poolname,
                                           String applicationname,
                                           boolean autocommit)
Deprecated. 

for backward compatibility, autocommit is not used!!!



Copyright © 2011 KnowledgePlaza. All Rights Reserved.