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