Package com.inet.excel
Class ExcelSheetResultSet
java.lang.Object
com.inet.excel.ExcelResultSet
com.inet.excel.ExcelSheetResultSet
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
Class for result set used to retrieve data of the sheet from Excel document.
-
Field Summary
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Constructor Summary
ConstructorsConstructorDescriptionExcelSheetResultSet(ExcelParser parser, String sheetName, int maxRowsPerBatch) Constructor of the class. -
Method Summary
Methods inherited from class com.inet.excel.ExcelResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getColumnNames, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isBeforeFirst, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, throwExceptionDueToConcurrencyMode, throwExceptionDueToResultSetType, throwIfAlreadyClosed, throwIfAlreadyClosedOrReachedEnd, throwIfColumnIndexIsInvalid, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
Constructor Details
-
ExcelSheetResultSet
Constructor of the class.- Parameters:
parser- component responsible for reading data from Excel document.sheetName- name of the sheet from Excel document.maxRowsPerBatch- maximum number of rows read at one time.- Throws:
IllegalArgumentException- if any of given arguments is null; if max number of rows per batch is not greater than zero.
-
-
Method Details
-
next
- Throws:
SQLException
-
close
- Throws:
SQLException
-
getMetaData
- Throws:
SQLException
-
isAfterLast
- Throws:
SQLException
-
getRow
- Throws:
SQLException
-
isClosed
- Throws:
SQLException
-
getValue
Retrieves the value of the designated column in the current row of this ResultSet object.- Specified by:
getValuein classExcelResultSet- Type Parameters:
T- type of the returned value.- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- the column value.
- Throws:
SQLException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set.
-
wasNull
- Throws:
SQLException
-