public abstract class TajoResultSetBase extends Object implements ResultSet
Modifier and Type | Field and Description |
---|---|
protected Tuple |
cur |
protected int |
curRow |
protected Schema |
schema |
protected long |
totalRow |
protected boolean |
wasNull |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
Constructor and Description |
---|
TajoResultSetBase() |
protected int curRow
protected long totalRow
protected boolean wasNull
protected Schema schema
protected Tuple cur
protected void init()
public Tuple getCurrentTuple()
public void beforeFirst() throws SQLException
beforeFirst
in interface ResultSet
SQLException
public boolean getBoolean(int fieldId) throws SQLException
getBoolean
in interface ResultSet
SQLException
public boolean getBoolean(String colName) throws SQLException
getBoolean
in interface ResultSet
SQLException
public byte getByte(int fieldId) throws SQLException
getByte
in interface ResultSet
SQLException
public byte getByte(String name) throws SQLException
getByte
in interface ResultSet
SQLException
public byte[] getBytes(int fieldId) throws SQLException
getBytes
in interface ResultSet
SQLException
public byte[] getBytes(String name) throws SQLException
getBytes
in interface ResultSet
SQLException
public double getDouble(int fieldId) throws SQLException
getDouble
in interface ResultSet
SQLException
public double getDouble(String name) throws SQLException
getDouble
in interface ResultSet
SQLException
public float getFloat(int fieldId) throws SQLException
getFloat
in interface ResultSet
SQLException
public float getFloat(String name) throws SQLException
getFloat
in interface ResultSet
SQLException
public int getInt(int fieldId) throws SQLException
getInt
in interface ResultSet
SQLException
public int getInt(String name) throws SQLException
getInt
in interface ResultSet
SQLException
public long getLong(int fieldId) throws SQLException
getLong
in interface ResultSet
SQLException
public long getLong(String name) throws SQLException
getLong
in interface ResultSet
SQLException
public Object getObject(int fieldId) throws SQLException
getObject
in interface ResultSet
SQLException
public Object getObject(String name) throws SQLException
getObject
in interface ResultSet
SQLException
public short getShort(int fieldId) throws SQLException
getShort
in interface ResultSet
SQLException
public short getShort(String name) throws SQLException
getShort
in interface ResultSet
SQLException
public String getString(int fieldId) throws SQLException
getString
in interface ResultSet
SQLException
public String getString(String name) throws SQLException
getString
in interface ResultSet
SQLException
public boolean isWrapperFor(Class<?> clazz) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public <T> T unwrap(Class<T> clazz) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean absolute(int row) throws SQLException
absolute
in interface ResultSet
SQLException
public void afterLast() throws SQLException
afterLast
in interface ResultSet
SQLException
public void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
public void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
public int findColumn(String colName) throws SQLException
findColumn
in interface ResultSet
SQLException
public boolean first() throws SQLException
first
in interface ResultSet
SQLException
public Array getArray(int index) throws SQLException
getArray
in interface ResultSet
SQLException
public Array getArray(String name) throws SQLException
getArray
in interface ResultSet
SQLException
public InputStream getAsciiStream(int index) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public InputStream getAsciiStream(String name) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(int index) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(String name) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(int index, int x) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(String name, int x) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public InputStream getBinaryStream(int index) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public InputStream getBinaryStream(String name) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public Blob getBlob(int index) throws SQLException
getBlob
in interface ResultSet
SQLException
public Blob getBlob(String name) throws SQLException
getBlob
in interface ResultSet
SQLException
public Reader getCharacterStream(int index) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public Reader getCharacterStream(String name) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public Clob getClob(int index) throws SQLException
getClob
in interface ResultSet
SQLException
public Clob getClob(String name) throws SQLException
getClob
in interface ResultSet
SQLException
public int getConcurrency() throws SQLException
getConcurrency
in interface ResultSet
SQLException
public String getCursorName() throws SQLException
getCursorName
in interface ResultSet
SQLException
public Date getDate(int index) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(String name) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(int index, Calendar x) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(String name, Calendar x) throws SQLException
getDate
in interface ResultSet
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
SQLException
public int getHoldability() throws SQLException
getHoldability
in interface ResultSet
SQLException
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface ResultSet
SQLException
public Reader getNCharacterStream(int index) throws SQLException
getNCharacterStream
in interface ResultSet
SQLException
public Reader getNCharacterStream(String name) throws SQLException
getNCharacterStream
in interface ResultSet
SQLException
public NClob getNClob(int index) throws SQLException
getNClob
in interface ResultSet
SQLException
public NClob getNClob(String name) throws SQLException
getNClob
in interface ResultSet
SQLException
public String getNString(int index) throws SQLException
getNString
in interface ResultSet
SQLException
public String getNString(String name) throws SQLException
getNString
in interface ResultSet
SQLException
public Object getObject(int index, Map<String,Class<?>> x) throws SQLException
getObject
in interface ResultSet
SQLException
public Object getObject(String name, Map<String,Class<?>> x) throws SQLException
getObject
in interface ResultSet
SQLException
public <T> T getObject(String name, Class<T> x) throws SQLException
getObject
in interface ResultSet
SQLException
public <T> T getObject(int index, Class<T> x) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(int index) throws SQLException
getRef
in interface ResultSet
SQLException
public Ref getRef(String name) throws SQLException
getRef
in interface ResultSet
SQLException
public int getRow() throws SQLException
getRow
in interface ResultSet
SQLException
public RowId getRowId(int index) throws SQLException
getRowId
in interface ResultSet
SQLException
public RowId getRowId(String name) throws SQLException
getRowId
in interface ResultSet
SQLException
public SQLXML getSQLXML(int index) throws SQLException
getSQLXML
in interface ResultSet
SQLException
public SQLXML getSQLXML(String name) throws SQLException
getSQLXML
in interface ResultSet
SQLException
public Statement getStatement() throws SQLException
getStatement
in interface ResultSet
SQLException
public Time getTime(int index) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(String name) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(int index, Calendar x) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(String name, Calendar x) throws SQLException
getTime
in interface ResultSet
SQLException
public Timestamp getTimestamp(int index) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(String name) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(int index, Calendar x) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(String name, Calendar x) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public int getType() throws SQLException
getType
in interface ResultSet
SQLException
public URL getURL(int index) throws SQLException
getURL
in interface ResultSet
SQLException
public URL getURL(String name) throws SQLException
getURL
in interface ResultSet
SQLException
public InputStream getUnicodeStream(int index) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public InputStream getUnicodeStream(String name) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLException
public void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
public boolean isAfterLast() throws SQLException
isAfterLast
in interface ResultSet
SQLException
public boolean isBeforeFirst() throws SQLException
isBeforeFirst
in interface ResultSet
SQLException
public boolean isClosed() throws SQLException
isClosed
in interface ResultSet
SQLException
public boolean isFirst() throws SQLException
isFirst
in interface ResultSet
SQLException
public boolean isLast() throws SQLException
isLast
in interface ResultSet
SQLException
public boolean last() throws SQLException
last
in interface ResultSet
SQLException
public void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
public void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
public boolean next() throws SQLException
next
in interface ResultSet
SQLException
protected abstract Tuple nextTuple() throws IOException
IOException
public boolean previous() throws SQLException
previous
in interface ResultSet
SQLException
public void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
public boolean relative(int rows) throws SQLException
relative
in interface ResultSet
SQLException
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
SQLException
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
SQLException
public boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
SQLException
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface ResultSet
SQLException
public void setFetchSize(int size) throws SQLException
setFetchSize
in interface ResultSet
SQLException
public void updateArray(int index, Array x) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateArray(String name, Array x) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateAsciiStream(int index, InputStream x) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(String name, InputStream x) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(int index, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(String name, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(int index, InputStream x, long length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(String name, InputStream x, long length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBigDecimal(int index, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateBigDecimal(String name, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateBinaryStream(int index, InputStream x) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(String name, InputStream x) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(int index, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(String name, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(int index, InputStream x, long length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(String name, InputStream x, long length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBlob(int index, Blob x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String name, Blob x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(int index, InputStream x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String name, InputStream x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(int index, InputStream x, long length) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String name, InputStream x, long length) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBoolean(int index, boolean x) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateBoolean(String name, boolean x) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateByte(int index, byte x) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateByte(String name, byte x) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateBytes(int index, byte[] x) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateBytes(String name, byte[] x) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateCharacterStream(int index, Reader x) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(String name, Reader x) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(int index, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(String name, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(int index, Reader x, long length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(String name, Reader x, long length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateClob(int index, Clob x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String name, Clob x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(int index, Reader x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String name, Reader x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(int index, Reader x, long length) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String name, Reader x, long length) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateDate(int index, Date x) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateDate(String name, Date x) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateDouble(int index, double x) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateDouble(String name, double x) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateFloat(int index, float x) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateFloat(String name, float x) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateInt(int index, int x) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateInt(String name, int x) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateLong(int index, long x) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateLong(String name, long x) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateNCharacterStream(int index, Reader x) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(String name, Reader x) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(int index, Reader x, long length) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(String name, Reader x, long length) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNClob(int index, NClob x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String name, NClob x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(int index, Reader x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String name, Reader x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(int index, Reader x, long length) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String name, Reader x, long length) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNString(int arg0, String x) throws SQLException
updateNString
in interface ResultSet
SQLException
public void updateNString(String name, String x) throws SQLException
updateNString
in interface ResultSet
SQLException
public void updateNull(int arg0) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateNull(String name) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateObject(int index, Object x) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(String name, Object x) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(int index, Object x, int length) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(String name, Object x, int length) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateRef(int index, Ref x) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRef(String name, Ref x) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
public void updateRowId(int index, RowId arg1) throws SQLException
updateRowId
in interface ResultSet
SQLException
public void updateRowId(String name, RowId x) throws SQLException
updateRowId
in interface ResultSet
SQLException
public void updateSQLXML(int index, SQLXML arg1) throws SQLException
updateSQLXML
in interface ResultSet
SQLException
public void updateSQLXML(String name, SQLXML x) throws SQLException
updateSQLXML
in interface ResultSet
SQLException
public void updateShort(int index, short x) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateShort(String name, short x) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateString(int index, String x) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateString(String name, String arg1) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateTime(int index, Time x) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTime(String name, Time x) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTimestamp(int index, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public void updateTimestamp(String name, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public boolean wasNull() throws SQLException
wasNull
in interface ResultSet
SQLException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.