public class MockResultSet extends Object implements ResultSet, Cloneable
ResultSet.
Can be used to add simulated database entries.
You can add Java objects of any type. This
mock implementation does not care about SQL
data types. It tries to perform the necessary
type conversions for the Java objects (e.g. it will convert a
String "1" to int 1).
Please check out the documentation of ResultSet
for the description of the methods in this interface.
The additional methods are described here.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 |
|---|
MockResultSet(String id) |
MockResultSet(String id,
String cursorName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row) |
void |
addColumn()
Adds a column to the simulated database table.
|
void |
addColumn(List values)
Adds a column to the simulated database table.
|
void |
addColumn(Object[] values)
Adds a column to the simulated database table.
|
void |
addColumn(String columnName)
Adds a column to the simulated database table.
|
void |
addColumn(String columnName,
List values)
Adds a column to the simulated database table.
|
void |
addColumn(String columnName,
Object[] values)
Adds a column to the simulated database table.
|
void |
addRow(List values)
Adds a row to the simulated database table.
|
void |
addRow(Object[] values)
Adds a row to the simulated database table.
|
void |
afterLast() |
void |
beforeFirst() |
void |
cancelRowUpdates() |
void |
clearWarnings() |
Object |
clone()
Copies this
ResultSet. |
void |
close() |
void |
deleteRow() |
int |
findColumn(String columnName) |
boolean |
first() |
Array |
getArray(int columnIndex) |
Array |
getArray(String columnName) |
InputStream |
getAsciiStream(int columnIndex) |
InputStream |
getAsciiStream(String columnName) |
BigDecimal |
getBigDecimal(int columnIndex) |
BigDecimal |
getBigDecimal(int columnIndex,
int scale) |
BigDecimal |
getBigDecimal(String columnName) |
BigDecimal |
getBigDecimal(String columnName,
int scale) |
InputStream |
getBinaryStream(int columnIndex) |
InputStream |
getBinaryStream(String columnName) |
Blob |
getBlob(int columnIndex) |
Blob |
getBlob(String columnName) |
boolean |
getBoolean(int columnIndex) |
boolean |
getBoolean(String columnName) |
byte |
getByte(int columnIndex) |
byte |
getByte(String columnName) |
byte[] |
getBytes(int columnIndex) |
byte[] |
getBytes(String columnName) |
Reader |
getCharacterStream(int columnIndex) |
Reader |
getCharacterStream(String columnName) |
Clob |
getClob(int columnIndex) |
Clob |
getClob(String columnName) |
List |
getColumn(int number)
Returns the column with the specified number.
|
List |
getColumn(String name)
Returns the column with the specified name.
|
int |
getColumnCount()
Returns the current number of columns.
|
int |
getConcurrency() |
String |
getCursorName() |
Date |
getDate(int columnIndex) |
Date |
getDate(int columnIndex,
Calendar calendar) |
Date |
getDate(String columnName) |
Date |
getDate(String columnName,
Calendar calendar) |
double |
getDouble(int columnIndex) |
double |
getDouble(String columnName) |
int |
getFetchDirection() |
int |
getFetchSize() |
float |
getFloat(int columnIndex) |
float |
getFloat(String columnName) |
int |
getHoldability() |
String |
getId()
Returns the id of this
ResultSet. |
int |
getInt(int columnIndex) |
int |
getInt(String columnName) |
long |
getLong(int columnIndex) |
long |
getLong(String columnName) |
ResultSetMetaData |
getMetaData() |
Reader |
getNCharacterStream(int columnIndex) |
Reader |
getNCharacterStream(String columnLabel) |
NClob |
getNClob(int columnIndex) |
NClob |
getNClob(String columnName) |
String |
getNString(int columnIndex) |
String |
getNString(String columnLabel) |
Object |
getObject(int columnIndex) |
Object |
getObject(int columnIndex,
Class type) |
Object |
getObject(int columnIndex,
Map map) |
Object |
getObject(String columnName) |
Object |
getObject(String columnLabel,
Class type) |
Object |
getObject(String colName,
Map map) |
Ref |
getRef(int columnIndex) |
Ref |
getRef(String columnName) |
int |
getRow() |
List |
getRow(int number)
Returns the row with the specified number.
|
int |
getRowCount()
Returns the current number of rows.
|
RowId |
getRowId(int columnIndex) |
RowId |
getRowId(String columnName) |
short |
getShort(int columnIndex) |
short |
getShort(String columnName) |
SQLXML |
getSQLXML(int columnIndex) |
SQLXML |
getSQLXML(String columnName) |
Statement |
getStatement() |
String |
getString(int columnIndex) |
String |
getString(String columnName) |
Time |
getTime(int columnIndex) |
Time |
getTime(int columnIndex,
Calendar calendar) |
Time |
getTime(String columnName) |
Time |
getTime(String columnName,
Calendar calendar) |
Timestamp |
getTimestamp(int columnIndex) |
Timestamp |
getTimestamp(int columnIndex,
Calendar calendar) |
Timestamp |
getTimestamp(String columnName) |
Timestamp |
getTimestamp(String columnName,
Calendar calendar) |
int |
getType() |
InputStream |
getUnicodeStream(int columnIndex) |
InputStream |
getUnicodeStream(String columnName) |
URL |
getURL(int columnIndex) |
URL |
getURL(String columnName) |
SQLWarning |
getWarnings() |
void |
insertRow() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isClosed()
Returns if this
ResultSet is closed. |
boolean |
isColumnEqual(int number,
List columnData)
Returns if the column with the specified number is
equal to the specified data.
|
boolean |
isColumnEqual(String name,
List columnData)
Returns if the column with the specified name is
equal to the specified data.
|
boolean |
isEqual(MockResultSet resultSet)
Returns if the specified
ResultSet is equal to
this ResultSet. |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isRowEqual(int number,
List rowData)
Returns if the row with the specified number is
equal to the specified data.
|
boolean |
isWrapperFor(Class iface) |
boolean |
last() |
void |
moveToCurrentRow() |
void |
moveToInsertRow() |
boolean |
next() |
boolean |
previous() |
void |
refreshRow() |
boolean |
relative(int rows) |
boolean |
rowDeleted() |
boolean |
rowDeleted(int number)
Returns if the row with the specified number was deleted
The first row has the number 1.
|
boolean |
rowInserted() |
boolean |
rowInserted(int number)
Returns if the row with the specified number was inserted
The first row has the number 1.
|
boolean |
rowUpdated() |
boolean |
rowUpdated(int number)
Returns if the row with the specified number was updated
The first row has the number 1.
|
void |
setColumnsCaseSensitive(boolean columnsCaseSensitive)
Set if column names are case sensitive.
|
void |
setCursorName(String cursorName)
Sets the cursor name.
|
void |
setDatabaseView(boolean databaseView)
The
MockResultSet keeps the data that's
stored in the simulated database and a copy of the data
that represents the current ResultSet data. |
void |
setFetchDirection(int fetchDirection) |
void |
setFetchSize(int fetchSize) |
void |
setResultSetConcurrency(int resultSetConcurrency)
Sets the result set concurrency.
|
void |
setResultSetHoldability(int resultSetHoldability)
Sets the result set holdability.
|
void |
setResultSetMetaData(ResultSetMetaData resultSetMetaData)
Sets the
ResultSetMetaData for this ResultSet. |
void |
setResultSetType(int resultSetType)
Sets the result set type.
|
void |
setStatement(Statement statement)
Sets the
Statement for this ResultSet. |
String |
toString() |
Object |
unwrap(Class iface) |
void |
updateArray(int columnIndex,
Array array) |
void |
updateArray(String columnName,
Array array) |
void |
updateAsciiStream(int columnIndex,
InputStream stream) |
void |
updateAsciiStream(int columnIndex,
InputStream stream,
int length) |
void |
updateAsciiStream(int columnIndex,
InputStream stream,
long length) |
void |
updateAsciiStream(String columnName,
InputStream stream) |
void |
updateAsciiStream(String columnName,
InputStream stream,
int length) |
void |
updateAsciiStream(String columnName,
InputStream stream,
long length) |
void |
updateBigDecimal(int columnIndex,
BigDecimal bigDecimal) |
void |
updateBigDecimal(String columnName,
BigDecimal bigDecimal) |
void |
updateBinaryStream(int columnIndex,
InputStream stream) |
void |
updateBinaryStream(int columnIndex,
InputStream stream,
int length) |
void |
updateBinaryStream(int columnIndex,
InputStream stream,
long length) |
void |
updateBinaryStream(String columnName,
InputStream stream) |
void |
updateBinaryStream(String columnName,
InputStream stream,
int length) |
void |
updateBinaryStream(String columnName,
InputStream stream,
long length) |
void |
updateBlob(int columnIndex,
Blob blob) |
void |
updateBlob(int columnIndex,
InputStream stream) |
void |
updateBlob(int columnIndex,
InputStream stream,
long length) |
void |
updateBlob(String columnName,
Blob blob) |
void |
updateBlob(String columnName,
InputStream stream) |
void |
updateBlob(String columnName,
InputStream stream,
long length) |
void |
updateBoolean(int columnIndex,
boolean booleanValue) |
void |
updateBoolean(String columnName,
boolean booleanValue) |
void |
updateByte(int columnIndex,
byte byteValue) |
void |
updateByte(String columnName,
byte byteValue) |
void |
updateBytes(int columnIndex,
byte[] byteArray) |
void |
updateBytes(String columnName,
byte[] byteArray) |
void |
updateCharacterStream(int columnIndex,
Reader reader) |
void |
updateCharacterStream(int columnIndex,
Reader reader,
int length) |
void |
updateCharacterStream(int columnIndex,
Reader reader,
long length) |
void |
updateCharacterStream(String columnName,
Reader reader) |
void |
updateCharacterStream(String columnName,
Reader reader,
int length) |
void |
updateCharacterStream(String columnName,
Reader reader,
long length) |
void |
updateClob(int columnIndex,
Clob clob) |
void |
updateClob(int columnIndex,
Reader reader) |
void |
updateClob(int columnIndex,
Reader reader,
long length) |
void |
updateClob(String columnName,
Clob clob) |
void |
updateClob(String columnName,
Reader reader) |
void |
updateClob(String columnName,
Reader reader,
long length) |
void |
updateDate(int columnIndex,
Date date) |
void |
updateDate(String columnName,
Date date) |
void |
updateDouble(int columnIndex,
double doubleValue) |
void |
updateDouble(String columnName,
double doubleValue) |
void |
updateFloat(int columnIndex,
float floatValue) |
void |
updateFloat(String columnName,
float floatValue) |
void |
updateInt(int columnIndex,
int intValue) |
void |
updateInt(String columnName,
int intValue) |
void |
updateLong(int columnIndex,
long longValue) |
void |
updateLong(String columnName,
long longValue) |
void |
updateNCharacterStream(int columnIndex,
Reader reader) |
void |
updateNCharacterStream(int columnIndex,
Reader reader,
long length) |
void |
updateNCharacterStream(String columnLabel,
Reader reader) |
void |
updateNCharacterStream(String columnLabel,
Reader reader,
long length) |
void |
updateNClob(int columnIndex,
NClob nClob) |
void |
updateNClob(int columnIndex,
Reader reader) |
void |
updateNClob(int columnIndex,
Reader reader,
long length) |
void |
updateNClob(String columnName,
NClob nClob) |
void |
updateNClob(String columnName,
Reader reader) |
void |
updateNClob(String columnName,
Reader reader,
long length) |
void |
updateNString(int columnIndex,
String value) |
void |
updateNString(String columnLabel,
String value) |
void |
updateNull(int columnIndex) |
void |
updateNull(String columnName) |
void |
updateObject(int columnIndex,
Object value) |
void |
updateObject(int columnIndex,
Object value,
int scale) |
void |
updateObject(String columnName,
Object value) |
void |
updateObject(String columnName,
Object value,
int scale) |
void |
updateRef(int columnIndex,
Ref ref) |
void |
updateRef(String columnName,
Ref ref) |
void |
updateRow() |
void |
updateRowId(int columnIndex,
RowId rowId) |
void |
updateRowId(String columnName,
RowId rowId) |
void |
updateShort(int columnIndex,
short shortValue) |
void |
updateShort(String columnName,
short shortValue) |
void |
updateSQLXML(int columnIndex,
SQLXML xmlObject) |
void |
updateSQLXML(String columnName,
SQLXML xmlObject) |
void |
updateString(int columnIndex,
String value) |
void |
updateString(String columnName,
String value) |
void |
updateTime(int columnIndex,
Time time) |
void |
updateTime(String columnName,
Time time) |
void |
updateTimestamp(int columnIndex,
Timestamp timeStamp) |
void |
updateTimestamp(String columnName,
Timestamp timeStamp) |
boolean |
wasNull() |
public MockResultSet(String id)
public void setColumnsCaseSensitive(boolean columnsCaseSensitive)
false. Please note, that switching this
attribute clears and resets the complete ResultSet.columnsCaseSensitive - are column names case sensitivepublic Object clone()
ResultSet. The data of the
ResultSet is copied using the
ParameterUtil.copyParameter(java.lang.Object)
method.public String getId()
ResultSet. Ids are used
to identify ResultSet objects in tests, because
they are usually cloned when executing statements, so
you cannot rely on the object identity.ResultSetpublic boolean isClosed()
ResultSet is closed.public void setResultSetMetaData(ResultSetMetaData resultSetMetaData)
ResultSetMetaData for this ResultSet.
The specified object will be returned when calling getMetaData().
If no ResultSetMetaData is set, the method getMetaData()
will return an object of MockResultSetMetaData. The
MockResultSetMetaData returns default values for most
of its attributes (however the correct number of columns will be
returned). Usually you do not have to set the ResultSetMetaData.resultSetMetaData - the ResultSetMetaDatapublic void setStatement(Statement statement)
Statement for this ResultSet.
The ResultSet takes the result set type, result
set concurrency and the fetch direction from the specified
Statement.statement - the statementpublic void setCursorName(String cursorName)
ResultSet.cursorName - the cursor namepublic void setResultSetType(int resultSetType)
ResultSet, but in tests
it can make sense to change it.resultSetType - the result set typepublic void setResultSetConcurrency(int resultSetConcurrency)
ResultSet, but in tests
it can make sense to change it.resultSetConcurrency - the result set concurrencypublic void setResultSetHoldability(int resultSetHoldability)
ResultSet, but in tests
it can make sense to change it.resultSetHoldability - the result set holdabilitypublic void setDatabaseView(boolean databaseView)
MockResultSet keeps the data that's
stored in the simulated database and a copy of the data
that represents the current ResultSet data.
The update methods only update the
ResultSet data. This data will be persisted
when you call updateRow(). When you set databaseView
to true the get methods will return the
data in the database, otherwise the current ResultSet
data is returned.databaseView - false = get the data from the
ResultSet, true = get the data
from the database, default is falsepublic void addRow(Object[] values)
addColumn methods) the missing columns will
be added automatically. Automatically created columns
will get the name ColumnX where X is
the column index.values - the row data as array, the array index
corresponds to the column index, i.e.
values[0] will be stored in the first column
and so onpublic void addRow(List values)
addColumn methods) the missing columns will
be added automatically. Automatically created columns
will get the name ColumnX where X is
the column index.values - the row data as List, the index
in the List corresponds to the column
index, i.e. values.get(0) will be stored in the first
column and so onpublic void addColumn()
public void addColumn(String columnName)
columnName - the column namepublic void addColumn(Object[] values)
null
values.values - the column data as array, the array index
corresponds to the row index, i.e.
values[0] will be stored in the first row
and so onpublic void addColumn(List values)
null
values.values - the column data as List, the index
in the List corresponds to the row
index, i.e. values.get(0) will be stored in the first
row and so onpublic void addColumn(String columnName, Object[] values)
null
values.columnName - the column namevalues - the column data as array, the array index
corresponds to the row index, i.e.
values[0] will be stored in the first row
and so onpublic void addColumn(String columnName, List values)
null
values.columnName - the column namevalues - the column data as List, the index
in the List corresponds to the row
index, i.e. values.get(0) will be stored in the first
row and so onpublic int getRowCount()
public int getColumnCount()
public boolean rowInserted(int number)
number - the number of the rowtrue if the row was inserted,
false otherwisepublic boolean rowDeleted(int number)
number - the number of the rowtrue if the row was deleted,
false otherwisepublic boolean rowUpdated(int number)
number - the number of the rowtrue if the row was updated,
false otherwisepublic boolean isRowEqual(int number,
List rowData)
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object).
The first row has the number 1. If the compared parameters are not of
the same type (and cannot be equal according to the
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object) method) they
will be converted to a string with the toString() method before
comparison.number - the number of the rowrowData - the row datatrue if the row is equal to the specified data,
false otherwisepublic boolean isColumnEqual(int number,
List columnData)
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object).
The first column has the number 1. If the compared parameters are not of
the same type (and cannot be equal according to the
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object) method) they
will be converted to a string with the toString() method before
comparison.number - the number of the columncolumnData - the column datatrue if the column is equal to the specified data,
false otherwisepublic boolean isColumnEqual(String name, List columnData)
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object).
The first column has the number 1. If the compared parameters are not of
the same type (and cannot be equal according to the
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object) method) they
will be converted to a string with the toString() method before
comparison.name - the name of the columncolumnData - the column datatrue if the column is equal to the specified data,
false otherwisepublic boolean isEqual(MockResultSet resultSet)
ResultSet is equal to
this ResultSet. If the compared parameters are not of
the same type (and cannot be equal according to the
ParameterUtil.compareParameter(java.lang.Object, java.lang.Object) method) they
will be converted to a string with the toString() method before
comparison.true if the two ResultSet objects are equal,
false otherwisepublic List getRow(int number)
null will
be returned. The result of this method depends
on the setting of databaseView.
See setDatabaseView(boolean).number - the number of the rowListpublic List getColumn(int number)
null will
be returned.number - the number of the columnListpublic List getColumn(String name)
null will be returned.name - the name of the columnListpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface ResultSetSQLExceptionpublic boolean wasNull()
throws SQLException
wasNull in interface ResultSetSQLExceptionpublic Object getObject(int columnIndex) throws SQLException
getObject in interface ResultSetSQLExceptionpublic Object getObject(String columnName) throws SQLException
getObject in interface ResultSetSQLExceptionpublic Object getObject(int columnIndex, Class type) throws SQLException
getObject in interface ResultSetSQLExceptionpublic Object getObject(String columnLabel, Class type) throws SQLException
getObject in interface ResultSetSQLExceptionpublic Object getObject(int columnIndex, Map map) throws SQLException
getObject in interface ResultSetSQLExceptionpublic Object getObject(String colName, Map map) throws SQLException
getObject in interface ResultSetSQLExceptionpublic String getString(int columnIndex) throws SQLException
getString in interface ResultSetSQLExceptionpublic String getString(String columnName) throws SQLException
getString in interface ResultSetSQLExceptionpublic String getNString(int columnIndex) throws SQLException
getNString in interface ResultSetSQLExceptionpublic String getNString(String columnLabel) throws SQLException
getNString in interface ResultSetSQLExceptionpublic boolean getBoolean(int columnIndex)
throws SQLException
getBoolean in interface ResultSetSQLExceptionpublic boolean getBoolean(String columnName) throws SQLException
getBoolean in interface ResultSetSQLExceptionpublic byte getByte(int columnIndex)
throws SQLException
getByte in interface ResultSetSQLExceptionpublic byte getByte(String columnName) throws SQLException
getByte in interface ResultSetSQLExceptionpublic short getShort(int columnIndex)
throws SQLException
getShort in interface ResultSetSQLExceptionpublic short getShort(String columnName) throws SQLException
getShort in interface ResultSetSQLExceptionpublic int getInt(int columnIndex)
throws SQLException
getInt in interface ResultSetSQLExceptionpublic int getInt(String columnName) throws SQLException
getInt in interface ResultSetSQLExceptionpublic long getLong(int columnIndex)
throws SQLException
getLong in interface ResultSetSQLExceptionpublic long getLong(String columnName) throws SQLException
getLong in interface ResultSetSQLExceptionpublic float getFloat(int columnIndex)
throws SQLException
getFloat in interface ResultSetSQLExceptionpublic float getFloat(String columnName) throws SQLException
getFloat in interface ResultSetSQLExceptionpublic double getDouble(int columnIndex)
throws SQLException
getDouble in interface ResultSetSQLExceptionpublic double getDouble(String columnName) throws SQLException
getDouble in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(String columnName, int scale) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(String columnName) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic byte[] getBytes(int columnIndex)
throws SQLException
getBytes in interface ResultSetSQLExceptionpublic byte[] getBytes(String columnName) throws SQLException
getBytes in interface ResultSetSQLExceptionpublic Date getDate(int columnIndex) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Date getDate(String columnName) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Date getDate(int columnIndex, Calendar calendar) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Date getDate(String columnName, Calendar calendar) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Time getTime(int columnIndex) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Time getTime(String columnName) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Time getTime(int columnIndex, Calendar calendar) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Time getTime(String columnName, Calendar calendar) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(String columnName) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(int columnIndex, Calendar calendar) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(String columnName, Calendar calendar) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic URL getURL(int columnIndex) throws SQLException
getURL in interface ResultSetSQLExceptionpublic URL getURL(String columnName) throws SQLException
getURL in interface ResultSetSQLExceptionpublic Blob getBlob(int columnIndex) throws SQLException
getBlob in interface ResultSetSQLExceptionpublic Blob getBlob(String columnName) throws SQLException
getBlob in interface ResultSetSQLExceptionpublic Clob getClob(int columnIndex) throws SQLException
getClob in interface ResultSetSQLExceptionpublic Clob getClob(String columnName) throws SQLException
getClob in interface ResultSetSQLExceptionpublic NClob getNClob(int columnIndex) throws SQLException
getNClob in interface ResultSetSQLExceptionpublic NClob getNClob(String columnName) throws SQLException
getNClob in interface ResultSetSQLExceptionpublic SQLXML getSQLXML(int columnIndex) throws SQLException
getSQLXML in interface ResultSetSQLExceptionpublic SQLXML getSQLXML(String columnName) throws SQLException
getSQLXML in interface ResultSetSQLExceptionpublic Array getArray(int columnIndex) throws SQLException
getArray in interface ResultSetSQLExceptionpublic Array getArray(String columnName) throws SQLException
getArray in interface ResultSetSQLExceptionpublic Ref getRef(int columnIndex) throws SQLException
getRef in interface ResultSetSQLExceptionpublic Ref getRef(String columnName) throws SQLException
getRef in interface ResultSetSQLExceptionpublic RowId getRowId(int columnIndex) throws SQLException
getRowId in interface ResultSetSQLExceptionpublic RowId getRowId(String columnName) throws SQLException
getRowId in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(String columnName) throws SQLException
getAsciiStream in interface ResultSetSQLExceptionpublic InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream in interface ResultSetSQLExceptionpublic InputStream getBinaryStream(String columnName) throws SQLException
getBinaryStream in interface ResultSetSQLExceptionpublic InputStream getUnicodeStream(int columnIndex) throws SQLException
getUnicodeStream in interface ResultSetSQLExceptionpublic InputStream getUnicodeStream(String columnName) throws SQLException
getUnicodeStream in interface ResultSetSQLExceptionpublic Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream in interface ResultSetSQLExceptionpublic Reader getCharacterStream(String columnName) throws SQLException
getCharacterStream in interface ResultSetSQLExceptionpublic Reader getNCharacterStream(int columnIndex) throws SQLException
getNCharacterStream in interface ResultSetSQLExceptionpublic Reader getNCharacterStream(String columnLabel) throws SQLException
getNCharacterStream in interface ResultSetSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface ResultSetSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface ResultSetSQLExceptionpublic String getCursorName() throws SQLException
getCursorName in interface ResultSetSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface ResultSetSQLExceptionpublic Statement getStatement() throws SQLException
getStatement in interface ResultSetSQLExceptionpublic boolean isBeforeFirst()
throws SQLException
isBeforeFirst in interface ResultSetSQLExceptionpublic boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetSQLExceptionpublic boolean isFirst()
throws SQLException
isFirst in interface ResultSetSQLExceptionpublic boolean isLast()
throws SQLException
isLast in interface ResultSetSQLExceptionpublic void beforeFirst()
throws SQLException
beforeFirst in interface ResultSetSQLExceptionpublic void afterLast()
throws SQLException
afterLast in interface ResultSetSQLExceptionpublic boolean next()
throws SQLException
next in interface ResultSetSQLExceptionpublic boolean first()
throws SQLException
first in interface ResultSetSQLExceptionpublic boolean last()
throws SQLException
last in interface ResultSetSQLExceptionpublic boolean absolute(int row)
throws SQLException
absolute in interface ResultSetSQLExceptionpublic boolean relative(int rows)
throws SQLException
relative in interface ResultSetSQLExceptionpublic int getRow()
throws SQLException
getRow in interface ResultSetSQLExceptionpublic boolean previous()
throws SQLException
previous in interface ResultSetSQLExceptionpublic void setFetchDirection(int fetchDirection)
throws SQLException
setFetchDirection in interface ResultSetSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface ResultSetSQLExceptionpublic void setFetchSize(int fetchSize)
throws SQLException
setFetchSize in interface ResultSetSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface ResultSetSQLExceptionpublic int getType()
throws SQLException
getType in interface ResultSetSQLExceptionpublic int getConcurrency()
throws SQLException
getConcurrency in interface ResultSetSQLExceptionpublic int getHoldability()
throws SQLException
getHoldability in interface ResultSetSQLExceptionpublic int findColumn(String columnName) throws SQLException
findColumn in interface ResultSetSQLExceptionpublic void updateObject(int columnIndex,
Object value)
throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(int columnIndex,
Object value,
int scale)
throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(String columnName, Object value, int scale) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(String columnName, Object value) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateString(int columnIndex,
String value)
throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateString(String columnName, String value) throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateNString(int columnIndex,
String value)
throws SQLException
updateNString in interface ResultSetSQLExceptionpublic void updateNString(String columnLabel, String value) throws SQLException
updateNString in interface ResultSetSQLExceptionpublic void updateNull(int columnIndex)
throws SQLException
updateNull in interface ResultSetSQLExceptionpublic void updateNull(String columnName) throws SQLException
updateNull in interface ResultSetSQLExceptionpublic void updateBoolean(int columnIndex,
boolean booleanValue)
throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateBoolean(String columnName, boolean booleanValue) throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateByte(int columnIndex,
byte byteValue)
throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateByte(String columnName, byte byteValue) throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateShort(int columnIndex,
short shortValue)
throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateShort(String columnName, short shortValue) throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateInt(int columnIndex,
int intValue)
throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateInt(String columnName, int intValue) throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateLong(int columnIndex,
long longValue)
throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateLong(String columnName, long longValue) throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateFloat(int columnIndex,
float floatValue)
throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateFloat(String columnName, float floatValue) throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateDouble(int columnIndex,
double doubleValue)
throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateDouble(String columnName, double doubleValue) throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateBigDecimal(int columnIndex,
BigDecimal bigDecimal)
throws SQLException
updateBigDecimal in interface ResultSetSQLExceptionpublic void updateBigDecimal(String columnName, BigDecimal bigDecimal) throws SQLException
updateBigDecimal in interface ResultSetSQLExceptionpublic void updateBytes(int columnIndex,
byte[] byteArray)
throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic void updateBytes(String columnName, byte[] byteArray) throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic void updateDate(int columnIndex,
Date date)
throws SQLException
updateDate in interface ResultSetSQLExceptionpublic void updateDate(String columnName, Date date) throws SQLException
updateDate in interface ResultSetSQLExceptionpublic void updateTime(int columnIndex,
Time time)
throws SQLException
updateTime in interface ResultSetSQLExceptionpublic void updateTime(String columnName, Time time) throws SQLException
updateTime in interface ResultSetSQLExceptionpublic void updateTimestamp(int columnIndex,
Timestamp timeStamp)
throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic void updateTimestamp(String columnName, Timestamp timeStamp) throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic void updateAsciiStream(int columnIndex,
InputStream stream,
int length)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnName, InputStream stream, int length) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(int columnIndex,
InputStream stream,
long length)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnName, InputStream stream, long length) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(int columnIndex,
InputStream stream)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnName, InputStream stream) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream stream,
int length)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnName, InputStream stream, int length) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream stream,
long length)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnName, InputStream stream, long length) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream stream)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnName, InputStream stream) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader reader,
int length)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader reader,
long length)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnName, Reader reader, long length) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader reader)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnName, Reader reader) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(int columnIndex,
Reader reader)
throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(int columnIndex,
Reader reader,
long length)
throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateRef(int columnIndex,
Ref ref)
throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateRef(String columnName, Ref ref) throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateRowId(int columnIndex,
RowId rowId)
throws SQLException
updateRowId in interface ResultSetSQLExceptionpublic void updateRowId(String columnName, RowId rowId) throws SQLException
updateRowId in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
Blob blob)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, Blob blob) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
InputStream stream,
long length)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, InputStream stream, long length) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
InputStream stream)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, InputStream stream) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Clob clob)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Clob clob) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Reader reader,
long length)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Reader reader, long length) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Reader reader)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Reader reader) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateNClob(int columnIndex,
NClob nClob)
throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnName, NClob nClob) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(int columnIndex,
Reader reader,
long length)
throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnName, Reader reader, long length) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(int columnIndex,
Reader reader)
throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnName, Reader reader) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateSQLXML(int columnIndex,
SQLXML xmlObject)
throws SQLException
updateSQLXML in interface ResultSetSQLExceptionpublic void updateSQLXML(String columnName, SQLXML xmlObject) throws SQLException
updateSQLXML in interface ResultSetSQLExceptionpublic void updateArray(int columnIndex,
Array array)
throws SQLException
updateArray in interface ResultSetSQLExceptionpublic void updateArray(String columnName, Array array) throws SQLException
updateArray in interface ResultSetSQLExceptionpublic boolean rowUpdated()
throws SQLException
rowUpdated in interface ResultSetSQLExceptionpublic boolean rowInserted()
throws SQLException
rowInserted in interface ResultSetSQLExceptionpublic boolean rowDeleted()
throws SQLException
rowDeleted in interface ResultSetSQLExceptionpublic void insertRow()
throws SQLException
insertRow in interface ResultSetSQLExceptionpublic void updateRow()
throws SQLException
updateRow in interface ResultSetSQLExceptionpublic void deleteRow()
throws SQLException
deleteRow in interface ResultSetSQLExceptionpublic void refreshRow()
throws SQLException
refreshRow in interface ResultSetSQLExceptionpublic void cancelRowUpdates()
throws SQLException
cancelRowUpdates in interface ResultSetSQLExceptionpublic void moveToInsertRow()
throws SQLException
moveToInsertRow in interface ResultSetSQLExceptionpublic void moveToCurrentRow()
throws SQLException
moveToCurrentRow in interface ResultSetSQLExceptionpublic boolean isWrapperFor(Class iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic Object unwrap(Class iface) throws SQLException
unwrap in interface WrapperSQLExceptionCopyright © 2003-2014. All Rights Reserved.