Example usage for org.apache.commons.dbcp PoolableConnectionFactory subclass-usage

List of usage examples for org.apache.commons.dbcp PoolableConnectionFactory subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.dbcp PoolableConnectionFactory subclass-usage.

Usage

From source file com.tera.common.database.dbcp.CPoolableConnectionFactory.java

/**
 * @author ATracer
 */
public class CPoolableConnectionFactory extends PoolableConnectionFactory {

    private final int validationTimeout;

From source file com.aionemu.commons.database.PoolableConnectionFactoryAE.java

/**
 * Implementation of PoolableConnectionFactory that Override validateConnection(Connection conn) for testing if
 * connection is still valid, but instead doing manual query [like it is in default implementation] we will use
 * Connection.isValid(timeout) from 1.6 [MySql implementation is just doing ping to Sql server]
 *
 * @author -Nemesiss-

From source file org.artifactory.storage.db.spring.ArtifactoryPoolableConnectionFactory.java

/**
 * This class inherits from {@link org.apache.commons.dbcp.PoolableConnectionFactory} just to override the
 * {@link org.apache.commons.dbcp.PoolableConnectionFactory#passivateObject(java.lang.Object)} method which calls
 * setAutoCommit(true) unnecessarily every time a connection is returned to the pool (this call goes to the database
 * and also when activated the framework will call setAutoCommit(false)).
 *