io.ebeaninternal.server.core.SpiResultSet Maven / Gradle / Ivy
package io.ebeaninternal.server.core;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
* Hold the JDBC PreparedStatement and ResultSet.
*
* These both must be closed properly when done.
*/
public final class SpiResultSet {
private final PreparedStatement statement;
private final ResultSet resultSet;
public SpiResultSet(PreparedStatement statement, ResultSet resultSet) {
this.statement = statement;
this.resultSet = resultSet;
}
public PreparedStatement statement() {
return statement;
}
public ResultSet resultSet() {
return resultSet;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy