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

nl.topicus.jdbc.AbstractCloudSpannerFetcher Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy