nl.topicus.jdbc.AbstractCloudSpannerFetcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
package nl.topicus.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import nl.topicus.jdbc.metadata.AbstractCloudSpannerWrapper;
public abstract class AbstractCloudSpannerFetcher extends AbstractCloudSpannerWrapper
{
private int fetchSize = 1;
public void setFetchDirection(int direction) throws SQLException
{
if (direction != ResultSet.FETCH_FORWARD)
throw new SQLFeatureNotSupportedException("Only FETCH_FORWARD is supported");
}
public int getFetchDirection() throws SQLException
{
return ResultSet.FETCH_FORWARD;
}
public void setFetchSize(int rows) throws SQLException
{
this.fetchSize = rows;
}
public int getFetchSize() throws SQLException
{
return fetchSize;
}
}