All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mchange.v2.c3p0.impl.SnatchFromSetResultSet Maven / Gradle / Ivy

There is a newer version: 0.9.5.5_1
Show newest version
package com.mchange.v2.c3p0.impl;

import java.sql.*;
import java.util.Set;
import com.mchange.v2.sql.filter.FilterResultSet;

final class SnatchFromSetResultSet extends FilterResultSet
{
    Set activeResultSets;

    SnatchFromSetResultSet(Set activeResultSets)
    { this.activeResultSets = activeResultSets; }

    public synchronized void setInner(ResultSet inner)
    {
	this.inner = inner;
	activeResultSets.add( inner );
    }
    
    public synchronized void close() throws SQLException
    { 
	inner.close();
	activeResultSets.remove( inner ); 
	inner = null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy