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

io.jenetics.facilejdbc.Row Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.jenetics.facilejdbc;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;

/**
 * This class is a wrapper around the JDBC {@link ResultSet} without all
 * update methods. It just allows you to access the data of the current
 * row.
 *
 * @apiNote
 * This class is intended only to be used in the {@link RowParser} interfaces.
 * Client code should not hold references of this class outside of this narrow
 * scope, since the wrapped {@link ResultSet} is move forward and calling the
 * getter methods will return different results, or even throw an
 * {@link SQLException}, if the underlying result-set has been closed.
 *
 * @see ResultSet
 * @see RowParser
 *
 * @author Franz Wilhelmstötter
 * @version 1.0
 * @since 1.0
 */
public interface Row {

	boolean wasNull() throws SQLException;

	String getString(int columnIndex) throws SQLException;

	boolean getBoolean(int columnIndex) throws SQLException;

	byte getByte(int columnIndex) throws SQLException;

	short getShort(int columnIndex) throws SQLException;

	int getInt(int columnIndex) throws SQLException;

	long getLong(int columnIndex) throws SQLException;

	float getFloat(int columnIndex) throws SQLException;

	double getDouble(int columnIndex) throws SQLException;

	byte[] getBytes(int columnIndex) throws SQLException;

	Date getDate(int columnIndex) throws SQLException;

	Time getTime(int columnIndex) throws SQLException;

	Timestamp getTimestamp(int columnIndex) throws SQLException;

	InputStream getAsciiStream(int columnIndex)
		throws SQLException;

	InputStream getBinaryStream(int columnIndex)
			throws SQLException;

	String getString(String columnLabel) throws SQLException;

	boolean getBoolean(String columnLabel) throws SQLException;

	byte getByte(String columnLabel) throws SQLException;

	short getShort(String columnLabel) throws SQLException;

	int getInt(String columnLabel) throws SQLException;

	long getLong(String columnLabel) throws SQLException;

	float getFloat(String columnLabel) throws SQLException;

	double getDouble(String columnLabel) throws SQLException;

	byte[] getBytes(String columnLabel) throws SQLException;

	Date getDate(String columnLabel) throws SQLException;

	Time getTime(String columnLabel) throws SQLException;

	Timestamp getTimestamp(String columnLabel) throws SQLException;

	InputStream getAsciiStream(String columnLabel)
				throws SQLException;

	InputStream getBinaryStream(String columnLabel)
					throws SQLException;

	ResultSetMetaData getMetaData() throws SQLException;

	Object getObject(int columnIndex) throws SQLException;

	Object getObject(String columnLabel) throws SQLException;

	int findColumn(String columnLabel) throws SQLException;

	Reader getCharacterStream(int columnIndex)
						throws SQLException;

	Reader getCharacterStream(String columnLabel)
							throws SQLException;

	BigDecimal getBigDecimal(int columnIndex) throws SQLException;

	BigDecimal getBigDecimal(String columnLabel)
								throws SQLException;

	int getRow() throws SQLException;

	int getType() throws SQLException;

	Object getObject(
		int columnIndex,
		Map> map
	) throws SQLException;

	Ref getRef(int columnIndex) throws SQLException;

	Blob getBlob(int columnIndex) throws SQLException;

	Clob getClob(int columnIndex) throws SQLException;

	Array getArray(int columnIndex) throws SQLException;

	Object getObject(
		String columnLabel,
		Map> map
	) throws SQLException;

	Ref getRef(String columnLabel) throws SQLException;

	Blob getBlob(String columnLabel) throws SQLException;

	Clob getClob(String columnLabel) throws SQLException;

	Array getArray(String columnLabel) throws SQLException;

	Date getDate(int columnIndex, Calendar cal)
		throws SQLException;

	Date getDate(String columnLabel, Calendar cal)
		throws SQLException;

	Time getTime(int columnIndex, Calendar cal)
		throws SQLException;

	Time getTime(String columnLabel, Calendar cal)
		throws SQLException;

	Timestamp getTimestamp(int columnIndex, Calendar cal)
		throws SQLException;

	Timestamp getTimestamp(String columnLabel, Calendar cal)
		throws SQLException;

	URL getURL(int columnIndex) throws SQLException;

	URL getURL(String columnLabel) throws SQLException;

	RowId getRowId(int columnIndex) throws SQLException;

	RowId getRowId(String columnLabel) throws SQLException;

	NClob getNClob(int columnIndex) throws SQLException;

	NClob getNClob(String columnLabel) throws SQLException;

	SQLXML getSQLXML(int columnIndex) throws SQLException;

	SQLXML getSQLXML(String columnLabel) throws SQLException;

	String getNString(int columnIndex) throws SQLException;

	String getNString(String columnLabel) throws SQLException;

	Reader getNCharacterStream(int columnIndex)
		throws SQLException;

	Reader getNCharacterStream(String columnLabel)
		throws SQLException;

	 T getObject(int columnIndex, Class type)
		throws SQLException;

	 T getObject(String columnLabel, Class type)
		throws SQLException;

	 T unwrap(Class iface) throws SQLException;

	boolean isWrapperFor(Class iface) throws SQLException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy