com.mchange.v2.c3p0.impl.SnatchFromSetResultSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.c3p0
Show all versions of org.apache.servicemix.bundles.c3p0
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
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;
}
}