public class GeneratedKeysResultSet extends AbstractResultSet
L| Constructor and Description |
|---|
GeneratedKeysResultSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
findColumn(java.lang.String columnName)
Returns the index for the given column name.
|
int |
getHoldability() |
int |
getInt(int columnIndex)
Returns the generated integer key.
|
long |
getLong(int columnIndex)
Returns the generated long key.
|
java.sql.ResultSetMetaData |
getMetaData() |
java.io.Reader |
getNCharacterStream(int columnIndex) |
java.io.Reader |
getNCharacterStream(java.lang.String columnLabel) |
java.sql.NClob |
getNClob(int columnIndex) |
java.sql.NClob |
getNClob(java.lang.String columnLabel) |
java.lang.String |
getNString(int columnIndex) |
java.lang.String |
getNString(java.lang.String columnLabel) |
java.sql.RowId |
getRowId(int columnIndex) |
java.sql.RowId |
getRowId(java.lang.String columnLabel) |
java.sql.SQLXML |
getSQLXML(int columnIndex) |
java.sql.SQLXML |
getSQLXML(java.lang.String columnLabel) |
java.sql.Statement |
getStatement()
Returns the statement associated with the keys.
|
java.lang.String |
getString(int columnIndex)
Returns the generated string key.
|
void |
init()
Initialize the keys result set at the beginning of the query.
|
void |
init(java.sql.Statement stmt)
Initialize the keys result set at the beginning of the query.
|
boolean |
isClosed() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
boolean |
next() |
void |
setColumn(int index,
Column column)
Sets the specified column.
|
void |
setInt(int columnIndex,
int value)
Sets the generated int key.
|
void |
setLong(int columnIndex,
long value)
Sets the generated long key.
|
void |
setString(int columnIndex,
java.lang.String value)
Sets the generated string key.
|
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x) |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x) |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x) |
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream) |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream) |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateClob(int columnIndex,
java.io.Reader reader) |
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x) |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNClob(int columnIndex,
java.sql.NClob nClob) |
void |
updateNClob(int columnIndex,
java.io.Reader reader) |
void |
updateNClob(int columnIndex,
java.io.Reader reader,
long length) |
void |
updateNClob(java.lang.String columnLabel,
java.sql.NClob nClob) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader) |
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length) |
void |
updateNString(int columnIndex,
java.lang.String nString) |
void |
updateNString(java.lang.String columnLabel,
java.lang.String nString) |
void |
updateRowId(int columnIndex,
java.sql.RowId x) |
void |
updateRowId(java.lang.String columnLabel,
java.sql.RowId x) |
void |
updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject) |
void |
updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject) |
boolean |
wasNull() |
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getLong, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamppublic void init(java.sql.Statement stmt)
public void init()
public java.sql.Statement getStatement()
throws java.sql.SQLException
getStatement in interface java.sql.ResultSetgetStatement in class AbstractResultSetjava.sql.SQLExceptionpublic java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.ResultSetgetMetaData in class AbstractResultSetjava.sql.SQLExceptionpublic boolean next()
throws java.sql.SQLException
next in interface java.sql.ResultSetnext in class AbstractResultSetjava.sql.SQLExceptionpublic boolean wasNull()
throws java.sql.SQLException
wasNull in interface java.sql.ResultSetwasNull in class AbstractResultSetjava.sql.SQLExceptionpublic int findColumn(java.lang.String columnName)
throws java.sql.SQLException
findColumn in interface java.sql.ResultSetfindColumn in class AbstractResultSetjava.sql.SQLExceptionpublic void setColumn(int index,
Column column)
public java.lang.String getString(int columnIndex)
throws java.sql.SQLException
getString in interface java.sql.ResultSetgetString in class AbstractResultSetjava.sql.SQLExceptionpublic void setString(int columnIndex,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getInt(int columnIndex)
throws java.sql.SQLException
getInt in interface java.sql.ResultSetgetInt in class AbstractResultSetjava.sql.SQLExceptionpublic void setInt(int columnIndex,
int value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic long getLong(int columnIndex)
throws java.sql.SQLException
getLong in interface java.sql.ResultSetgetLong in class AbstractResultSetjava.sql.SQLExceptionpublic void setLong(int columnIndex,
long value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.sql.ResultSetclose in class AbstractResultSetpublic java.sql.RowId getRowId(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.RowId getRowId(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateRowId(int columnIndex,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateRowId(java.lang.String columnLabel,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getHoldability()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNString(int columnIndex,
java.lang.String nString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNString(java.lang.String columnLabel,
java.lang.String nString)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.sql.NClob nClob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.sql.NClob nClob)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.NClob getNClob(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.NClob getNClob(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.SQLXML getSQLXML(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.SQLXML getSQLXML(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getNString(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getNString(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(int columnIndex)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getNCharacterStream(java.lang.String columnLabel)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(int columnIndex,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(int columnIndex,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
throws java.sql.SQLException
java.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class AbstractResultSet