/**
 * 
 */
package gov.va.med.cds.persistence;

import weblogic.jdbc.extensions.WLConnection;

import com.intersys.jdbc.CacheConnection;

import java.sql.Connection;

/**
 * @author vhaislbhagav
 *
 */
public class WeblogicPooledCacheConnectionUnwrapper
    implements
        PooledConnectionUnwrapperInterface
{

    /* (non-Javadoc)
     * @see gov.va.med.cds.persistence.PooledConnectionUnwrapperInterface#setTimeout(java.sql.Connection, java.lang.Integer)
     */
    @Override
    public Connection unwrap( Connection wrapped ) throws Exception
    {
        return ( CacheConnection )( ( WLConnection )wrapped ).getVendorConnection();
    }

}
