public final class JdbcResultSet extends TraceObject implements ResultSet
Column labels are case-insensitive, quotes are not supported. The first column has the column index 1.
Thread safety: the result set is not thread-safe and must not be used by multiple threads concurrently.
Updatable result sets: Result sets are updatable when the result only contains columns from one table, and if it contains all columns of a unique index (primary key or other) of this table. Key columns may not contain NULL (because multiple rows with NULL could exist). In updatable result sets, own changes are visible, but not own inserts and deletes.
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XID| 构造器和说明 |
|---|
JdbcResultSet(JdbcConnection conn,
JdbcStatement stat,
CommandInterface command,
ResultInterface result,
int id,
boolean scrollable,
boolean updatable,
boolean triggerUpdatable) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
absolute(int rowNumber)
Moves the current position to a specific row.
|
void |
afterLast()
Moves the current position to after the last row, that means after the
end.
|
void |
beforeFirst()
Moves the current position to before the first row, that means resets the
result set.
|
void |
cancelRowUpdates()
Cancels updating a row.
|
void |
clearWarnings()
Clears all warnings.
|
void |
close()
Closes the result set.
|
void |
deleteRow()
Deletes the current row.
|
int |
findColumn(String columnLabel)
Searches for a specific column in the result set.
|
boolean |
first()
Moves the current position to the first row.
|
Array |
getArray(int columnIndex)
Returns the value of the specified column as an Array.
|
Array |
getArray(String columnLabel)
Returns the value of the specified column as an Array.
|
InputStream |
getAsciiStream(int columnIndex)
Returns the value of the specified column as an input stream.
|
InputStream |
getAsciiStream(String columnLabel)
Returns the value of the specified column as an input stream.
|
BigDecimal |
getBigDecimal(int columnIndex)
Returns the value of the specified column as a BigDecimal.
|
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
已过时。
|
BigDecimal |
getBigDecimal(String columnLabel)
Returns the value of the specified column as a BigDecimal.
|
BigDecimal |
getBigDecimal(String columnLabel,
int scale)
已过时。
|
InputStream |
getBinaryStream(int columnIndex)
Returns the value of the specified column as an input stream.
|
InputStream |
getBinaryStream(String columnLabel)
Returns the value of the specified column as an input stream.
|
Blob |
getBlob(int columnIndex)
Returns the value of the specified column as a Blob.
|
Blob |
getBlob(String columnLabel)
Returns the value of the specified column as a Blob.
|
boolean |
getBoolean(int columnIndex)
Returns the value of the specified column as a boolean.
|
boolean |
getBoolean(String columnLabel)
Returns the value of the specified column as a boolean.
|
byte |
getByte(int columnIndex)
Returns the value of the specified column as a byte.
|
byte |
getByte(String columnLabel)
Returns the value of the specified column as a byte.
|
byte[] |
getBytes(int columnIndex)
Returns the value of the specified column as a byte array.
|
byte[] |
getBytes(String columnLabel)
Returns the value of the specified column as a byte array.
|
Reader |
getCharacterStream(int columnIndex)
Returns the value of the specified column as a reader.
|
Reader |
getCharacterStream(String columnLabel)
Returns the value of the specified column as a reader.
|
Clob |
getClob(int columnIndex)
Returns the value of the specified column as a Clob.
|
Clob |
getClob(String columnLabel)
Returns the value of the specified column as a Clob.
|
int |
getConcurrency()
Gets the result set concurrency.
|
String |
getCursorName()
[Not supported] Gets the cursor name if it was defined.
|
Date |
getDate(int columnIndex)
Returns the value of the specified column as a java.sql.Date.
|
Date |
getDate(int columnIndex,
Calendar calendar)
Returns the value of the specified column as a java.sql.Date using a
specified time zone.
|
Date |
getDate(String columnLabel)
Returns the value of the specified column as a java.sql.Date.
|
Date |
getDate(String columnLabel,
Calendar calendar)
Returns the value of the specified column as a java.sql.Date using a
specified time zone.
|
double |
getDouble(int columnIndex)
Returns the value of the specified column as a double.
|
double |
getDouble(String columnLabel)
Returns the value of the specified column as a double.
|
int |
getFetchDirection()
Gets the fetch direction.
|
int |
getFetchSize()
Gets the number of rows suggested to read in one step.
|
float |
getFloat(int columnIndex)
Returns the value of the specified column as a float.
|
float |
getFloat(String columnLabel)
Returns the value of the specified column as a float.
|
int |
getHoldability()
Returns the current result set holdability.
|
int |
getInt(int columnIndex)
Returns the value of the specified column as an int.
|
int |
getInt(String columnLabel)
Returns the value of the specified column as an int.
|
Value |
getInternal(int columnIndex)
INTERNAL
|
long |
getLong(int columnIndex)
Returns the value of the specified column as a long.
|
long |
getLong(String columnLabel)
Returns the value of the specified column as a long.
|
ResultSetMetaData |
getMetaData()
Gets the meta data of this result set.
|
Reader |
getNCharacterStream(int columnIndex)
Returns the value of the specified column as a reader.
|
Reader |
getNCharacterStream(String columnLabel)
Returns the value of the specified column as a reader.
|
NClob |
getNClob(int columnIndex)
Returns the value of the specified column as a Clob.
|
NClob |
getNClob(String columnLabel)
Returns the value of the specified column as a Clob.
|
String |
getNString(int columnIndex)
Returns the value of the specified column as a String.
|
String |
getNString(String columnLabel)
Returns the value of the specified column as a String.
|
Object |
getObject(int columnIndex)
Returns a column value as a Java object.
|
<T> T |
getObject(int columnIndex,
Class<T> type)
Returns a column value as a Java object of the specified type.
|
Object |
getObject(int columnIndex,
Map<String,Class<?>> map)
[Not supported] Gets a column as a object using the specified type
mapping.
|
Object |
getObject(String columnLabel)
Returns a column value as a Java object.
|
<T> T |
getObject(String columnName,
Class<T> type)
Returns a column value as a Java object of the specified type.
|
Object |
getObject(String columnLabel,
Map<String,Class<?>> map)
[Not supported] Gets a column as a object using the specified type
mapping.
|
Ref |
getRef(int columnIndex)
[Not supported] Gets a column as a reference.
|
Ref |
getRef(String columnLabel)
[Not supported] Gets a column as a reference.
|
ResultInterface |
getResult()
INTERNAL
|
int |
getRow()
Gets the current row number.
|
RowId |
getRowId(int columnIndex)
[Not supported] Returns the value of the specified column as a row id.
|
RowId |
getRowId(String columnLabel)
[Not supported] Returns the value of the specified column as a row id.
|
short |
getShort(int columnIndex)
Returns the value of the specified column as a short.
|
short |
getShort(String columnLabel)
Returns the value of the specified column as a short.
|
SQLXML |
getSQLXML(int columnIndex)
Returns the value of the specified column as a SQLXML.
|
SQLXML |
getSQLXML(String columnLabel)
Returns the value of the specified column as a SQLXML.
|
Statement |
getStatement()
Returns the statement that created this object.
|
String |
getString(int columnIndex)
Returns the value of the specified column as a String.
|
String |
getString(String columnLabel)
Returns the value of the specified column as a String.
|
Time |
getTime(int columnIndex)
Returns the value of the specified column as a java.sql.Time.
|
Time |
getTime(int columnIndex,
Calendar calendar)
Returns the value of the specified column as a java.sql.Time using a
specified time zone.
|
Time |
getTime(String columnLabel)
Returns the value of the specified column as a java.sql.Time.
|
Time |
getTime(String columnLabel,
Calendar calendar)
Returns the value of the specified column as a java.sql.Time using a
specified time zone.
|
Timestamp |
getTimestamp(int columnIndex)
Returns the value of the specified column as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(int columnIndex,
Calendar calendar)
Returns the value of the specified column as a java.sql.Timestamp using a
specified time zone.
|
Timestamp |
getTimestamp(String columnLabel)
Returns the value of the specified column as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(String columnLabel,
Calendar calendar)
Returns the value of the specified column as a java.sql.Timestamp.
|
int |
getType()
Get the result set type.
|
InputStream |
getUnicodeStream(int columnIndex)
已过时。
since JDBC 2.0, use getCharacterStream
|
InputStream |
getUnicodeStream(String columnLabel)
已过时。
since JDBC 2.0, use setCharacterStream
|
Value[] |
getUpdateRow()
INTERNAL
|
URL |
getURL(int columnIndex)
[Not supported]
|
URL |
getURL(String columnLabel)
[Not supported]
|
SQLWarning |
getWarnings()
Gets the first warning reported by calls on this object.
|
void |
insertRow()
Inserts the current row.
|
boolean |
isAfterLast()
Checks if the current position is after the last row, that means next()
was called and returned false, and there was at least one row.
|
boolean |
isBeforeFirst()
Checks if the current position is before the first row, that means next()
was not called yet, and there is at least one row.
|
boolean |
isClosed()
Returns whether this result set is closed.
|
boolean |
isFirst()
Checks if the current position is row 1, that means next() was called
once and returned true.
|
boolean |
isLast()
Checks if the current position is the last row, that means next() was
called and did not yet returned false, but will in the next call.
|
boolean |
isWrapperFor(Class<?> iface)
Checks if unwrap can return an object of this class.
|
boolean |
last()
Moves the current position to the last row.
|
void |
moveToCurrentRow()
Moves the current position to the current row.
|
void |
moveToInsertRow()
Moves the current position to the insert row.
|
boolean |
next()
Moves the cursor to the next row of the result set.
|
boolean |
previous()
Moves the cursor to the last row, or row before first row if the current
position is the first row.
|
void |
refreshRow()
Re-reads the current row from the database.
|
boolean |
relative(int rowCount)
Moves the current position to a specific row relative to the current row.
|
boolean |
rowDeleted()
Detects if the row was deleted (by somebody else or the caller).
|
boolean |
rowInserted()
Detects if the row was inserted.
|
boolean |
rowUpdated()
Detects if the row was updated (by somebody else or the caller).
|
void |
setFetchDirection(int direction)
[Not supported]
Sets (changes) the fetch direction for this result set.
|
void |
setFetchSize(int rows)
Sets the number of rows suggested to read in one step.
|
String |
toString()
INTERNAL
|
<T> T |
unwrap(Class<T> iface)
Return an object of this class if possible.
|
void |
updateArray(int columnIndex,
Array x)
Updates a column in the current or insert row.
|
void |
updateArray(String columnLabel,
Array x)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(int columnIndex,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(String columnLabel,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
Updates a column in the current or insert row.
|
void |
updateBigDecimal(String columnLabel,
BigDecimal x)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(int columnIndex,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(String columnLabel,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBlob(int columnIndex,
Blob x)
Updates a column in the current or insert row.
|
void |
updateBlob(int columnIndex,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBlob(int columnIndex,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBlob(String columnLabel,
Blob x)
Updates a column in the current or insert row.
|
void |
updateBlob(String columnLabel,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBlob(String columnLabel,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBoolean(int columnIndex,
boolean x)
Updates a column in the current or insert row.
|
void |
updateBoolean(String columnLabel,
boolean x)
Updates a column in the current or insert row.
|
void |
updateByte(int columnIndex,
byte x)
Updates a column in the current or insert row.
|
void |
updateByte(String columnLabel,
byte x)
Updates a column in the current or insert row.
|
void |
updateBytes(int columnIndex,
byte[] x)
Updates a column in the current or insert row.
|
void |
updateBytes(String columnLabel,
byte[] x)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(int columnIndex,
Reader x)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(String columnLabel,
Reader x)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(String columnLabel,
Reader x,
int length)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(String columnLabel,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateClob(int columnIndex,
Clob x)
Updates a column in the current or insert row.
|
void |
updateClob(int columnIndex,
Reader x)
Updates a column in the current or insert row.
|
void |
updateClob(int columnIndex,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateClob(String columnLabel,
Clob x)
Updates a column in the current or insert row.
|
void |
updateClob(String columnLabel,
Reader x)
Updates a column in the current or insert row.
|
void |
updateClob(String columnLabel,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateDate(int columnIndex,
Date x)
Updates a column in the current or insert row.
|
void |
updateDate(String columnLabel,
Date x)
Updates a column in the current or insert row.
|
void |
updateDouble(int columnIndex,
double x)
Updates a column in the current or insert row.
|
void |
updateDouble(String columnLabel,
double x)
Updates a column in the current or insert row.
|
void |
updateFloat(int columnIndex,
float x)
Updates a column in the current or insert row.
|
void |
updateFloat(String columnLabel,
float x)
Updates a column in the current or insert row.
|
void |
updateInt(int columnIndex,
int x)
Updates a column in the current or insert row.
|
void |
updateInt(String columnLabel,
int x)
Updates a column in the current or insert row.
|
void |
updateLong(int columnIndex,
long x)
Updates a column in the current or insert row.
|
void |
updateLong(String columnLabel,
long x)
Updates a column in the current or insert row.
|
void |
updateNCharacterStream(int columnIndex,
Reader x)
Updates a column in the current or insert row.
|
void |
updateNCharacterStream(int columnIndex,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateNCharacterStream(String columnLabel,
Reader x)
Updates a column in the current or insert row.
|
void |
updateNCharacterStream(String columnLabel,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateNClob(int columnIndex,
NClob x)
Updates a column in the current or insert row.
|
void |
updateNClob(int columnIndex,
Reader x)
Updates a column in the current or insert row.
|
void |
updateNClob(int columnIndex,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateNClob(String columnLabel,
NClob x)
Updates a column in the current or insert row.
|
void |
updateNClob(String columnLabel,
Reader x)
Updates a column in the current or insert row.
|
void |
updateNClob(String columnLabel,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateNString(int columnIndex,
String x)
Updates a column in the current or insert row.
|
void |
updateNString(String columnLabel,
String x)
Updates a column in the current or insert row.
|
void |
updateNull(int columnIndex)
Updates a column in the current or insert row.
|
void |
updateNull(String columnLabel)
Updates a column in the current or insert row.
|
void |
updateObject(int columnIndex,
Object x)
Updates a column in the current or insert row.
|
void |
updateObject(int columnIndex,
Object x,
int scale)
Updates a column in the current or insert row.
|
void |
updateObject(int columnIndex,
Object x,
SQLType targetSqlType)
Updates a column in the current or insert row.
|
void |
updateObject(int columnIndex,
Object x,
SQLType targetSqlType,
int scaleOrLength)
Updates a column in the current or insert row.
|
void |
updateObject(String columnLabel,
Object x)
Updates a column in the current or insert row.
|
void |
updateObject(String columnLabel,
Object x,
int scale)
Updates a column in the current or insert row.
|
void |
updateObject(String columnLabel,
Object x,
SQLType targetSqlType)
Updates a column in the current or insert row.
|
void |
updateObject(String columnLabel,
Object x,
SQLType targetSqlType,
int scaleOrLength)
Updates a column in the current or insert row.
|
void |
updateRef(int columnIndex,
Ref x)
[Not supported]
|
void |
updateRef(String columnLabel,
Ref x)
[Not supported]
|
void |
updateRow()
Updates the current row.
|
void |
updateRowId(int columnIndex,
RowId x)
[Not supported] Updates a column in the current or insert row.
|
void |
updateRowId(String columnLabel,
RowId x)
[Not supported] Updates a column in the current or insert row.
|
void |
updateShort(int columnIndex,
short x)
Updates a column in the current or insert row.
|
void |
updateShort(String columnLabel,
short x)
Updates a column in the current or insert row.
|
void |
updateSQLXML(int columnIndex,
SQLXML xmlObject)
Updates a column in the current or insert row.
|
void |
updateSQLXML(String columnLabel,
SQLXML xmlObject)
Updates a column in the current or insert row.
|
void |
updateString(int columnIndex,
String x)
Updates a column in the current or insert row.
|
void |
updateString(String columnLabel,
String x)
Updates a column in the current or insert row.
|
void |
updateTime(int columnIndex,
Time x)
Updates a column in the current or insert row.
|
void |
updateTime(String columnLabel,
Time x)
Updates a column in the current or insert row.
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
Updates a column in the current or insert row.
|
void |
updateTimestamp(String columnLabel,
Timestamp x)
Updates a column in the current or insert row.
|
boolean |
wasNull()
Returns whether the last column accessed was null.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupportedpublic JdbcResultSet(JdbcConnection conn, JdbcStatement stat, CommandInterface command, ResultInterface result, int id, boolean scrollable, boolean updatable, boolean triggerUpdatable)
public boolean next()
throws SQLException
next 在接口中 ResultSetSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData 在接口中 ResultSetSQLExceptionpublic boolean wasNull()
throws SQLException
wasNull 在接口中 ResultSetSQLExceptionpublic int findColumn(String columnLabel) throws SQLException
findColumn 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic void close()
throws SQLException
close 在接口中 AutoCloseableclose 在接口中 ResultSetSQLExceptionpublic Statement getStatement() throws SQLException
getStatement 在接口中 ResultSetSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings 在接口中 ResultSetSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings 在接口中 ResultSetSQLExceptionpublic String getString(int columnIndex) throws SQLException
getString 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic String getString(String columnLabel) throws SQLException
getString 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic int getInt(int columnIndex)
throws SQLException
getInt 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic int getInt(String columnLabel) throws SQLException
getInt 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Date getDate(int columnIndex) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDate.class) instead.
getDate 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedgetObject(int, Class)public Time getTime(int columnIndex) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalTime.class) instead.
getTime 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedgetObject(int, Class)public Timestamp getTimestamp(int columnIndex) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDateTime.class) instead.
getTimestamp 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedgetObject(int, Class)public BigDecimal getBigDecimal(String columnLabel) throws SQLException
getBigDecimal 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic Date getDate(String columnLabel) throws SQLException
Usage of this method is discouraged. Use
getObject(columnLabel, LocalDate.class) instead.
getDate 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedgetObject(String, Class)public Time getTime(String columnLabel) throws SQLException
Usage of this method is discouraged. Use
getObject(columnLabel, LocalTime.class) instead.
getTime 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedgetObject(String, Class)public Timestamp getTimestamp(String columnLabel) throws SQLException
Usage of this method is discouraged. Use
getObject(columnLabel, LocalDateTime.class) instead.
getTimestamp 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedgetObject(String, Class)public Object getObject(int columnIndex) throws SQLException
getObject 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Object getObject(String columnLabel) throws SQLException
getObject 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic boolean getBoolean(int columnIndex)
throws SQLException
getBoolean 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic boolean getBoolean(String columnLabel) throws SQLException
getBoolean 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic byte getByte(int columnIndex)
throws SQLException
getByte 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic byte getByte(String columnLabel) throws SQLException
getByte 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic short getShort(int columnIndex)
throws SQLException
getShort 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic short getShort(String columnLabel) throws SQLException
getShort 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic long getLong(int columnIndex)
throws SQLException
getLong 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic long getLong(String columnLabel) throws SQLException
getLong 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic float getFloat(int columnIndex)
throws SQLException
getFloat 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic float getFloat(String columnLabel) throws SQLException
getFloat 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic double getDouble(int columnIndex)
throws SQLException
getDouble 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic double getDouble(String columnLabel) throws SQLException
getDouble 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closed@Deprecated public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
getBigDecimal(String)getBigDecimal 在接口中 ResultSetcolumnLabel - the column labelscale - the scale of the returned valueSQLException - if the column is not found or if the result set is
closed@Deprecated public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal(int)getBigDecimal 在接口中 ResultSetcolumnIndex - (1,2,...)scale - the scale of the returned valueSQLException - if the column is not found or if the result set is
closed@Deprecated public InputStream getUnicodeStream(int columnIndex) throws SQLException
getUnicodeStream 在接口中 ResultSetSQLException@Deprecated public InputStream getUnicodeStream(String columnLabel) throws SQLException
getUnicodeStream 在接口中 ResultSetSQLExceptionpublic Object getObject(int columnIndex, Map<String,Class<?>> map) throws SQLException
getObject 在接口中 ResultSetSQLExceptionpublic Object getObject(String columnLabel, Map<String,Class<?>> map) throws SQLException
getObject 在接口中 ResultSetSQLExceptionpublic Ref getRef(int columnIndex) throws SQLException
getRef 在接口中 ResultSetSQLExceptionpublic Ref getRef(String columnLabel) throws SQLException
getRef 在接口中 ResultSetSQLExceptionpublic Date getDate(int columnIndex, Calendar calendar) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDate.class) instead.
getDate 在接口中 ResultSetcolumnIndex - (1,2,...)calendar - the calendarSQLException - if the column is not found or if the result set is
closedgetObject(int, Class)public Date getDate(String columnLabel, Calendar calendar) throws SQLException
Usage of this method is discouraged. Use
getObject(columnLabel, LocalDate.class) instead.
getDate 在接口中 ResultSetcolumnLabel - the column labelcalendar - the calendarSQLException - if the column is not found or if the result set is
closedgetObject(String, Class)public Time getTime(int columnIndex, Calendar calendar) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalTime.class) instead.
getTime 在接口中 ResultSetcolumnIndex - (1,2,...)calendar - the calendarSQLException - if the column is not found or if the result set is
closedgetObject(int, Class)public Time getTime(String columnLabel, Calendar calendar) throws SQLException
Usage of this method is discouraged. Use
getObject(columnLabel, LocalTime.class) instead.
getTime 在接口中 ResultSetcolumnLabel - the column labelcalendar - the calendarSQLException - if the column is not found or if the result set is
closedgetObject(String, Class)public Timestamp getTimestamp(int columnIndex, Calendar calendar) throws SQLException
Usage of this method is discouraged. Use
getObject(columnIndex, LocalDateTime.class) instead.
getTimestamp 在接口中 ResultSetcolumnIndex - (1,2,...)calendar - the calendarSQLException - if the column is not found or if the result set is
closedgetObject(int, Class)public Timestamp getTimestamp(String columnLabel, Calendar calendar) throws SQLException
Usage of this method is discouraged. Use
getObject(columnLabel, LocalDateTime.class) instead.
getTimestamp 在接口中 ResultSetcolumnLabel - the column labelcalendar - the calendarSQLException - if the column is not found or if the result set is
closedgetObject(String, Class)public Blob getBlob(int columnIndex) throws SQLException
getBlob 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Blob getBlob(String columnLabel) throws SQLException
getBlob 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic byte[] getBytes(int columnIndex)
throws SQLException
getBytes 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic byte[] getBytes(String columnLabel) throws SQLException
getBytes 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic InputStream getBinaryStream(String columnLabel) throws SQLException
getBinaryStream 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic Clob getClob(int columnIndex) throws SQLException
getClob 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Clob getClob(String columnLabel) throws SQLException
getClob 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic Array getArray(int columnIndex) throws SQLException
getArray 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Array getArray(String columnLabel) throws SQLException
getArray 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic InputStream getAsciiStream(String columnLabel) throws SQLException
getAsciiStream 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Reader getCharacterStream(String columnLabel) throws SQLException
getCharacterStream 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic URL getURL(int columnIndex) throws SQLException
getURL 在接口中 ResultSetSQLExceptionpublic URL getURL(String columnLabel) throws SQLException
getURL 在接口中 ResultSetSQLExceptionpublic void updateNull(int columnIndex)
throws SQLException
updateNull 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the result set is closed or not updatablepublic void updateNull(String columnLabel) throws SQLException
updateNull 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the result set is closed or not updatablepublic void updateBoolean(int columnIndex,
boolean x)
throws SQLException
updateBoolean 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateBoolean(String columnLabel, boolean x) throws SQLException
updateBoolean 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if result set is closed or not updatablepublic void updateByte(int columnIndex,
byte x)
throws SQLException
updateByte 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateByte(String columnLabel, byte x) throws SQLException
updateByte 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateBytes(int columnIndex,
byte[] x)
throws SQLException
updateBytes 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateBytes(String columnLabel, byte[] x) throws SQLException
updateBytes 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateShort(int columnIndex,
short x)
throws SQLException
updateShort 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateShort(String columnLabel, short x) throws SQLException
updateShort 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateInt(int columnIndex,
int x)
throws SQLException
updateInt 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateInt(String columnLabel, int x) throws SQLException
updateInt 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateLong(int columnIndex,
long x)
throws SQLException
updateLong 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateLong(String columnLabel, long x) throws SQLException
updateLong 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateFloat(int columnIndex,
float x)
throws SQLException
updateFloat 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateFloat(String columnLabel, float x) throws SQLException
updateFloat 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateDouble(int columnIndex,
double x)
throws SQLException
updateDouble 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateDouble(String columnLabel, double x) throws SQLException
updateDouble 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLException
updateBigDecimal 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException
updateBigDecimal 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateString(int columnIndex,
String x)
throws SQLException
updateString 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateString(String columnLabel, String x) throws SQLException
updateString 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateDate(int columnIndex,
Date x)
throws SQLException
Usage of this method is discouraged. Use
updateObject(columnIndex, value) with LocalDate
parameter instead.
updateDate 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatableupdateObject(int, Object)public void updateDate(String columnLabel, Date x) throws SQLException
Usage of this method is discouraged. Use
updateObject(columnLabel, value) with LocalDate
parameter instead.
updateDate 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatableupdateObject(String, Object)public void updateTime(int columnIndex,
Time x)
throws SQLException
Usage of this method is discouraged. Use
updateObject(columnIndex, value) with LocalTime
parameter instead.
updateTime 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatableupdateObject(int, Object)public void updateTime(String columnLabel, Time x) throws SQLException
Usage of this method is discouraged. Use
updateObject(columnLabel, value) with LocalTime
parameter instead.
updateTime 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatableupdateObject(String, Object)public void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
Usage of this method is discouraged. Use
updateObject(columnIndex, value) with
LocalDateTime parameter instead.
updateTimestamp 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatableupdateObject(int, Object)public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException
Usage of this method is discouraged. Use
updateObject(columnLabel, value) with
LocalDateTime parameter instead.
updateTimestamp 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatableupdateObject(String, Object)public void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateAsciiStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateAsciiStream(int columnIndex,
InputStream x)
throws SQLException
updateAsciiStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateAsciiStream(int columnIndex,
InputStream x,
long length)
throws SQLException
updateAsciiStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException
updateAsciiStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateAsciiStream(String columnLabel, InputStream x) throws SQLException
updateAsciiStream 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closedpublic void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException
updateAsciiStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateBinaryStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateBinaryStream(int columnIndex,
InputStream x)
throws SQLException
updateBinaryStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateBinaryStream(int columnIndex,
InputStream x,
long length)
throws SQLException
updateBinaryStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateBinaryStream(String columnLabel, InputStream x) throws SQLException
updateBinaryStream 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException
updateBinaryStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException
updateBinaryStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateCharacterStream(int columnIndex,
Reader x,
long length)
throws SQLException
updateCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLException
updateCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateCharacterStream(int columnIndex,
Reader x)
throws SQLException
updateCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateCharacterStream(String columnLabel, Reader x, int length) throws SQLException
updateCharacterStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateCharacterStream(String columnLabel, Reader x) throws SQLException
updateCharacterStream 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateCharacterStream(String columnLabel, Reader x, long length) throws SQLException
updateCharacterStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateObject(int columnIndex,
Object x,
int scale)
throws SQLException
updateObject 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuescale - is ignoredSQLException - if the result set is closed or not updatablepublic void updateObject(String columnLabel, Object x, int scale) throws SQLException
updateObject 在接口中 ResultSetcolumnLabel - the column labelx - the valuescale - is ignoredSQLException - if the result set is closed or not updatablepublic void updateObject(int columnIndex,
Object x)
throws SQLException
updateObject 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateObject(String columnLabel, Object x) throws SQLException
updateObject 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateObject(int columnIndex,
Object x,
SQLType targetSqlType)
throws SQLException
updateObject 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuetargetSqlType - the SQL typeSQLException - if the result set is closed or not updatablepublic void updateObject(int columnIndex,
Object x,
SQLType targetSqlType,
int scaleOrLength)
throws SQLException
updateObject 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuetargetSqlType - the SQL typescaleOrLength - is ignoredSQLException - if the result set is closed or not updatablepublic void updateObject(String columnLabel, Object x, SQLType targetSqlType) throws SQLException
updateObject 在接口中 ResultSetcolumnLabel - the column labelx - the valuetargetSqlType - the SQL typeSQLException - if the result set is closed or not updatablepublic void updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException
updateObject 在接口中 ResultSetcolumnLabel - the column labelx - the valuetargetSqlType - the SQL typescaleOrLength - is ignoredSQLException - if the result set is closed or not updatablepublic void updateRef(int columnIndex,
Ref x)
throws SQLException
updateRef 在接口中 ResultSetSQLExceptionpublic void updateRef(String columnLabel, Ref x) throws SQLException
updateRef 在接口中 ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
InputStream x)
throws SQLException
updateBlob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateBlob(int columnIndex,
InputStream x,
long length)
throws SQLException
updateBlob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the lengthSQLException - if the result set is closed or not updatablepublic void updateBlob(int columnIndex,
Blob x)
throws SQLException
updateBlob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateBlob(String columnLabel, Blob x) throws SQLException
updateBlob 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateBlob(String columnLabel, InputStream x) throws SQLException
updateBlob 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateBlob(String columnLabel, InputStream x, long length) throws SQLException
updateBlob 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the lengthSQLException - if the result set is closed or not updatablepublic void updateClob(int columnIndex,
Clob x)
throws SQLException
updateClob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateClob(int columnIndex,
Reader x)
throws SQLException
updateClob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateClob(int columnIndex,
Reader x,
long length)
throws SQLException
updateClob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the lengthSQLException - if the result set is closed or not updatablepublic void updateClob(String columnLabel, Clob x) throws SQLException
updateClob 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateClob(String columnLabel, Reader x) throws SQLException
updateClob 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateClob(String columnLabel, Reader x, long length) throws SQLException
updateClob 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the lengthSQLException - if the result set is closed or not updatablepublic void updateArray(int columnIndex,
Array x)
throws SQLException
updateArray 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateArray(String columnLabel, Array x) throws SQLException
updateArray 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic String getCursorName() throws SQLException
getCursorName 在接口中 ResultSetSQLExceptionpublic int getRow()
throws SQLException
getRow 在接口中 ResultSetSQLExceptionpublic int getConcurrency()
throws SQLException
getConcurrency 在接口中 ResultSetSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection 在接口中 ResultSetSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize 在接口中 ResultSetSQLExceptionpublic void setFetchSize(int rows)
throws SQLException
setFetchSize 在接口中 ResultSetrows - the number of rowsSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection 在接口中 ResultSetdirection - the new fetch directionSQLException - Unsupported Feature if the method is called for a
forward-only result setpublic int getType()
throws SQLException
getType 在接口中 ResultSetSQLException - if the column is not found or if the result set is
closedpublic boolean isBeforeFirst()
throws SQLException
isBeforeFirst 在接口中 ResultSetSQLException - if the result set is closedpublic boolean isAfterLast()
throws SQLException
isAfterLast 在接口中 ResultSetSQLException - if the result set is closedpublic boolean isFirst()
throws SQLException
isFirst 在接口中 ResultSetSQLException - if the result set is closedpublic boolean isLast()
throws SQLException
isLast 在接口中 ResultSetSQLException - if the result set is closedpublic void beforeFirst()
throws SQLException
beforeFirst 在接口中 ResultSetSQLException - if the result set is closedpublic void afterLast()
throws SQLException
afterLast 在接口中 ResultSetSQLException - if the result set is closedpublic boolean first()
throws SQLException
first 在接口中 ResultSetSQLException - if the result set is closedpublic boolean last()
throws SQLException
last 在接口中 ResultSetSQLException - if the result set is closedpublic boolean absolute(int rowNumber)
throws SQLException
absolute 在接口中 ResultSetrowNumber - the row number. 0 is not allowed, 1 means the first row,
2 the second. -1 means the last row, -2 the row before the
last row. If the value is too large, the position is moved
after the last row, if the value is too small it is moved
before the first row.SQLException - if the result set is closedpublic boolean relative(int rowCount)
throws SQLException
relative 在接口中 ResultSetrowCount - 0 means don't do anything, 1 is the next row, -1 the
previous. If the value is too large, the position is moved
after the last row, if the value is too small it is moved
before the first row.SQLException - if the result set is closedpublic boolean previous()
throws SQLException
previous 在接口中 ResultSetSQLException - if the result set is closedpublic void moveToInsertRow()
throws SQLException
moveToInsertRow 在接口中 ResultSetSQLException - if the result set is closed or is not updatablepublic void moveToCurrentRow()
throws SQLException
moveToCurrentRow 在接口中 ResultSetSQLException - if the result set is closed or is not updatablepublic boolean rowUpdated()
throws SQLException
rowUpdated 在接口中 ResultSetSQLExceptionpublic boolean rowInserted()
throws SQLException
rowInserted 在接口中 ResultSetSQLExceptionpublic boolean rowDeleted()
throws SQLException
rowDeleted 在接口中 ResultSetSQLExceptionpublic void insertRow()
throws SQLException
insertRow 在接口中 ResultSetSQLException - if the result set is closed or if not on the insert
row, or if the result set it not updatablepublic void updateRow()
throws SQLException
updateRow 在接口中 ResultSetSQLException - if the result set is closed, if the current row is
the insert row or if not on a valid row, or if the result set
it not updatablepublic void deleteRow()
throws SQLException
deleteRow 在接口中 ResultSetSQLException - if the result set is closed, if the current row is
the insert row or if not on a valid row, or if the result set
it not updatablepublic void refreshRow()
throws SQLException
refreshRow 在接口中 ResultSetSQLException - if the result set is closed or if the current row is
the insert row or if the row has been deleted or if not on a
valid rowpublic void cancelRowUpdates()
throws SQLException
cancelRowUpdates 在接口中 ResultSetSQLException - if the result set is closed or if the current row is
the insert rowpublic Value getInternal(int columnIndex)
columnIndex - index of a columnpublic RowId getRowId(int columnIndex) throws SQLException
getRowId 在接口中 ResultSetcolumnIndex - (1,2,...)SQLExceptionpublic RowId getRowId(String columnLabel) throws SQLException
getRowId 在接口中 ResultSetcolumnLabel - the column labelSQLExceptionpublic void updateRowId(int columnIndex,
RowId x)
throws SQLException
updateRowId 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLExceptionpublic void updateRowId(String columnLabel, RowId x) throws SQLException
updateRowId 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLExceptionpublic int getHoldability()
throws SQLException
getHoldability 在接口中 ResultSetSQLException - if the connection is closedpublic boolean isClosed()
throws SQLException
isClosed 在接口中 ResultSetSQLExceptionpublic void updateNString(int columnIndex,
String x)
throws SQLException
updateNString 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateNString(String columnLabel, String x) throws SQLException
updateNString 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateNClob(int columnIndex,
NClob x)
throws SQLException
updateNClob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateNClob(int columnIndex,
Reader x)
throws SQLException
updateNClob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateNClob(int columnIndex,
Reader x,
long length)
throws SQLException
updateNClob 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the lengthSQLException - if the result set is closed or not updatablepublic void updateNClob(String columnLabel, Reader x) throws SQLException
updateNClob 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateNClob(String columnLabel, Reader x, long length) throws SQLException
updateNClob 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the lengthSQLException - if the result set is closed or not updatablepublic void updateNClob(String columnLabel, NClob x) throws SQLException
updateNClob 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic NClob getNClob(int columnIndex) throws SQLException
getNClob 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic NClob getNClob(String columnLabel) throws SQLException
getNClob 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic SQLXML getSQLXML(int columnIndex) throws SQLException
getSQLXML 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic SQLXML getSQLXML(String columnLabel) throws SQLException
getSQLXML 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic void updateSQLXML(int columnIndex,
SQLXML xmlObject)
throws SQLException
updateSQLXML 在接口中 ResultSetcolumnIndex - (1,2,...)xmlObject - the valueSQLException - if the result set is closed or not updatablepublic void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException
updateSQLXML 在接口中 ResultSetcolumnLabel - the column labelxmlObject - the valueSQLException - if the result set is closed or not updatablepublic String getNString(int columnIndex) throws SQLException
getNString 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic String getNString(String columnLabel) throws SQLException
getNString 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic Reader getNCharacterStream(int columnIndex) throws SQLException
getNCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)SQLException - if the column is not found or if the result set is
closedpublic Reader getNCharacterStream(String columnLabel) throws SQLException
getNCharacterStream 在接口中 ResultSetcolumnLabel - the column labelSQLException - if the column is not found or if the result set is
closedpublic void updateNCharacterStream(int columnIndex,
Reader x)
throws SQLException
updateNCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valueSQLException - if the result set is closed or not updatablepublic void updateNCharacterStream(int columnIndex,
Reader x,
long length)
throws SQLException
updateNCharacterStream 在接口中 ResultSetcolumnIndex - (1,2,...)x - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic void updateNCharacterStream(String columnLabel, Reader x) throws SQLException
updateNCharacterStream 在接口中 ResultSetcolumnLabel - the column labelx - the valueSQLException - if the result set is closed or not updatablepublic void updateNCharacterStream(String columnLabel, Reader x, long length) throws SQLException
updateNCharacterStream 在接口中 ResultSetcolumnLabel - the column labelx - the valuelength - the number of charactersSQLException - if the result set is closed or not updatablepublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap 在接口中 Wrapperiface - the classSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor 在接口中 Wrapperiface - the classSQLExceptionpublic <T> T getObject(int columnIndex,
Class<T> type)
throws SQLException
getObject 在接口中 ResultSetcolumnIndex - the column index (1, 2, ...)type - the class of the returned valueSQLException - if the column is not found or if the result set is
closedpublic <T> T getObject(String columnName, Class<T> type) throws SQLException
getObject 在接口中 ResultSetcolumnName - the column nametype - the class of the returned valueSQLExceptionpublic Value[] getUpdateRow()
public ResultInterface getResult()
Copyright © 2022. All rights reserved.