public class SimpleResultSet extends Object implements ResultSet, ResultSetMetaData
SimpleResultSet rs = new SimpleResultSet();
rs.addColumn("ID", Types.INTEGER, 10, 0);
rs.addColumn("NAME", Types.VARCHAR, 255, 0);
rs.addRow(0, "Hello" });
rs.addRow(1, "World" });
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleResultSet.SimpleArray
A simple array implementation,
backed by an object array
|
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_SENSITIVEcolumnNoNulls, columnNullable, columnNullableUnknown| Constructor and Description |
|---|
SimpleResultSet()
This constructor is used if the result set is later populated with addRow.
|
SimpleResultSet(SimpleRowSource source)
This constructor is used if the result set should retrieve the rows using
the specified row source object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row)
INTERNAL
|
void |
addColumn(String name,
int sqlType,
int precision,
int scale)
Adds a column to the result set.
|
void |
addRow(Object... row)
Add a new row to the result set.
|
void |
afterLast()
INTERNAL
|
void |
beforeFirst()
Moves the current position to before the first row, that means resets the
result set.
|
void |
cancelRowUpdates()
INTERNAL
|
void |
clearWarnings()
INTERNAL
|
void |
close()
Closes the result set and releases the resources.
|
void |
deleteRow()
INTERNAL
|
int |
findColumn(String columnLabel)
Searches for a specific column in the result set.
|
boolean |
first()
INTERNAL
|
Array |
getArray(int columnIndex)
Returns the value as a java.sql.Array.
|
Array |
getArray(String columnLabel)
Returns the value as a java.sql.Array.
|
InputStream |
getAsciiStream(int columnIndex)
INTERNAL
|
InputStream |
getAsciiStream(String columnLabel)
INTERNAL
|
boolean |
getAutoClose()
Get the current auto-close behavior.
|
BigDecimal |
getBigDecimal(int columnIndex)
Returns the value as a java.math.BigDecimal.
|
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated.
INTERNAL
|
BigDecimal |
getBigDecimal(String columnLabel)
Returns the value as a java.math.BigDecimal.
|
BigDecimal |
getBigDecimal(String columnLabel,
int scale)
Deprecated.
INTERNAL
|
InputStream |
getBinaryStream(int columnIndex)
Returns the value as a java.io.InputStream.
|
InputStream |
getBinaryStream(String columnLabel)
Returns the value as a java.io.InputStream.
|
Blob |
getBlob(int columnIndex)
Returns the value as a java.sql.Blob.
|
Blob |
getBlob(String columnLabel)
Returns the value as a java.sql.Blob.
|
boolean |
getBoolean(int columnIndex)
Returns the value as a boolean.
|
boolean |
getBoolean(String columnLabel)
Returns the value as a boolean.
|
byte |
getByte(int columnIndex)
Returns the value as a byte.
|
byte |
getByte(String columnLabel)
Returns the value as a byte.
|
byte[] |
getBytes(int columnIndex)
Returns the value as a byte array.
|
byte[] |
getBytes(String columnLabel)
Returns the value as a byte array.
|
String |
getCatalogName(int columnIndex)
Returns null.
|
Reader |
getCharacterStream(int columnIndex)
Returns the value as a java.io.Reader.
|
Reader |
getCharacterStream(String columnLabel)
Returns the value as a java.io.Reader.
|
Clob |
getClob(int columnIndex)
Returns the value as a java.sql.Clob.
|
Clob |
getClob(String columnLabel)
Returns the value as a java.sql.Clob.
|
String |
getColumnClassName(int columnIndex)
Returns the Java class name if this column.
|
int |
getColumnCount()
Returns the column count.
|
int |
getColumnDisplaySize(int columnIndex)
Returns 15.
|
String |
getColumnLabel(int columnIndex)
Returns the column label.
|
String |
getColumnName(int columnIndex)
Returns the column name.
|
int |
getColumnType(int columnIndex)
Returns the SQL type.
|
String |
getColumnTypeName(int columnIndex)
Returns the data type name of a column.
|
int |
getConcurrency()
Returns ResultSet.CONCUR_READ_ONLY.
|
String |
getCursorName()
INTERNAL
|
Date |
getDate(int columnIndex)
Returns the value as an java.sql.Date.
|
Date |
getDate(int columnIndex,
Calendar cal)
INTERNAL
|
Date |
getDate(String columnLabel)
Returns the value as a java.sql.Date.
|
Date |
getDate(String columnLabel,
Calendar cal)
INTERNAL
|
double |
getDouble(int columnIndex)
Returns the value as an double.
|
double |
getDouble(String columnLabel)
Returns the value as a double.
|
int |
getFetchDirection()
Returns ResultSet.FETCH_FORWARD.
|
int |
getFetchSize()
Returns 0.
|
float |
getFloat(int columnIndex)
Returns the value as a float.
|
float |
getFloat(String columnLabel)
Returns the value as a float.
|
int |
getHoldability()
Returns the current result set holdability.
|
int |
getInt(int columnIndex)
Returns the value as an int.
|
int |
getInt(String columnLabel)
Returns the value as an int.
|
long |
getLong(int columnIndex)
Returns the value as a long.
|
long |
getLong(String columnLabel)
Returns the value as a long.
|
ResultSetMetaData |
getMetaData()
Returns a reference to itself.
|
Object |
getObject(int columnIndex)
Returns the value as an Object.
|
Object |
getObject(int columnIndex,
Map<String,Class<?>> map)
INTERNAL
|
Object |
getObject(String columnLabel)
Returns the value as an Object.
|
Object |
getObject(String colName,
Map<String,Class<?>> map)
INTERNAL
|
int |
getPrecision(int columnIndex)
Returns the precision.
|
Ref |
getRef(int columnIndex)
INTERNAL
|
Ref |
getRef(String colName)
INTERNAL
|
int |
getRow()
Returns the row number (1, 2,...) or 0 for no row.
|
int |
getScale(int columnIndex)
Returns the scale.
|
String |
getSchemaName(int columnIndex)
Returns null.
|
short |
getShort(int columnIndex)
Returns the value as a short.
|
short |
getShort(String columnLabel)
Returns the value as a short.
|
Statement |
getStatement()
Returns null.
|
String |
getString(int columnIndex)
Returns the value as a String.
|
String |
getString(String columnLabel)
Returns the value as a String.
|
String |
getTableName(int columnIndex)
Returns null.
|
Time |
getTime(int columnIndex)
Returns the value as an java.sql.Time.
|
Time |
getTime(int columnIndex,
Calendar cal)
INTERNAL
|
Time |
getTime(String columnLabel)
Returns the value as a java.sql.Time.
|
Time |
getTime(String columnLabel,
Calendar cal)
INTERNAL
|
Timestamp |
getTimestamp(int columnIndex)
Returns the value as an java.sql.Timestamp.
|
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
INTERNAL
|
Timestamp |
getTimestamp(String columnLabel)
Returns the value as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(String columnLabel,
Calendar cal)
INTERNAL
|
int |
getType()
Returns ResultSet.TYPE_FORWARD_ONLY.
|
InputStream |
getUnicodeStream(int columnIndex)
Deprecated.
INTERNAL
|
InputStream |
getUnicodeStream(String columnLabel)
Deprecated.
INTERNAL
|
URL |
getURL(int columnIndex)
INTERNAL
|
URL |
getURL(String columnLabel)
INTERNAL
|
SQLWarning |
getWarnings()
Returns null.
|
void |
insertRow()
INTERNAL
|
boolean |
isAfterLast()
INTERNAL
|
boolean |
isAutoIncrement(int columnIndex)
Returns false.
|
boolean |
isBeforeFirst()
INTERNAL
|
boolean |
isCaseSensitive(int columnIndex)
Returns true.
|
boolean |
isClosed()
Returns whether this result set has been closed.
|
boolean |
isCurrency(int columnIndex)
Returns false.
|
boolean |
isDefinitelyWritable(int columnIndex)
Returns false.
|
boolean |
isFirst()
INTERNAL
|
boolean |
isLast()
INTERNAL
|
int |
isNullable(int columnIndex)
Returns ResultSetMetaData.columnNullableUnknown.
|
boolean |
isReadOnly(int columnIndex)
Returns true.
|
boolean |
isSearchable(int columnIndex)
Returns true.
|
boolean |
isSigned(int columnIndex)
Returns true.
|
boolean |
isWritable(int columnIndex)
Returns false.
|
boolean |
last()
INTERNAL
|
void |
moveToCurrentRow()
INTERNAL
|
void |
moveToInsertRow()
INTERNAL
|
boolean |
next()
Moves the cursor to the next row of the result set.
|
boolean |
previous()
INTERNAL
|
void |
refreshRow()
INTERNAL
|
boolean |
relative(int offset)
INTERNAL
|
boolean |
rowDeleted()
INTERNAL
|
boolean |
rowInserted()
INTERNAL
|
boolean |
rowUpdated()
INTERNAL
|
void |
setAutoClose(boolean autoClose)
Set the auto-close behavior.
|
void |
setFetchDirection(int direction)
INTERNAL
|
void |
setFetchSize(int rows)
INTERNAL
|
void |
updateArray(int columnIndex,
Array x)
INTERNAL
|
void |
updateArray(String columnLabel,
Array x)
INTERNAL
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
INTERNAL
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
int length)
INTERNAL
|
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
INTERNAL
|
void |
updateBigDecimal(String columnLabel,
BigDecimal x)
INTERNAL
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
INTERNAL
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
int length)
INTERNAL
|
void |
updateBlob(int columnIndex,
Blob x)
INTERNAL
|
void |
updateBlob(String columnLabel,
Blob x)
INTERNAL
|
void |
updateBoolean(int columnIndex,
boolean x)
INTERNAL
|
void |
updateBoolean(String columnLabel,
boolean x)
INTERNAL
|
void |
updateByte(int columnIndex,
byte x)
INTERNAL
|
void |
updateByte(String columnLabel,
byte x)
INTERNAL
|
void |
updateBytes(int columnIndex,
byte[] x)
INTERNAL
|
void |
updateBytes(String columnLabel,
byte[] x)
INTERNAL
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
INTERNAL
|
void |
updateCharacterStream(String columnLabel,
Reader reader,
int length)
INTERNAL
|
void |
updateClob(int columnIndex,
Clob x)
INTERNAL
|
void |
updateClob(String columnLabel,
Clob x)
INTERNAL
|
void |
updateDate(int columnIndex,
Date x)
INTERNAL
|
void |
updateDate(String columnLabel,
Date x)
INTERNAL
|
void |
updateDouble(int columnIndex,
double x)
INTERNAL
|
void |
updateDouble(String columnLabel,
double x)
INTERNAL
|
void |
updateFloat(int columnIndex,
float x)
INTERNAL
|
void |
updateFloat(String columnLabel,
float x)
INTERNAL
|
void |
updateInt(int columnIndex,
int x)
INTERNAL
|
void |
updateInt(String columnLabel,
int x)
INTERNAL
|
void |
updateLong(int columnIndex,
long x)
INTERNAL
|
void |
updateLong(String columnLabel,
long x)
INTERNAL
|
void |
updateNull(int columnIndex)
INTERNAL
|
void |
updateNull(String columnLabel)
INTERNAL
|
void |
updateObject(int columnIndex,
Object x)
INTERNAL
|
void |
updateObject(int columnIndex,
Object x,
int scale)
INTERNAL
|
void |
updateObject(String columnLabel,
Object x)
INTERNAL
|
void |
updateObject(String columnLabel,
Object x,
int scale)
INTERNAL
|
void |
updateRef(int columnIndex,
Ref x)
INTERNAL
|
void |
updateRef(String columnLabel,
Ref x)
INTERNAL
|
void |
updateRow()
INTERNAL
|
void |
updateShort(int columnIndex,
short x)
INTERNAL
|
void |
updateShort(String columnLabel,
short x)
INTERNAL
|
void |
updateString(int columnIndex,
String x)
INTERNAL
|
void |
updateString(String columnLabel,
String x)
INTERNAL
|
void |
updateTime(int columnIndex,
Time x)
INTERNAL
|
void |
updateTime(String columnLabel,
Time x)
INTERNAL
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
INTERNAL
|
void |
updateTimestamp(String columnLabel,
Timestamp x)
INTERNAL
|
boolean |
wasNull()
Returns whether the last column accessed was null.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRowId, getRowId, getSQLXML, getSQLXML, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXMLisWrapperFor, unwrappublic SimpleResultSet()
public SimpleResultSet(SimpleRowSource source)
source - the row sourcepublic void addColumn(String name, int sqlType, int precision, int scale)
name - null is replaced with C1, C2,...sqlType - the value returned in getColumnType(..) (ignored internally)precision - the precisionscale - the scalepublic void addRow(Object... row)
row - the row as an array of objectspublic int getConcurrency()
getConcurrency in interface ResultSetpublic int getFetchDirection()
getFetchDirection in interface ResultSetpublic int getFetchSize()
getFetchSize in interface ResultSetpublic int getRow()
public int getType()
public void close()
close in interface AutoCloseableclose in interface ResultSetpublic boolean next()
throws SQLException
next in interface ResultSetSQLExceptionpublic void beforeFirst()
throws SQLException
beforeFirst in interface ResultSetSQLExceptionpublic boolean wasNull()
public byte getByte(int columnIndex)
throws SQLException
getByte in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic double getDouble(int columnIndex)
throws SQLException
getDouble in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic float getFloat(int columnIndex)
throws SQLException
getFloat in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic int getInt(int columnIndex)
throws SQLException
getInt in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic long getLong(int columnIndex)
throws SQLException
getLong in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic short getShort(int columnIndex)
throws SQLException
getShort in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic boolean getBoolean(int columnIndex)
throws SQLException
getBoolean in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic byte[] getBytes(int columnIndex)
throws SQLException
getBytes in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Object getObject(int columnIndex) throws SQLException
getObject in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic String getString(int columnIndex) throws SQLException
getString in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic byte getByte(String columnLabel) throws SQLException
getByte in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic double getDouble(String columnLabel) throws SQLException
getDouble in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic float getFloat(String columnLabel) throws SQLException
getFloat in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic int findColumn(String columnLabel) throws SQLException
findColumn in interface ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic int getInt(String columnLabel) throws SQLException
getInt in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic long getLong(String columnLabel) throws SQLException
getLong in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic short getShort(String columnLabel) throws SQLException
getShort in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic boolean getBoolean(String columnLabel) throws SQLException
getBoolean in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic byte[] getBytes(String columnLabel) throws SQLException
getBytes in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Date getDate(int columnIndex) throws SQLException
getDate in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic ResultSetMetaData getMetaData()
getMetaData in interface ResultSetpublic SQLWarning getWarnings()
getWarnings in interface ResultSetpublic Statement getStatement()
getStatement in interface ResultSetpublic Time getTime(int columnIndex) throws SQLException
getTime in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Array getArray(int columnIndex) throws SQLException
getArray in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Clob getClob(int columnIndex) throws SQLException
getClob in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Blob getBlob(int columnIndex) throws SQLException
getBlob in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream in interface ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic Object getObject(String columnLabel) throws SQLException
getObject in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic String getString(String columnLabel) throws SQLException
getString in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic BigDecimal getBigDecimal(String columnLabel) throws SQLException
getBigDecimal in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Date getDate(String columnLabel) throws SQLException
getDate in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Time getTime(String columnLabel) throws SQLException
getTime in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Timestamp getTimestamp(String columnLabel) throws SQLException
getTimestamp in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Array getArray(String columnLabel) throws SQLException
getArray in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Reader getCharacterStream(String columnLabel) throws SQLException
getCharacterStream in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Clob getClob(String columnLabel) throws SQLException
getClob in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic Blob getBlob(String columnLabel) throws SQLException
getBlob in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic InputStream getBinaryStream(String columnLabel) throws SQLException
getBinaryStream in interface ResultSetcolumnLabel - the column labelSQLExceptionpublic int getColumnCount()
getColumnCount in interface ResultSetMetaDatapublic int getColumnDisplaySize(int columnIndex)
getColumnDisplaySize in interface ResultSetMetaDatacolumnIndex - (1,2,...)public int getColumnType(int columnIndex)
throws SQLException
getColumnType in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic int getPrecision(int columnIndex)
throws SQLException
getPrecision in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic int getScale(int columnIndex)
throws SQLException
getScale in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic int isNullable(int columnIndex)
isNullable in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isAutoIncrement(int columnIndex)
isAutoIncrement in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isCaseSensitive(int columnIndex)
isCaseSensitive in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isCurrency(int columnIndex)
isCurrency in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isDefinitelyWritable(int columnIndex)
isDefinitelyWritable in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isReadOnly(int columnIndex)
isReadOnly in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isSearchable(int columnIndex)
isSearchable in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isSigned(int columnIndex)
isSigned in interface ResultSetMetaDatacolumnIndex - (1,2,...)public boolean isWritable(int columnIndex)
isWritable in interface ResultSetMetaDatacolumnIndex - (1,2,...)public String getCatalogName(int columnIndex)
getCatalogName in interface ResultSetMetaDatacolumnIndex - (1,2,...)public String getColumnClassName(int columnIndex) throws SQLException
getColumnClassName in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic String getColumnLabel(int columnIndex) throws SQLException
getColumnLabel in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic String getColumnName(int columnIndex) throws SQLException
getColumnName in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic String getColumnTypeName(int columnIndex) throws SQLException
getColumnTypeName in interface ResultSetMetaDatacolumnIndex - (1,2,...)SQLExceptionpublic String getSchemaName(int columnIndex)
getSchemaName in interface ResultSetMetaDatacolumnIndex - (1,2,...)public String getTableName(int columnIndex)
getTableName in interface ResultSetMetaDatacolumnIndex - (1,2,...)public void clearWarnings()
clearWarnings in interface ResultSetpublic void afterLast()
throws SQLException
afterLast in interface ResultSetSQLExceptionpublic void cancelRowUpdates()
throws SQLException
cancelRowUpdates in interface ResultSetSQLExceptionpublic void updateNull(String columnLabel) throws SQLException
updateNull in interface ResultSetSQLExceptionpublic void deleteRow()
throws SQLException
deleteRow in interface ResultSetSQLExceptionpublic void insertRow()
throws SQLException
insertRow in interface ResultSetSQLExceptionpublic void moveToCurrentRow()
throws SQLException
moveToCurrentRow in interface ResultSetSQLExceptionpublic void moveToInsertRow()
throws SQLException
moveToInsertRow in interface ResultSetSQLExceptionpublic void refreshRow()
throws SQLException
refreshRow in interface ResultSetSQLExceptionpublic void updateRow()
throws SQLException
updateRow in interface ResultSetSQLExceptionpublic boolean first()
throws SQLException
first in interface ResultSetSQLExceptionpublic boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetSQLExceptionpublic boolean isBeforeFirst()
throws SQLException
isBeforeFirst in interface ResultSetSQLExceptionpublic boolean isFirst()
throws SQLException
isFirst in interface ResultSetSQLExceptionpublic boolean isLast()
throws SQLException
isLast in interface ResultSetSQLExceptionpublic boolean last()
throws SQLException
last in interface ResultSetSQLExceptionpublic boolean previous()
throws SQLException
previous in interface ResultSetSQLExceptionpublic boolean rowDeleted()
throws SQLException
rowDeleted in interface ResultSetSQLExceptionpublic boolean rowInserted()
throws SQLException
rowInserted in interface ResultSetSQLExceptionpublic boolean rowUpdated()
throws SQLException
rowUpdated in interface ResultSetSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface ResultSetSQLExceptionpublic void setFetchSize(int rows)
throws SQLException
setFetchSize in interface ResultSetSQLExceptionpublic void updateNull(int columnIndex)
throws SQLException
updateNull in interface ResultSetSQLExceptionpublic boolean absolute(int row)
throws SQLException
absolute in interface ResultSetSQLExceptionpublic boolean relative(int offset)
throws SQLException
relative in interface ResultSetSQLExceptionpublic void updateByte(int columnIndex,
byte x)
throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateDouble(int columnIndex,
double x)
throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateFloat(int columnIndex,
float x)
throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateInt(int columnIndex,
int x)
throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateLong(int columnIndex,
long x)
throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateShort(int columnIndex,
short x)
throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateBoolean(int columnIndex,
boolean x)
throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateBytes(int columnIndex,
byte[] x)
throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(int columnIndex)
getAsciiStream in interface ResultSetpublic InputStream getUnicodeStream(int columnIndex)
getUnicodeStream in interface ResultSetpublic void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateObject(int columnIndex,
Object x)
throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(int columnIndex,
Object x,
int scale)
throws SQLException
updateObject in interface ResultSetSQLExceptionpublic String getCursorName() throws SQLException
getCursorName in interface ResultSetSQLExceptionpublic void updateString(int columnIndex,
String x)
throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateByte(String columnLabel, byte x) throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateDouble(String columnLabel, double x) throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateFloat(String columnLabel, float x) throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateInt(String columnLabel, int x) throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateLong(String columnLabel, long x) throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateShort(String columnLabel, short x) throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateBoolean(String columnLabel, boolean x) throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateBytes(String columnLabel, byte[] x) throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLException
updateBigDecimal in interface ResultSetSQLExceptionpublic URL getURL(int columnIndex) throws SQLException
getURL in interface ResultSetSQLExceptionpublic void updateArray(int columnIndex,
Array x)
throws SQLException
updateArray in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
Blob x)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Clob x)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateDate(int columnIndex,
Date x)
throws SQLException
updateDate in interface ResultSetSQLExceptionpublic Ref getRef(int columnIndex) throws SQLException
getRef in interface ResultSetSQLExceptionpublic void updateRef(int columnIndex,
Ref x)
throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateTime(int columnIndex,
Time x)
throws SQLException
updateTime in interface ResultSetSQLExceptionpublic void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(String columnLabel) throws SQLException
getAsciiStream in interface ResultSetSQLExceptionpublic InputStream getUnicodeStream(String columnLabel) throws SQLException
getUnicodeStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateObject(String columnLabel, Object x) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(String columnLabel, Object x, int scale) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic Object getObject(int columnIndex, Map<String,Class<?>> map) throws SQLException
getObject in interface ResultSetSQLExceptionpublic void updateString(String columnLabel, String x) throws SQLException
updateString in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException
updateBigDecimal in interface ResultSetSQLExceptionpublic URL getURL(String columnLabel) throws SQLException
getURL in interface ResultSetSQLExceptionpublic void updateArray(String columnLabel, Array x) throws SQLException
updateArray in interface ResultSetSQLExceptionpublic void updateBlob(String columnLabel, Blob x) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateClob(String columnLabel, Clob x) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateDate(String columnLabel, Date x) throws SQLException
updateDate in interface ResultSetSQLExceptionpublic Date getDate(int columnIndex, Calendar cal) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Ref getRef(String colName) throws SQLException
getRef in interface ResultSetSQLExceptionpublic void updateRef(String columnLabel, Ref x) throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateTime(String columnLabel, Time x) throws SQLException
updateTime in interface ResultSetSQLExceptionpublic Time getTime(int columnIndex, Calendar cal) throws SQLException
getTime in interface ResultSetSQLExceptionpublic void updateTimestamp(String columnLabel, Timestamp x) throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic Object getObject(String colName, Map<String,Class<?>> map) throws SQLException
getObject in interface ResultSetSQLExceptionpublic Date getDate(String columnLabel, Calendar cal) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Time getTime(String columnLabel, Calendar cal) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic int getHoldability()
getHoldability in interface ResultSetpublic boolean isClosed()
public void setAutoClose(boolean autoClose)
autoClose - the new valuepublic boolean getAutoClose()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.