|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.net.sharenet.ShareNetResultSet
This class implements java.sql.ResultSet.
Fields inherited from interface java.sql.ResultSet |
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 Summary |
Method Summary | |
boolean |
absolute(int row)
JDBC 2.0 Moves to an absolute row number in the result set. |
void |
addWarning(SQLWarning warning)
Adds a warning to the result set. |
void |
afterLast()
JDBC 2.0 Moves to the end of the result set, just after the last row. |
void |
beforeFirst()
JDBC 2.0 Moves to the front of the result set, just before the first row. |
void |
cancelRowUpdates()
JDBC 2.0 Cancels row updates. |
void |
clearWarnings()
Clears all warnings. |
void |
close()
Closes the ResultSet. |
void |
deleteRow()
JDBC 2.0 Deletes the current row from the result set and the underlying database. |
String |
fieldFormat(int i)
Find the type of all the fields in the query. |
String[] |
fieldNames()
Find the names of all the fields in the query. |
int |
fieldType(int i)
Find the type of all the fields in the query. |
int |
findColumn(String columnName)
Gets the index of a column. |
boolean |
first()
JDBC 2.0 Moves to the first row in the result set. |
Array |
getArray(int i)
JDBC 2.0 Gets the value of column as an Array object. |
Array |
getArray(String colName)
JDBC 2.0 Gets the value of column as an array object. |
InputStream |
getAsciiStream(int column)
Gets the value of a column in the current row as a Java InputStream. |
InputStream |
getAsciiStream(String columnName)
Gets the value of a column in the current row as a Java InputStream. |
BigDecimal |
getBigDecimal(int columnIndex)
JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object. |
BigDecimal |
getBigDecimal(int column,
int scale)
Deprecated. |
BigDecimal |
getBigDecimal(String columnName)
JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object. |
BigDecimal |
getBigDecimal(String columnName,
int scale)
Deprecated. |
InputStream |
getBinaryStream(int column)
Gets the value of a column in the current row as a Java InputStream. |
InputStream |
getBinaryStream(String columnName)
Gets the value of a column in the current row as a Java InputStream. |
Blob |
getBlob(int i)
JDBC 2.0 Gets the value of column as a BLOB object. |
Blob |
getBlob(String colName)
JDBC 2.0 Gets the value of column as a BLOB object. |
boolean |
getBoolean(int column)
Gets the value of a column in the current row as a Java boolean. |
boolean |
getBoolean(String columnName)
Gets the value of a column in the current row as a Java boolean. |
byte |
getByte(int column)
Gets the value of a column in the current row as a Java byte. |
byte |
getByte(String columnName)
Gets the value of a column in the current row as a Java byte. |
byte[] |
getBytes(int column)
Gets the value of a column in the current row as a Java byte array. |
byte[] |
getBytes(String columnName)
Gets the value of a column in the current row as a Java byte array. |
Reader |
getCharacterStream(int columnIndex)
JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader. |
Reader |
getCharacterStream(String columnName)
JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader. |
Clob |
getClob(int i)
JDBC 2.0 Gets the value of column as a CLOB object. |
Clob |
getClob(String colName)
JDBC 2.0 Gets the value of column as a CLOB object. |
int |
getConcurrency()
JDBC 2.0 Gets the result set concurrency type CONCUR_READ_ONLY as the resultset is a READ ONLY resultset. |
String |
getCursorName()
Gets the name of the cursor. |
Date |
getDate(int column)
Gets the value of a column in the current row as a Java java.sql.Date. |
Date |
getDate(int columnIndex,
Calendar cal)
JDBC 2.0 Gets the value of a column in the current row as a java.sql.Date object. |
Date |
getDate(String columnName)
Gets the value of a column in the current row as a Java java.sql.Date. |
Date |
getDate(String columnName,
Calendar cal)
Gets the value of a column in the current row as a java.sql.Date object. |
double |
getDouble(int column)
Gets the value of a column in the current row as a Java double. |
double |
getDouble(String columnName)
Gets the value of a column in the current row as a Java double. |
int |
getFetchDirection()
JDBC 2.0 Gets the fetch direction for this result set. |
int |
getFetchSize()
JDBC 2.0 Gets the number of rows to be fetched. |
float |
getFloat(int column)
Gets the value of a column in the current row as a Java float. |
float |
getFloat(String columnName)
Gets the value of a column in the current row as a Java float. |
int |
getInt(int column)
Gets the value of a column in the current row as a Java int. |
int |
getInt(String columnName)
Gets the value of a column in the current row as a Java int. |
long |
getLong(int column)
Gets the value of a column in the current row as a Java long. |
long |
getLong(String columnName)
Gets the value of a column in the current row as a Java long. |
ResultSetMetaData |
getMetaData()
Gets a ResultSetMetaData object that is associated with this ResultSet. |
Object |
getObject(int column)
Gets the value of a column in its default Java representation. |
Object |
getObject(int i,
Map map)
JDBC 2.0 Gets the value of column @i as a Java object. |
Object |
getObject(String columnName)
Gets the value of a column in its default Java representation. |
Object |
getObject(String colName,
Map map)
JDBC 2.0 Gets the value of column @i as a Java object. |
Ref |
getRef(int i)
JDBC 2.0 Gets the value of column as a REF(<structured-type>) object. |
Ref |
getRef(String colName)
JDBC 2.0 Gets the value of column as a REF(<structured-type>) object. |
int |
getRow()
JDBC 2.0 Determines the current row number. |
short |
getShort(int column)
Gets the value of a column in the current row as a Java short. |
short |
getShort(String columnName)
Gets the value of a column in the current row as a Java short. |
Statement |
getStatement()
JDBC 2.0 Gets the Statement that produced the ResultSet. |
String |
getString(int column)
Gets the value of a column in the current row as a Java String. |
String |
getString(String columnName)
Gets the value of a column in the current row as a Java String. |
Time |
getTime(int column)
Gets the value of a column in the current row as a Java java.sql.Time. |
Time |
getTime(int columnIndex,
Calendar cal)
Gets the value of a column in the current row as a java.sql.Time object. |
Time |
getTime(String columnName)
Gets the value of a column in the current row as a Java java.sql.Time. |
Time |
getTime(String columnName,
Calendar cal)
Gets the value of a column in the current row as a java.sql.Time object. |
Timestamp |
getTimestamp(int column)
Gets the value of a column in the current row as a Java java.sql.Timestamp. |
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
Gets the value of a column in the current row as a java.sql.Timestamp object. |
Timestamp |
getTimestamp(String columnName)
Gets the value of a column in the current row as a Java java.sql.Timestamp. |
Timestamp |
getTimestamp(String columnName,
Calendar cal)
Gets the value of a column in the current row as a java.sql.Timestamp object. |
int |
getType()
JDBC 2.0 Gets the result set type TYPE_FORWARD_ONLY as scrolling is not supported. |
InputStream |
getUnicodeStream(int column)
Deprecated. |
InputStream |
getUnicodeStream(String columnName)
Deprecated. |
URL |
getURL(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet
object as a java.net.URL object in the Java programming language.
|
URL |
getURL(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet
object as a java.net.URL object in the Java programming language.
|
SQLWarning |
getWarnings()
Get the SQLWarnings that are associated with this row. |
void |
insertRow()
JDBC 2.0 Inserts the contents of the insert row into the result set and the database. |
boolean |
isAfterLast()
JDBC 2.0 Determines if the cursor is after the last row in the result set. |
boolean |
isBeforeFirst()
JDBC 2.0 Determines if the cursor is before the first row in the result set. |
boolean |
isFirst()
JDBC 2.0 Determines if the cursor is on the first row of the result set. |
boolean |
isLast()
JDBC 2.0 Determines if the cursor is on the last row of the result set. |
boolean |
last()
JDBC 2.0 Moves to the last row in the result set. |
void |
moveToCurrentRow()
JDBC 2.0 Moves the cursor to the remembered cursor position, usually the current row. |
void |
moveToInsertRow()
JDBC 2.0 Moves to the insert row. |
boolean |
next()
Proceeds to the next row in the ResultSet. |
int |
numFields()
Return the number of fields in the query. |
boolean |
previous()
JDBC 2.0 Moves to the previous row in the result set. |
void |
refreshRow()
JDBC 2.0 Refresh the value of the current row with its current value in the database. |
boolean |
relative(int rows)
JDBC 2.0 Moves a relative number of rows, either positive or negative. |
boolean |
rowDeleted()
JDBC 2.0 Determines if this row has been deleted. |
boolean |
rowInserted()
JDBC 2.0 Determines if the current row has been inserted. |
boolean |
rowUpdated()
JDBC 2.0 Determines if the current row has been updated. |
void |
setFetchDirection(int direction)
JDBC 2.0 Gives a hint as to the direction in which the rows in this result set will be processed. |
void |
setFetchSize(int rows)
JDBC 2.0 Sets the number of rows to be fetched for this result set. |
void |
updateArray(int columnIndex,
Array x)
Updates the designated column with a java.sql.Array value. |
void |
updateArray(String columnName,
Array x)
Updates the designated column with a java.sql.Array value. |
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
JDBC 2.0 Updates a column with an ascii stream value. |
void |
updateAsciiStream(String columnName,
InputStream x,
int length)
JDBC 2.0 Updates a column with an ascii stream value. |
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
JDBC 2.0 Updates a column with a BigDecimal value. |
void |
updateBigDecimal(String columnName,
BigDecimal x)
JDBC 2.0 Updates a column with a BigDecimal value. |
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
JDBC 2.0 Updates a column with a binary stream value. |
void |
updateBinaryStream(String columnName,
InputStream x,
int length)
JDBC 2.0 Updates a column with a binary stream value. |
void |
updateBlob(int columnIndex,
Blob x)
Updates the designated column with a java.sql.Blob value. |
void |
updateBlob(String columnName,
Blob x)
Updates the designated column with a java.sql.Blob value. |
void |
updateBoolean(int columnIndex,
boolean x)
JDBC 2.0 Updates a column with a boolean value. |
void |
updateBoolean(String columnName,
boolean x)
JDBC 2.0 Updates a column with a boolean value. |
void |
updateByte(int columnIndex,
byte x)
JDBC 2.0 Updates a column with a byte value. |
void |
updateByte(String columnName,
byte x)
JDBC 2.0 Updates a column with a byte value. |
void |
updateBytes(int columnIndex,
byte[] x)
JDBC 2.0 Updates a column with a byte array value. |
void |
updateBytes(String columnName,
byte[] x)
JDBC 2.0 Updates a column with a byte array value. |
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
JDBC 2.0 Updates a column with a character stream value. |
void |
updateCharacterStream(String columnName,
Reader reader,
int length)
JDBC 2.0 Updates a column with a character stream value. |
void |
updateClob(int columnIndex,
Clob x)
Updates the designated column with a java.sql.Clob value. |
void |
updateClob(String columnName,
Clob x)
Updates the designated column with a java.sql.Clob value. |
void |
updateDate(int columnIndex,
Date x)
JDBC 2.0 Updates a column with a Date value. |
void |
updateDate(String columnName,
Date x)
JDBC 2.0 Updates a column with a Date value. |
void |
updateDouble(int columnIndex,
double x)
JDBC 2.0 Updates a column with a Double value. |
void |
updateDouble(String columnName,
double x)
JDBC 2.0 Updates a column with a double value. |
void |
updateFloat(int columnIndex,
float x)
JDBC 2.0 Updates a column with a float value. |
void |
updateFloat(String columnName,
float x)
JDBC 2.0 Updates a column with a float value. |
void |
updateInt(int columnIndex,
int x)
JDBC 2.0 Updates a column with an integer value. |
void |
updateInt(String columnName,
int x)
JDBC 2.0 Updates a column with an integer value. |
void |
updateLong(int columnIndex,
long x)
JDBC 2.0 Updates a column with a long value. |
void |
updateLong(String columnName,
long x)
JDBC 2.0 Updates a column with a long value. |
void |
updateNull(int columnIndex)
JDBC 2.0 Updates a nullable column with a null value. |
void |
updateNull(String columnName)
JDBC 2.0 Updates a column with a null value. |
void |
updateObject(int columnIndex,
Object x)
JDBC 2.0 Updates a column with an Object value. |
void |
updateObject(int columnIndex,
Object x,
int scale)
JDBC 2.0 Updates a column with an Object value. |
void |
updateObject(String columnName,
Object x)
JDBC 2.0 Updates a column with an Object value. |
void |
updateObject(String columnName,
Object x,
int scale)
JDBC 2.0 Updates a column with an Object value. |
void |
updateRef(int columnIndex,
Ref x)
Updates the designated column with a java.sql.Ref value. |
void |
updateRef(String columnName,
Ref x)
Updates the designated column with a java.sql.Ref value. |
void |
updateRow()
JDBC 2.0 Updates the underlying database with the new contents of the current row. |
void |
updateShort(int columnIndex,
short x)
JDBC 2.0 Updates a column with a short value. |
void |
updateShort(String columnName,
short x)
JDBC 2.0 Updates a column with a short value. |
void |
updateString(int columnIndex,
String x)
JDBC 2.0 Updates a column with a String value. |
void |
updateString(String columnName,
String x)
JDBC 2.0 Updates a column with a String value. |
void |
updateTime(int columnIndex,
Time x)
JDBC 2.0 Updates a column with a Time value. |
void |
updateTime(String columnName,
Time x)
JDBC 2.0 Updates a column with a Time value. |
void |
updateTimestamp(int columnIndex,
Timestamp x)
JDBC 2.0 Updates a column with a Timestamp value. |
void |
updateTimestamp(String columnName,
Timestamp x)
JDBC 2.0 Updates a column with a Timestamp value. |
boolean |
wasNull()
Determines whether the given column in the current row holds an SQL NULL. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
Method Detail |
public boolean next() throws SQLException
next
in interface ResultSet
SQLException
- This exception is thrown if a ShareNetException is detected.public boolean wasNull() throws SQLException
wasNull
in interface ResultSet
SQLException
- This exception is thrown if the current row is not valid.public String getString(int column) throws SQLException
getString
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid.public boolean getBoolean(int column) throws SQLException
getBoolean
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a boolean value.public byte getByte(int column) throws SQLException
getByte
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to byte representation.public short getShort(int column) throws SQLException
getShort
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid short value.public int getInt(int column) throws SQLException
getInt
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid int value.public long getLong(int column) throws SQLException
getLong
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid long value.public float getFloat(int column) throws SQLException
getFloat
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid float value.public double getDouble(int column) throws SQLException
getDouble
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid double value.public BigDecimal getBigDecimal(int column, int scale) throws SQLException
getBigDecimal
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid BigDecimal value.public byte[] getBytes(int column) throws SQLException
getBytes
in interface ResultSet
SQLException
- This exception is always thrown because SAS software
does not support conversions to binary representation.public Date getDate(int column) throws SQLException
getDate
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid java.sql.Date value.public Time getTime(int column) throws SQLException
getTime
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid java.sql.Time value.public Timestamp getTimestamp(int column) throws SQLException
getTimestamp
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid java.sql.Timestamp value.public InputStream getAsciiStream(int column) throws SQLException
getAsciiStream
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid java.sql.Type.VARCHAR value. SAS software
does not support other conversions.public InputStream getUnicodeStream(int column) throws SQLException
getUnicodeStream
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid java.sql.Type.VARCHAR value. SAS software
does not support other conversions.public InputStream getBinaryStream(int column) throws SQLException
getBinaryStream
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column value is not valid or
the SQL type cannot be converted to a valid java.sql.Type.VARCHAR value. SAS software
does not support other conversions.public String getString(String columnName) throws SQLException
getString
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid.public boolean getBoolean(String columnName) throws SQLException
getBoolean
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a boolean value.public byte getByte(String columnName) throws SQLException
getByte
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted to byte representation.public short getShort(String columnName) throws SQLException
getShort
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid short value.public int getInt(String columnName) throws SQLException
getInt
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid int value.public long getLong(String columnName) throws SQLException
getLong
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid long value.public float getFloat(String columnName) throws SQLException
getFloat
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid float value.public double getDouble(String columnName) throws SQLException
getDouble
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid double value.public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException
getBigDecimal
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid BigDecimal value.public byte[] getBytes(String columnName) throws SQLException
getBytes
in interface ResultSet
SQLException
- This exception is always thrown becaue SAS software does not
support conversions to binary representation.public Date getDate(String columnName) throws SQLException
getDate
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid java.sql.Date value.public Time getTime(String columnName) throws SQLException
getTime
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid java.sql.Time value.public Timestamp getTimestamp(String columnName) throws SQLException
getTimestamp
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
SQL type cannot be converted into a valid java.sql.Timestamp value.public InputStream getAsciiStream(String columnName) throws SQLException
getAsciiStream
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
value is not java.sql.Type.VARCHAR. No other conversions are supported.public InputStream getUnicodeStream(String columnName) throws SQLException
getUnicodeStream
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
value is not java.sql.Type.VARCHAR. No other conversions are supported.public InputStream getBinaryStream(String columnName) throws SQLException
getBinaryStream
in interface ResultSet
columnName
- The name of the column that is returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column value is not valid or the
value is not java.sql.Type.VARCHAR. No other conversions are supported.public String getCursorName() throws SQLException
getCursorName
in interface ResultSet
SQLException
- This exception is required by the interface, but it is never thrown.public SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLException
- This exception is required by the interface, but it is never thrown.public void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
- This exception is required by the interface, but it is never thrown.public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface ResultSet
SQLException
- This exception may be thrown.public Object getObject(int column) throws SQLException
getObject
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column index is not valid.public Object getObject(String columnName) throws SQLException
getObject
in interface ResultSet
columnName
- The name of the column.SQLException
- This exception is thrown if the column name is not valid.public int findColumn(String columnName) throws SQLException
findColumn
in interface ResultSet
columnName
- The name of the column returned by the ResultSetMetaData object.SQLException
- This exception is thrown if the column name is not valid.public Reader getCharacterStream(int columnIndex) throws SQLException
Gets the value of a column in the current row as a java.io.Reader.
getCharacterStream
in interface ResultSet
columnIndex
- The first column is 1, the second column is 2 and so on.SQLException
- This exception is thrown if the column index is not valid.public Reader getCharacterStream(String columnName) throws SQLException
Gets the value of a column in the current row as a java.io.Reader.
getCharacterStream
in interface ResultSet
columnName
- The name of the column.SQLException
- This exception is thrown if the column index is not valid.public BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second column is 2, and so on.SQLException
- This exception is thrown if the column index is not valid.public BigDecimal getBigDecimal(String columnName) throws SQLException
getBigDecimal
in interface ResultSet
columnName
- The name of the column.SQLException
- This exception is thrown if the column index is not valid.public boolean isBeforeFirst() throws SQLException
Determines if the cursor is before the first row in the result set. This method is not yet supported.
isBeforeFirst
in interface ResultSet
SQLException
- This exception is always thrown.public boolean isAfterLast() throws SQLException
Determines if the cursor is after the last row in the result set. This method is not yet supported.
isAfterLast
in interface ResultSet
SQLException
- This exception is always thrown.public boolean isFirst() throws SQLException
Determines if the cursor is on the first row of the result set. This method is not yet supported.
isFirst
in interface ResultSet
SQLException
- This exception is always thrown.public boolean isLast() throws SQLException
Determines if the cursor is on the last row of the result set. This method is not yet supported. Note: Calling isLast() may be expensive since the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.
isLast
in interface ResultSet
SQLException
- This exception is always thrown.public void beforeFirst() throws SQLException
Moves to the front of the result set, just before the first row. Has no effect if the result set contains no rows. This method is not yet supported.
beforeFirst
in interface ResultSet
SQLException
- This exception is always thrown.public void afterLast() throws SQLException
Moves to the end of the result set, just after the last row. Has no effect if the result set contains no rows. This method is not yet supported.
afterLast
in interface ResultSet
SQLException
- This exception is always thrown.public boolean first() throws SQLException
Moves to the first row in the result set. This method is not yet supported.
first
in interface ResultSet
SQLException
- This exception is always thrown.public boolean last() throws SQLException
Moves to the last row in the result set. This method is not yet supported.
last
in interface ResultSet
SQLException
- This exception is always thrown.public int getRow() throws SQLException
Determines the current row number. The first row is number 1, the second number 2, and so on. This method is not yet supported.
getRow
in interface ResultSet
SQLException
- This exception is always thrown.public boolean absolute(int row) throws SQLException
Moves to an absolute row number in the result set. This method is not yet supported.
If row is positive, moves to an absolute row with respect to the beginning of the result set. The first row is row 1, the second is row 2, etc.
If row is negative, moves to an absolute row position with respect to the end of result set. For example, calling absolute(-1) positions the cursor on the last row, absolute(-2) indicates the next-to-last row, etc.
An attempt to position the cursor beyond the first/last row in the result set, leaves the cursor before/after the first/last row, respectively.
Note: Calling absolute(1) is the same as calling first(). Calling absolute(-1) is the same as calling last().
absolute
in interface ResultSet
row
- The row number in the result set.SQLException
- This exception is always thrown.public boolean relative(int rows) throws SQLException
Moves a relative number of rows, either positive or negative. This method is not yet supported.
Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position.
Note: Calling relative(1) is different than calling next() since is makes sense to call next() when there is no current row, for example, when the cursor is positioned before the first row or after the last row of the result set.
relative
in interface ResultSet
rows
- Number of rows to skip.SQLException
- This exception is always thrown.public boolean previous() throws SQLException
Moves to the previous row in the result set. This method is not yet supported.
Note: previous() is not the same as relative(-1) since it makes sense to call previous() when there is no current row.
previous
in interface ResultSet
SQLException
- This exception is always thrown.public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface ResultSet
direction
- An integer indicating the direction in which the rows in
this result set will be processed. Currently supports only FETCH_FORWARD.SQLException
- This exception is thrown if the fetch direction is not FETCH_FORWARD.public int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
SQLException
- This exception is required by the interface but it is never thrown.public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface ResultSet
rows
- The number of rows to fetch.SQLException
- This exception is thrown if a database-access error occurs, or the
condition 0 <= rows <= stmt.getMaxRows() is not satisfied.public int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
SQLException
- This exception is required by the interface but it is never thrown.public int getType() throws SQLException
getType
in interface ResultSet
SQLException
- This exception is required by the interface but it is never thrown.public int getConcurrency() throws SQLException
getConcurrency
in interface ResultSet
SQLException
- This exception is required by the interface but it is never thrown.public boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
SQLException
- This exception is always thrown.ShareNetDatabaseMetaData.updatesAreDetected(int)
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
SQLException
- This exception is always thrown.ShareNetDatabaseMetaData.insertsAreDetected(int)
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
SQLException
- This exception is always thrown.ShareNetDatabaseMetaData.deletesAreDetected(int)
public void updateNull(int columnIndex) throws SQLException
updateNull
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.SQLException
- This exception is always thrown.public void updateBoolean(int columnIndex, boolean x) throws SQLException
updateBoolean
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateByte(int columnIndex, byte x) throws SQLException
updateByte
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- the new column valueSQLException
- This exception is always thrown.public void updateShort(int columnIndex, short x) throws SQLException
updateShort
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateInt(int columnIndex, int x) throws SQLException
updateInt
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateLong(int columnIndex, long x) throws SQLException
updateLong
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateFloat(int columnIndex, float x) throws SQLException
updateFloat
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateDouble(int columnIndex, double x) throws SQLException
updateDouble
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateString(int columnIndex, String x) throws SQLException
updateString
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateBytes(int columnIndex, byte[] x) throws SQLException
updateBytes
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateDate(int columnIndex, Date x) throws SQLException
updateDate
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateTime(int columnIndex, Time x) throws SQLException
updateTime
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.length
- The length of the stream.SQLException
- This exception is always thrown.public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.length
- The length of the stream.SQLException
- This exception is always thrown.public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.length
- The length of the stream.SQLException
- This exception is always thrown.public void updateObject(int columnIndex, Object x, int scale) throws SQLException
updateObject
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.scale
- For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types
this is the number of digits after the decimal. For all other
types this value will be ignored.SQLException
- This exception is always thrown.public void updateObject(int columnIndex, Object x) throws SQLException
updateObject
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.x
- The new column value.SQLException
- This exception is always thrown.public void updateNull(String columnName) throws SQLException
updateNull
in interface ResultSet
columnName
- The name of the column.SQLException
- This exception is always thrown.public void updateBoolean(String columnName, boolean x) throws SQLException
updateBoolean
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateByte(String columnName, byte x) throws SQLException
updateByte
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateShort(String columnName, short x) throws SQLException
updateShort
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateInt(String columnName, int x) throws SQLException
updateInt
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateLong(String columnName, long x) throws SQLException
updateLong
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateFloat(String columnName, float x) throws SQLException
updateFloat
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateDouble(String columnName, double x) throws SQLException
updateDouble
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateString(String columnName, String x) throws SQLException
updateString
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateBytes(String columnName, byte[] x) throws SQLException
updateBytes
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateDate(String columnName, Date x) throws SQLException
updateDate
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateTime(String columnName, Time x) throws SQLException
updateTime
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateTimestamp(String columnName, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
columnName
- The name of the column.x
- The new column value.length
- The length of the stream.SQLException
- This exception is always thrown.public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
columnName
- The name of the column.x
- The new column value.length
- The length of the stream.SQLException
- This exception is always thrown.public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException
updateCharacterStream
in interface ResultSet
columnName
- The name of the column.x
- The new column value.length
- The length of the stream.SQLException
- This exception is always thrown.public void updateObject(String columnName, Object x, int scale) throws SQLException
updateObject
in interface ResultSet
columnName
- The name of the column.x
- The new column value.scale
- For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types
this is the number of digits after the decimal. For all other
types this value will be ignored.SQLException
- This exception is always thrown.public void updateObject(String columnName, Object x) throws SQLException
updateObject
in interface ResultSet
columnName
- The name of the column.x
- The new column value.SQLException
- This exception is always thrown.public void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
- This exception is always thrown.public void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
- This exception is always thrown.public void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
- This exception is always thrown.public void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
- This exception is always thrown.public void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
- This exception is always thrown.public void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
- This exception is always thrown.public void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
- This exception is always thrown.public Statement getStatement() throws SQLException
getStatement
in interface ResultSet
SQLException
- This exception is required by the interface but it is never thrown;public Object getObject(int i, Map map) throws SQLException
getObject
in interface ResultSet
i
- The column index. The first column is 1, the second is 2, and so on.map
- The mapping from SQL type names to Java classes.SQLException
- This exception is always thrown.public Ref getRef(int i) throws SQLException
getRef
in interface ResultSet
i
- The column index. The first column is 1, the second is 2, and so on.SQLException
- This exception is always thrown.public Blob getBlob(int i) throws SQLException
getBlob
in interface ResultSet
i
- The column index. The first column is 1, the second is 2, and so on.SQLException
- This exception is always thrown.public Clob getClob(int i) throws SQLException
getClob
in interface ResultSet
i
- The column index. The first column is 1, the second is 2, and so on.SQLException
- This exception is always thrown.public Array getArray(int i) throws SQLException
getArray
in interface ResultSet
i
- The column index. The first column is 1, the second is 2, and so on.SQLException
- This exception is always thrown.public Object getObject(String colName, Map map) throws SQLException
getObject
in interface ResultSet
colName
- The column name.map
- The mapping from SQL type names to Java classes.SQLException
- This exception is always thrown.public Ref getRef(String colName) throws SQLException
getRef
in interface ResultSet
colName
- The column name.SQLException
- This exception is always thrown.public Blob getBlob(String colName) throws SQLException
getBlob
in interface ResultSet
colName
- The column name.SQLException
- This exception is always thrown.public Clob getClob(String colName) throws SQLException
getClob
in interface ResultSet
colName
- The column name.This
- exception is always thrown.public Array getArray(String colName) throws SQLException
getArray
in interface ResultSet
colName
- The column name.This
- exception is always thrown.public Date getDate(int columnIndex, Calendar cal) throws SQLException
getDate
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.cal
- The calendar to use in constructing the date. Ignored if cal is NULL.SQLException
- This exception is thrown if the column value is not valid or if the
SQLType cannot be converted to a valid java.sql.Date value.public Date getDate(String columnName, Calendar cal) throws SQLException
getDate
in interface ResultSet
columnName
- The name of the column.cal
- The calendar to use in constructing the date. Ignored if cal is NULL.SQLException
- This exception is thrown if the column value is not valid or if the
SQLType cannot be converted to a valid java.sql.Date value.public Time getTime(int columnIndex, Calendar cal) throws SQLException
getTime
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.cal
- The calendar to use in constructing the time. Ignored if cal is NULL.SQLException
- This exception is thrown if the column value is not valid or if the
SQLType cannot be converted to a valid java.sql.Time value.public Time getTime(String columnName, Calendar cal) throws SQLException
getTime
in interface ResultSet
columnName
- The name of the column.cal
- The calendar to use in constructing the time. Ignored if cal is NULL.SQLException
- This exception is thrown if the column value is not valid or if the
SQLType cannot be converted to a valid java.sql.Time value.public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
getTimestamp
in interface ResultSet
columnIndex
- The column index. The first column is 1, the second is 2, and so on.cal
- The calendar to use in constructing the timestamp. Ignored if cal is NULL.SQLException
- This exception is thrown if the column value is not valid or if the
SQLType cannot be converted to a valid java.sql.Timestamp value.public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException
getTimestamp
in interface ResultSet
columnName
- The name of the column.cal
- The calendar to use in constructing the timestamp. Ignored if cal is NULL.SQLException
- This exception is thrown if the column value is not valid or if the
SQLType cannot be converted to a valid java.sql.Timestamp value.public void addWarning(SQLWarning warning)
SQLWarning
- Warning to add.public int numFields()
public String[] fieldNames()
public int fieldType(int i)
public String fieldFormat(int i)
public void close() throws SQLException
close
in interface ResultSet
SQLException
- This exception is thrown if a ShareNetException is detected.public URL getURL(int columnIndex) throws SQLException
ResultSet
object as a java.net.URL
object in the Java programming language.
This method is not implemented.getURL
in interface ResultSet
SQLException
- always thrown.public URL getURL(String columnName) throws SQLException
ResultSet
object as a java.net.URL
object in the Java programming language.
This method is not implemented.getURL
in interface ResultSet
SQLException
- always thrown.public void updateRef(int columnIndex, Ref x) throws SQLException
java.sql.Ref
value. The updater methods
are used to update column values in the current row or the insert row. The updater methods
do not update the underlying database; instead the updateRow
or insertRow
methods are called to update the database.
This method is not implemented.updateRef
in interface ResultSet
SQLException
- always thrown.public void updateRef(String columnName, Ref x) throws SQLException
java.sql.Ref
value. The updater methods
are used to update column values in the current row or the insert row. The updater methods
do not update the underlying database; instead the updateRow
or insertRow
methods are called to update the database.
This method is not implemented.updateRef
in interface ResultSet
SQLException
- always thrown.public void updateBlob(int columnIndex, Blob x) throws SQLException
java.sql.Blob
value. The updater methods are used
to update column values in the current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to
update the database.
This method is not implemented.updateBlob
in interface ResultSet
SQLException
- always thrown.public void updateBlob(String columnName, Blob x) throws SQLException
java.sql.Blob
value. The updater methods are used
to update column values in the current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to
update the database.
This method is not implemented.updateBlob
in interface ResultSet
SQLException
- always thrown.public void updateClob(int columnIndex, Clob x) throws SQLException
java.sql.Clob
value. The updater methods are used
to update column values in the current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to
update the database.
This method is not implemented.updateClob
in interface ResultSet
SQLException
- always thrown.public void updateClob(String columnName, Clob x) throws SQLException
java.sql.Clob
value. The updater methods are used
to update column values in the current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to
update the database.
This method is not implemented.updateClob
in interface ResultSet
SQLException
- always thrown.public void updateArray(int columnIndex, Array x) throws SQLException
java.sql.Array
value. The updater methods are used
to update column values in the current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to
update the database.
This method is not implemented.updateArray
in interface ResultSet
SQLException
- always thrown.public void updateArray(String columnName, Array x) throws SQLException
java.sql.Array
value. The updater methods are used
to update column values in the current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to
update the database.
This method is not implemented.updateArray
in interface ResultSet
SQLException
- always thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |