Class ReadOnlyRowSet
- Direct Known Subclasses:
WriteableRowSet
Detailed information on this class is available here
Copyright 2003-2026 ATB Consultancy Services Ltd (formerly Orinda Software Ltd, Dublin, Ireland)
- Version:
- 7
- Author:
- [email protected]
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intHow many columns are in this ReadOnlyRowSetprotected int[]An array containing the number of decimal places of each column that makes up this ReadOnlyRowSetprotected int[]An array containing the Data Type ids of the columns that make up this ReadOnlyRowSet.protected long[]An array containing the lengths of the columns that make up this ReadOnlyRowSet.protected String[]An array containing the names of the columns that make up this ReadOnlyRowSet.protected String[]An array containing the Oracle Data Type names of the columns that make up this ReadOnlyRowSet.protected intWhich row we are currently on.protected FileThe directory where longs, clobs, etc will be stored as files.protected DateWhen the data in this ReadOnlyRowSet will expire.protected booleanA flag indicating that the JVm ran low on memory.protected booleanA flag indicating that we stopped adding rows because we hit maxRows, the limit specified in the constructorprotected booleanboolean flag that specifies whether downloaded files will automaticly be deleted when the JVM exits or notprotected booleanboolean flag that specifies whether lobs such as CLOBS, BLOBS and BFILES will be kept as Oracle objects or downloaded into Files.protected longHow much memory has to be available for us to continue retrieving rows from a large query.protected LongObjectLoaderobject Unloaderprotected ArrayListAn ArrayList used for storing the data in the ReadOnlyRowSet.protected intHow many rows are in this ReadOnlyRowSetprotected StringThe Prefix for downloaded files containing BLOB, CLOB and BFILE dataprotected StringThe Suffix for downloaded files containing BLOB, CLOB and BFILE dataprotected LogInterfaceAn instance of the LogInterface logging mechanismprotected NumberFormatA number formatter used by thegetStringmethodsprotected SimpleDateFormatString format used when converting Timestamps to Stringsprotected int[]An Array containing ints that map to core oracle datatypes in SqlUtil.protected booleanboolean flag that specifies whether lobs such as CLOBS, BLOBS and BFILES and LONG columns will be kept as byte arrays. -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyRowSet(Object[] theData, String[] columnNames, String[] columnOracleDatatypeNames, int[] underlyingOracleDatatypes, int[] columnJavaDatatypes, long[] columnLengths, int[] columnDecimalPlaces, LogInterface theLog, File downloadedFileDir, boolean keepFiles) Create a ReadOnlyRowSet that is based on user defined data rather than a ResultSet.ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog) Create a ReadOnlyRowSet that is based on a ResultSet.ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog, File downloadedFileDir, boolean keepFiles, String tempFilePrefix, String tempFileSuffix) Create a ReadOnlyRowSet that is based on a ResultSet.ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog, File downloadedFileDir, boolean keepFiles, String tempFilePrefix, String tempFileSuffix, boolean keepLobs) Create a ReadOnlyRowSet that is based on a ResultSet.ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog, File downloadedFileDir, boolean keepFiles, String tempFilePrefix, String tempFileSuffix, boolean keepLobs, boolean useByteArraysForLongsAndLOBS) Create a ReadOnlyRowSet that is based on a ResultSet. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckColumnName(String theColumnName) Make sure that theColumnName is a valid column.protected voidcheckRange(int columnId) Make sure that columnId is a valid column.protected voidMake sure that we have rows.protected StringconvertNumberToString(Object theNumberObject, NumberFormat theNumberFormat) Utility method that will try to turn theNumberObject into a String.protected DateconvertTIMESTAMPLTZToDate(Object theTIMESTAMPLTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.protected StringconvertTIMESTAMPLTZToString(Object theTIMESTAMPLTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPLTZObject into a oracle.sql.TIMESTAMPLTZ object and then a String.protected TimestampconvertTIMESTAMPLTZToTimestamp(Object theTIMESTAMPLTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.protected DateconvertTIMESTAMPToDate(Object theTIMESTAMPObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.protected StringconvertTimestampToString(Object theDateObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theDateObject into a Date object and then a String.protected StringconvertTIMESTAMPToString(Object theTIMESTAMPObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a oracle.sql.TIMESTAMP object and then a String.protected TimestampconvertTIMESTAMPToTimestamp(Object theTIMESTAMPObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.protected DateconvertTIMESTAMPTZToDate(Object theTIMESTAMPTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPTZObject into a oracle.sql.TIMESTAMPTZ object and then a String.protected StringconvertTIMESTAMPTZToString(Object theTIMESTAMPTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPTZObject into a oracle.sql.TIMESTAMPTZ object and then a String.protected TimestampconvertTIMESTAMPTZToTimestamp(Object theTIMESTAMPTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.protected voidcreateInvalidDatatypeCastException(String theCastedoracleDatatype, String theCasteeJavaDatatype, String oracleColumnName) intDelete all files in this ReadOnlyRowSet This is a cleanup method that you can use when the underlying cursor contained one or more LOB columns and you need to explicitly remove the resulting files.booleanfirst()Move to first row of the RowSet.oracle.sql.BFILEgetBFILE(int columnId) Get columncolumnIdas a oracle.sql.BFILE Object This method will only work if 'keepLobs' was set to true.oracle.sql.BFILEGet columncolumnIdas a oracle.sql.BFILE Object This method will only work if 'keepLobs' was set to true.getBigDecimal(int columnId) Get columncolumnIdas a java.math.BigDecimal ObjectgetBigDecimal(String theColumnName) Get columncolumnIdas a java.math.BigDecimal Objectoracle.sql.BLOBgetBLOB(int columnId) Get columncolumnIdas a oracle.sql.BLOB Object This method will only work if 'keepLobs' was set to true.oracle.sql.BLOBGet columncolumnIdas a oracle.sql.BLOB Object This method will only work if 'keepLobs' was set to true.booleangetBoolean(int columnId) Get columncolumnIdas a boolean.booleangetBoolean(String theColumnName) Get columncolumnIdas a boolean.getBooleanObj(int columnId) Get columncolumnIdas a Boolean ObjectgetBooleanObj(String theColumnName) Get columncolumnIdas a Boolean ObjectbytegetByte(int columnId) Get columncolumnIdas a byte.byteGet columncolumnIdas a byte.byte[]getByteArray(int columnId) Get columncolumnIdas a byte[] Objectbyte[]getByteArray(String theColumnName) Get columncolumnIdas a byte[] ObjectgetByteObj(int columnId) Get columncolumnIdas a Byte ObjectgetByteObj(String theColumnName) Get columncolumnIdas a Byte Objectchar[]getCharArray(int columnId) Get columncolumnIdas a char[] Objectchar[]getCharArray(String theColumnName) Get columncolumnIdas a char[] Objectoracle.sql.CLOBgetCLOB(int columnId) Get columncolumnIdas a oracle.sql.CLOB Object This method will only work if 'keepLobs' was set to true.oracle.sql.CLOBGet columncolumnIdas a oracle.sql.CLOB Object This method will only work if 'keepLobs' was set to true.intgetColumnId(String theColumnName) Get the position of a named column in rows of the underlying result set.getColumnName(int theColumnId) Get the name of a column.getColumnNamesAsString(String delimiter) Return the row's column names in the form of a delimited stringString[]Return the row's column names in the form of a string ArrayString[]Return the Oracle data types of the the columns as an array of StringObject[]Return current row as an array of ObjectintReturn the current row numbergetDate(int columnId) Get columncolumnIdas a java.sql.DateGet columncolumnIdas a java.sql.DatedoublegetDouble(int columnId) Get columncolumnIdas a double.doubleGet columncolumnIdas a double.getDoubleObj(int columnId) Get columncolumnIdas a Double ObjectgetDoubleObj(String theColumnName) Get columncolumnIdas a Double ObjectSet how long the result will remain up to date.Get a long text or binary columncolumnIdas aFileGet a long text or binary columncolumnIdas aFilefloatgetFloat(int columnId) Get columncolumnIdas a float.floatGet columncolumnIdas a float.getFloatObj(int columnId) Get columncolumnIdas a Float ObjectgetFloatObj(String theColumnName) Get columncolumnIdas a Float ObjectintgetInt(int columnId) Get columncolumnIdas an int.intGet columncolumnIdas an int.getIntegerObj(int columnId) Get columncolumnIdas a Integer ObjectgetIntegerObj(String theColumnName) Get columncolumnIdas a Integer Objectoracle.sql.json.OracleJsonValuegetJSON(int columnId) Get columncolumnIdas anoracle.sql.json.OracleJsonValue.oracle.sql.json.OracleJsonValueGet columntheColumnNameas anoracle.sql.json.OracleJsonValue.longgetLong(int columnId) Get columncolumnIdas a long.longGet columncolumnIdas a long.getLongObj(int columnId) Get columncolumnIdas a Long ObjectgetLongObj(String theColumnName) Get columncolumnIdas a Long ObjectgetObject(int columnId) Get columncolumnIdas an Object.Get columncolumnIdas an Object.oracle.sql.OPAQUEgetOpaque(int columnId) Get columncolumnIdas an oracle.sql.OPAQUE.oracle.sql.OPAQUEGet columncolumnIdas an oracle.sql.OPAQUE.getRowAsString(String delimiter, String unprintableFieldMessage) Return the entire row in the form of a delimited stringshortgetShort(int columnId) Get columncolumnIdas a short.shortGet columncolumnIdas a short.getShortObj(int columnId) Get columncolumnIdas a Short ObjectgetShortObj(String theColumnName) Get columncolumnIdas a Short ObjectgetString(int columnId) Get columncolumnIdas a String.Get columncolumnIdas a String.Get the prefix used for generating temporary filesgetTimestamp(int columnId) Get columncolumnIdas a java.sql.TimestampgetTimestamp(String theColumnName) Get columncolumnIdas a java.sql.Timestamporacle.sql.TIMESTAMPgetTIMESTAMP(int columnId) Get columncolumnIdas a TIMESTAMP Objectoracle.sql.TIMESTAMPgetTIMESTAMP(String theColumnName) Get columncolumnIdas a oracle.sql.TIMESTAMP Objectoracle.sql.TIMESTAMPLTZgetTIMESTAMPLTZ(int columnId) Get columncolumnIdas a TIMESTAMPLTZ Objectoracle.sql.TIMESTAMPLTZgetTIMESTAMPLTZ(String theColumnName) Get columncolumnIdas a oracle.sql.TIMESTAMPLTZ Objectoracle.sql.TIMESTAMPTZgetTIMESTAMPTZ(int columnId) Get columncolumnIdas a TIMESTAMPTZ Objectoracle.sql.TIMESTAMPTZgetTIMESTAMPTZ(String theColumnName) Get columncolumnIdas a oracle.sql.TIMESTAMPTZ Objectdouble[]getVector(int columnId) Get columncolumnIdas adouble[]vector.double[]Get columntheColumnNameas adouble[]vector.byte[]getVectorBinary(int columnId) Get columncolumnIdas abyte[]binary vector.byte[]getVectorBinary(String theColumnName) Get columntheColumnNameas abyte[]binary vector.getVectorSparse(int columnId) Get columncolumnIdas aSparseVector(a sparse VECTOR, Oracle 23ai).getVectorSparse(String theColumnName) Get columntheColumnNameas aSparseVector(a sparse VECTOR, Oracle 23ai).booleanSet how long the result will remain up to date.booleanIdentify when we had to stop adding rows to the ResultSet because we ran out of memory.booleanIdentify when we had to stop adding rows to the ResultSet because we reached the limit on the number of rows that are to be stored.booleanisNull(int columnId) Returntrueif the column isnull.booleanReturntrueif the column isnull.booleanlast()Move to last row of the RowSet.booleannextRow()Move to next row of the RowSet.booleanprevRow()Move to previous row of the RowSet.voidretainShallowestByIntColumn(String colName) Keep only the rows whose integer columncolNameequals the MINIMUM value of that column across all current rows; drop the rest.booleansetCurrentRowNumber(int newCurrentRowNumber) Move to a specific row of the RowSet.voidsetExpireDate(long theExpireDate) Set how long the result will remain up to date.voidsetNumberFormat(NumberFormat newNumberFormat) Change the way Numbers are converted to StringsvoidsetTempFileSuffix(String tempFileSuffix) Set the suffix used for generating temporary filesvoidsetTimestampFormat(String newTimestampFormat) Change the way Timestamps are converted to Stringsintsize()Return the number of rowstoString()Return a String representation of the start of the row setprotected ObjectunloadObject(ResultSet theResultSet, int columnId, int oracleUnderlyingDatatype, boolean keepFiles) Convert the object returned by the resultset into one we can use.intwidth()Return the number of columns
-
Field Details
-
theTimestampFormat
String format used when converting Timestamps to Strings -
theNumberFormat
A number formatter used by thegetStringmethods -
colCount
protected int colCountHow many columns are in this ReadOnlyRowSet -
rowCount
protected int rowCountHow many rows are in this ReadOnlyRowSet -
currentRowNumber
protected int currentRowNumberWhich row we are currently on. The row number starts at 0. A value of -1 indicates no rows. -
hitRowLimit
protected boolean hitRowLimitA flag indicating that we stopped adding rows because we hit maxRows, the limit specified in the constructor -
minimumFreeMemoryBytes
protected long minimumFreeMemoryBytesHow much memory has to be available for us to continue retrieving rows from a large query. The default value is 1M.. If free memory gets this low then it is probably because the JVM can't allocate any more. -
hitMemLimit
protected boolean hitMemLimitA flag indicating that the JVm ran low on memory.- Since:
- 6.0.2615 hitMemLimit no longer stops query being read.
-
columnNames
An array containing the names of the columns that make up this ReadOnlyRowSet. It is possible that the same name may appear more than once. -
columnOracleDatatypeNames
An array containing the Oracle Data Type names of the columns that make up this ReadOnlyRowSet. -
underlyingOracleDatatypes
protected int[] underlyingOracleDatatypesAn Array containing ints that map to core oracle datatypes in SqlUtil. -
columnJavaDatatypes
protected int[] columnJavaDatatypesAn array containing the Data Type ids of the columns that make up this ReadOnlyRowSet. The ids match those specified in java.sql.Types- See Also:
-
columnLengths
protected long[] columnLengthsAn array containing the lengths of the columns that make up this ReadOnlyRowSet.We need to use a
longas CLOBS and BLOBS can be 4GB in length. -
columnDecimalPlaces
protected int[] columnDecimalPlacesAn array containing the number of decimal places of each column that makes up this ReadOnlyRowSet -
readOnlyRowSetData
An ArrayList used for storing the data in the ReadOnlyRowSet. Each entry contains an Object array that holds the data for each row. -
theLog
-
downloadedFileDir
The directory where longs, clobs, etc will be stored as files. It is recommended that you have one per JVM at an absolute minimum. One per session is better. -
expireDate
When the data in this ReadOnlyRowSet will expire.This is used by the caching mechanism to determine when we the data has reached its sell by date and needs to be refreshed.
-
tempFilePrefix
The Prefix for downloaded files containing BLOB, CLOB and BFILE data -
tempFileSuffix
The Suffix for downloaded files containing BLOB, CLOB and BFILE data -
keepFiles
protected boolean keepFilesboolean flag that specifies whether downloaded files will automaticly be deleted when the JVM exits or not -
keepLobs
protected boolean keepLobsboolean flag that specifies whether lobs such as CLOBS, BLOBS and BFILES will be kept as Oracle objects or downloaded into Files.- Since:
- 2.0.1505
-
useByteArraysForLongsAndLOBS
protected boolean useByteArraysForLongsAndLOBSboolean flag that specifies whether lobs such as CLOBS, BLOBS and BFILES and LONG columns will be kept as byte arrays. This only works if keepFiles == false.- Since:
- 5.0.2314
-
objectUnloader
object Unloader
-
-
Constructor Details
-
ReadOnlyRowSet
public ReadOnlyRowSet(Object[] theData, String[] columnNames, String[] columnOracleDatatypeNames, int[] underlyingOracleDatatypes, int[] columnJavaDatatypes, long[] columnLengths, int[] columnDecimalPlaces, LogInterface theLog, File downloadedFileDir, boolean keepFiles) Create a ReadOnlyRowSet that is based on user defined data rather than a ResultSet.This constructor is used to create a rowset based on a set of parameters for a stored procedure call.
- Parameters:
theData- An array of Object that contains another array of Object. The inner arrays are all of the the same length and map to a row of columns.columnNames-columnOracleDatatypeNames-underlyingOracleDatatypes-columnJavaDatatypes-theLog-downloadedFileDir- A directory to keep files containing clobs and blobs
-
ReadOnlyRowSet
public ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog) throws CSException Create a ReadOnlyRowSet that is based on a ResultSet.- Parameters:
theResultSet-theQuery-maxRows-theLog-- Throws:
CSException
-
ReadOnlyRowSet
public ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog, File downloadedFileDir, boolean keepFiles, String tempFilePrefix, String tempFileSuffix) throws CSException Create a ReadOnlyRowSet that is based on a ResultSet.- Parameters:
theResultSet-theQuery-maxRows- Maximum number of rows that will be retrieved. The JDBC driver will stop returning rows after about 30,000.theLog-downloadedFileDir- A directory where downloaded CLOBS and BLOBS will be stored.keepFiles- Whether generated files are kept or deleted when the JVM exitstempFilePrefix- Prefix for generated temporary files.tempFileSuffix- Suffix for generated temporary files.- Throws:
CSException
-
ReadOnlyRowSet
public ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog, File downloadedFileDir, boolean keepFiles, String tempFilePrefix, String tempFileSuffix, boolean keepLobs) throws CSException Create a ReadOnlyRowSet that is based on a ResultSet.- Parameters:
theResultSet-theQuery-maxRows- Maximum number of rows that will be retrieved. The JDBC driver will stop returning rows after about 30,000.theLog-downloadedFileDir- A directory where downloaded CLOBS and BLOBS will be stored.keepFiles- Whether generated files are kept or deleted when the JVM exitstempFilePrefix- Prefix for generated temporary files.tempFileSuffix- Suffix for generated temporary files.keepLobs- Whether lobs suchs as CLOBS and BLOBS are turned into Files on retrieval- Throws:
CSException- Since:
- 2.0.1505 'keepLobs' added., 5.0.2314 default for 'useByteArraysForLongsAndLOBS' added.
-
ReadOnlyRowSet
public ReadOnlyRowSet(ResultSet theResultSet, String theQuery, int maxRows, LogInterface theLog, File downloadedFileDir, boolean keepFiles, String tempFilePrefix, String tempFileSuffix, boolean keepLobs, boolean useByteArraysForLongsAndLOBS) throws CSException Create a ReadOnlyRowSet that is based on a ResultSet.- Parameters:
theResultSet-theQuery-maxRows- Maximum number of rows that will be retrieved. The JDBC driver will stop returning rows after about 30,000.theLog-downloadedFileDir- A directory where downloaded CLOBS and BLOBS will be stored.keepFiles- Whether generated files are kept or deleted when the JVM exitstempFilePrefix- Prefix for generated temporary files.tempFileSuffix- Suffix for generated temporary files.keepLobs- Whether lobs suchs as CLOBS and BLOBS are turned into Files on retrieval- Throws:
CSException- Since:
- 2.0.1505 'keepLobs' added., 5.0.2314 'useByteArraysForLongsAndLOBS' added., 6.0.2615 hitMemLimit no longer stops query being read.
-
-
Method Details
-
getColumnId
Get the position of a named column in rows of the underlying result set.Return the Id of the first value in
columnNamesthat matchestheColumnName. Note that there is nothing that prevents a column name being used multiple times withing a result set, in which case the id of the first matching column will be returned.- Parameters:
theColumnName- The name of the column whose id you are looking for.- Returns:
- An int which identifies the first occurance of
columnName-1 If no match is made.
-
retainShallowestByIntColumn
Keep only the rows whose integer columncolNameequals the MINIMUM value of that column across all current rows; drop the rest. Operates in place (rebuilds the backing row list and resets the cursor to the first row).Used by the generator to reduce a PL/SQL record's argument rowset to its DIRECT fields (shallowest
DATA_LEVEL), dropping the deeper rows that belong to nested records/types -- those are generated from their own, separately-built classes. A no-op when every row already shares the same value (e.g. a flat record: byte-identical output). Non-integer / null values in the column are treated as the minimum (never dropped).- Parameters:
colName- the integer column to key on (typically"DATA_LEVEL")
-
getColumnName
Get the name of a column.Return the Name of the value in
columnNamesthat fortheColumnId.- Parameters:
theColumnId- The id of the column whose name you are looking for.- Returns:
- A String which is the column name
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.
-
unloadObject
protected Object unloadObject(ResultSet theResultSet, int columnId, int oracleUnderlyingDatatype, boolean keepFiles) Convert the object returned by the resultset into one we can use.- Parameters:
theResultSet- We need this as we may have to cast it toOracleResultSet.columnId- Which column we want to get.oracleUnderlyingDatatype- The underlying oracle datatype. We pass it in to avoid having to find out what it is twice.keepFiles- Whether any Files generated by retrieving Lobs should be kept when the program finishes. The default behaviour is to delete them.- Returns:
- null If the column is null or a zero-length Long field. String If the column is a text string of some kind. java.sql.Timestamp If the column is a Date field. BigDecimal If the column is a number field. File If the column is a valid Long object with a length > 0. Exception If something went wrong, Usually with a BFILE retrieval.
- Since:
- 4.0.1794 DATE Columns are now explicitly casted to java.sql.TimeStamp., 5.0.2314 A value of true for useByteArraysForLongsAndLOBS will lead to downloaded LONG and LOB columns being stored in byte arrays.
-
getCurrentRowNumber
public int getCurrentRowNumber()Return the current row number- Returns:
- int the current row number.
-
size
public int size()Return the number of rows- Returns:
- int the number of rows
-
width
public int width()Return the number of columns- Returns:
- int the number of columns
-
hitRowLimit
public boolean hitRowLimit()Identify when we had to stop adding rows to the ResultSet because we reached the limit on the number of rows that are to be stored.- Returns:
- boolean
trueif we reachedmaxRowswhen we were created. booleanfalseif we did not reachmaxRowswhen we were created.
-
hitMemLimit
public boolean hitMemLimit()Identify when we had to stop adding rows to the ResultSet because we ran out of memory.- Returns:
- boolean
trueif we reachedminimumFreeMemoryByteswhen we were created. booleanfalseif we did not reachminimumFreeMemoryByteswhen we were created. - Since:
- 6.0.2615 hitMemLimit no longer stops query being read.
-
setCurrentRowNumber
public boolean setCurrentRowNumber(int newCurrentRowNumber) Move to a specific row of the RowSet.- Parameters:
newCurrentRowNumber- the new row number.- Returns:
trueif newCurrentRowNumber is a valid rowfalseif newCurrentRowNumber is less than zero or higher thansize() - 1.
-
nextRow
public boolean nextRow()Move to next row of the RowSet.- Returns:
trueif the RowSet has 1 or more rows and we weren't already on the last row
-
prevRow
public boolean prevRow()Move to previous row of the RowSet.- Returns:
trueif the RowSet has 1 or more rows and we weren't already on the first row
-
first
public boolean first()Move to first row of the RowSet.- Returns:
trueif the RowSet has 1 or more rows
-
last
public boolean last()Move to last row of the RowSet.- Returns:
trueif the RowSet has 1 or more rows
-
getDate
public Date getDate(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a java.sql.Date- Parameters:
theColumnName- The name of the column- Returns:
- java.sql.Date the Value of column #columnId if it can be turned into a Date.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId can not be turned into a date
-
getDate
public Date getDate(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a java.sql.Date- Parameters:
columnId- the ID of the column- Returns:
- java.sql.Date the Value of column #columnId if it can be turned into a Date.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId can not be turned into a date
-
getTimestamp
public Timestamp getTimestamp(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a java.sql.Timestamp- Parameters:
theColumnName- The name of the column- Returns:
- java.util.Date the Value of column #columnId if it can be turned into a Date.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId can not be turned into a date
-
getTimestamp
public Timestamp getTimestamp(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a java.sql.Timestamp- Parameters:
columnId- The id of the column- Returns:
- java.util.Date the Value of column #columnId if it can be turned into a Date.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId can not be turned into a date
-
isNull
public boolean isNull(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException Returntrueif the column isnull.- Parameters:
theColumnName- The name of the column- Returns:
trueis this column isnullfalseis this column is notnull- Throws:
CSInvalidColumnIdException- If the columnId is not that of a valid columnCSNoDataInRowSetException- If there are no rows.
-
isNull
Returntrueif the column isnull.- Parameters:
columnId- The column Id- Returns:
trueis this column isnullfalseis this column is notnull- Throws:
CSInvalidColumnIdException- If the columnId is not that of a valid columnCSNoDataInRowSetException- If there are no rows.
-
getBooleanObj
public Boolean getBooleanObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Boolean Object- Parameters:
theColumnName- The name of the column- Returns:
trueIf the underlying column is a number with a value of zero.falseIf the underlying column is a number with a value of zero.trueIf the underlying column is a String with a value of "Y","y","T" or "t".falseIf the underlying column is a number with a value of "N","n","F","f",""- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a BooleanCSNoDataInRowSetException- if there are no rows in this rowset.
-
getBooleanObj
public Boolean getBooleanObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Boolean Object- Parameters:
columnId- The number of the column.- Returns:
trueIf the underlying column is a number with a value of zero.falseIf the underlying column is a number with a value of zero.trueIf the underlying column is a String with a value of "Y","y","T" or "t".falseIf the underlying column is a number with a value of "N","n","F","f",""- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Boolean or the column is a number that is too big too fit into a Boolean.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getTIMESTAMP
public oracle.sql.TIMESTAMP getTIMESTAMP(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.TIMESTAMP Object- Parameters:
theColumnName- The name of the column- Returns:
- an oracle.sql.TIMESTAMP.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a TIMESTAMPCSNoDataInRowSetException- if there are no rows in this rowset.
-
getTIMESTAMP
public oracle.sql.TIMESTAMP getTIMESTAMP(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a TIMESTAMP Object- Parameters:
columnId- The number of the column.- Returns:
- an oracle.sql.TIMESTAMP.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a TIMESTAMPCSNoDataInRowSetException- if there are no rows in this rowset.
-
getTIMESTAMPTZ
public oracle.sql.TIMESTAMPTZ getTIMESTAMPTZ(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.TIMESTAMPTZ Object- Parameters:
theColumnName- The name of the column- Returns:
- an oracle.sql.TIMESTAMPTZ.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a TIMESTAMPTZCSNoDataInRowSetException- if there are no rows in this rowset.
-
getTIMESTAMPTZ
public oracle.sql.TIMESTAMPTZ getTIMESTAMPTZ(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a TIMESTAMPTZ Object- Parameters:
columnId- The number of the column.- Returns:
- an oracle.sql.TIMESTAMPTZ.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a TIMESTAMPTZCSNoDataInRowSetException- if there are no rows in this rowset.
-
getTIMESTAMPLTZ
public oracle.sql.TIMESTAMPLTZ getTIMESTAMPLTZ(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.TIMESTAMPLTZ Object- Parameters:
theColumnName- The name of the column- Returns:
- an oracle.sql.TIMESTAMPLTZ.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a TIMESTAMPLTZCSNoDataInRowSetException- if there are no rows in this rowset.
-
getTIMESTAMPLTZ
public oracle.sql.TIMESTAMPLTZ getTIMESTAMPLTZ(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a TIMESTAMPLTZ Object- Parameters:
columnId- The number of the column.- Returns:
- an oracle.sql.TIMESTAMPLTZ.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a TIMESTAMPLTZ or the column is a number that is too big too fit into a TIMESTAMPLTZ.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getBoolean
public boolean getBoolean(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a boolean.- Parameters:
theColumnName- The name of the column- Returns:
trueIf the underlying column is a number with a value of zero.falseIf the underlying column is a number with a value of zero.trueIf the underlying column is a String with a value of "Y","y","T" or "t".falseIf the underlying column is a number with a value of "N","n","F","f",""- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a boolean or the column is a number that is too big too fit into a boolean.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getBoolean
public boolean getBoolean(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a boolean.- Parameters:
columnId- The number of the column.- Returns:
trueIf the underlying column is a number with a value of zero.falseIf the underlying column is a number with a value of zero.trueIf the underlying column is a String with a value of "Y","y","T" or "t".falseIf the underlying column is a number with a value of "N","n","F","f",""- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a boolean or the column is a number that is too big too fit into a boolean.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getByteObj
public Byte getByteObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Byte Object- Parameters:
theColumnName- The name of the column- Returns:
- Byte the Value of column #columnId if it can be turned into a Byte.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Byte or the column is a number that is too big too fit into a Byte.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getByteObj
public Byte getByteObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Byte Object- Parameters:
columnId- The number of the column.- Returns:
- Byte the Value of column #columnId if it can be turned into a Byte.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Byte or the column is a number that is too big too fit into a Byte.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getByte
public byte getByte(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a byte.- Parameters:
theColumnName- The name of the column- Returns:
- byte the Value of column #columnId if it can be turned into a byte.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a byte or the column is a number that is too big too fit into a byte.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getByte
public byte getByte(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a byte.- Parameters:
columnId- The number of the column.- Returns:
- byte the Value of column #columnId if it can be turned into a byte.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a byte or the column is a number that is too big too fit into a byte.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getShortObj
public Short getShortObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Short Object- Parameters:
theColumnName- The name of the column- Returns:
- Short the Value of column #columnId if it can be turned into a Short.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Short or the column is a number that is too big too fit into a Short.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getShortObj
public Short getShortObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Short Object- Parameters:
columnId- The number of the column.- Returns:
- Short the Value of column #columnId if it can be turned into a Short.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Short or the column is a number that is too big too fit into a Short.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getShort
public short getShort(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a short.- Parameters:
theColumnName- The name of the column- Returns:
- short the Value of column #columnId if it can be turned into a short.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a short or the column is a number that is too big too fit into a short.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getShort
public short getShort(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a short.- Parameters:
columnId- The number of the column.- Returns:
- short the Value of column #columnId if it can be turned into a short.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a short or the column is a number that is too big too fit into a short.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getIntegerObj
public Integer getIntegerObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Integer Object- Parameters:
theColumnName- The name of the column- Returns:
- Integer the Value of column #columnId if it can be turned into a Integer.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Integer or the column is a number that is too big too fit into a Integer.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getIntegerObj
public Integer getIntegerObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Integer Object- Parameters:
columnId- The number of the column.- Returns:
- Integer the Value of column #columnId if it can be turned into a Integer.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Integer or the column is a number that is too big too fit into a Integer.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getInt
public int getInt(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas an int.- Parameters:
theColumnName- The name of the column- Returns:
- int the Value of column #columnId if it can be turned into a int.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a int or the column is a number that is too big too fit into a int.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getInt
public int getInt(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas an int.- Parameters:
columnId- The number of the column.- Returns:
- int the Value of column #columnId if it can be turned into a int.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a int or the column is a number that is too big too fit into a int.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getLongObj
public Long getLongObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Long Object- Parameters:
theColumnName- The name of the column- Returns:
- Long the Value of column #columnId if it can be turned into a Long.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Long or the column is a number that is too big too fit into a Long.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getLongObj
public Long getLongObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Long Object- Parameters:
columnId- The number of the column.- Returns:
- Long the Value of column #columnId if it can be turned into a Long.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Long or the column is a number that is too big too fit into a Long.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getLong
public long getLong(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a long.- Parameters:
theColumnName- The name of the column- Returns:
- long the Value of column #columnId if it can be turned into a long.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a long or the column is a number that is too big too fit into a long.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getLong
public long getLong(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a long.- Parameters:
columnId- The number of the column.- Returns:
- long the Value of column #columnId if it can be turned into a long.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a long or the column is a number that is too big too fit into a long.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getFloatObj
public Float getFloatObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Float Object- Parameters:
theColumnName- The name of the column- Returns:
- Float the Value of column #columnId if it can be turned into a Float.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Float or the column is a number that is too big too fit into a Float.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getFloatObj
public Float getFloatObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Float Object- Parameters:
columnId- The number of the column.- Returns:
- Float the Value of column #columnId if it can be turned into a Float.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a Float or the column is a number that is too big too fit into a Float.CSNoDataInRowSetException- if there are no rows in this rowset.
-
getFloat
public float getFloat(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a float.- Parameters:
theColumnName- The name of the column- Returns:
- float the Value of column #columnId if it can be turned into a float.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a float or the column is a number that is too big too fit into a float.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getFloat
public float getFloat(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a float.- Parameters:
columnId- The number of the column.- Returns:
- float the Value of column #columnId if it can be turned into a float.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a float or the column is a number that is too big too fit into a float.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getDoubleObj
public Double getDoubleObj(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Double Object- Parameters:
theColumnName- The name of the column- Returns:
- Double the Value of column #columnId if it can be turned into a Double.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a DoubleCSNoDataInRowSetException- if there are no rows in this rowset.
-
getDoubleObj
public Double getDoubleObj(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a Double Object- Parameters:
columnId- The number of the column.- Returns:
- Double the Value of column #columnId if it can be turned into a Double.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a DoubleCSNoDataInRowSetException- if there are no rows in this rowset.
-
getDouble
public double getDouble(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a double.- Parameters:
theColumnName- The name of the column- Returns:
- double the Value of column #columnId if it can be turned into a double.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a double or the column is a number that is too big too fit into a double.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getDouble
public double getDouble(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSAttemptToGetNullException Get columncolumnIdas a double.- Parameters:
columnId- The number of the column.- Returns:
- double the Value of column #columnId if it can be turned into a double.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a double or the column is a number that is too big too fit into a double.CSNoDataInRowSetException- if there are no rows in this rowset.CSAttemptToGetNullException- if the value ofcolumnIdisnull
-
getBigDecimal
public BigDecimal getBigDecimal(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a java.math.BigDecimal Object- Parameters:
theColumnName- The name of the column- Returns:
- java.math.BigDecimal the Value of column #columnId if it can be turned into a java.math.BigDecimal.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a java.math.BigDecimalCSNoDataInRowSetException- if there are no rows in this rowset.
-
getBigDecimal
public BigDecimal getBigDecimal(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a java.math.BigDecimal Object- Parameters:
columnId- The number of the column.- Returns:
- java.math.BigDecimal the Value of column #columnId if it can be turned into a java.math.BigDecimal.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a java.math.BigDecimalCSNoDataInRowSetException- if there are no rows in this rowset.
-
getString
public String getString(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas a String. Numbers will be formatted. Dates will be formatted according to theTimeStampFormat.- Parameters:
theColumnName- The name of the column- Returns:
- String the Value of column #columnId if it can be turned into a string.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 0.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSUnsupportedDatatypeException- if columnId is not of a data type that we support.
-
getString
public String getString(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas a String. Numbers will be formatted. Dates will be formatted according to theTimeStampFormat.- Parameters:
columnId- The number of the column.- Returns:
- String the Value of column #columnId if it can be turned into a string.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 0.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSUnsupportedDatatypeException- if columnId is not of a data type that we support.
-
getCharArray
public char[] getCharArray(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas a char[] Object- Parameters:
theColumnName- The name of the column- Returns:
- char[] the Value of column #columnId if it can be turned into a char[].
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a char[]CSNoDataInRowSetException- if there are no rows in this rowset.CSUnsupportedDatatypeException- Since:
- v6.0.2770
-
getCharArray
public char[] getCharArray(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas a char[] Object- Parameters:
columnId- The number of the column.- Returns:
- char[] the Value of column #columnId if it can be turned into a char[].
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a char[]CSNoDataInRowSetException- if there are no rows in this rowset.CSUnsupportedDatatypeException- Since:
- v6.0.2770
-
getByteArray
public byte[] getByteArray(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas a byte[] Object- Parameters:
theColumnName- The name of the column- Returns:
- byte[] the Value of column #columnId if it can be turned into a byte[].
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a byte[]CSNoDataInRowSetException- if there are no rows in this rowset.CSUnsupportedDatatypeException
-
getByteArray
public byte[] getByteArray(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas a byte[] Object- Parameters:
columnId- The number of the column.- Returns:
- byte[] the Value of column #columnId if it can be turned into a byte[].
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a byte[]CSNoDataInRowSetException- if there are no rows in this rowset.CSUnsupportedDatatypeException
-
getObject
public Object getObject(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas an Object.- Parameters:
theColumnName- the name of the column.- Returns:
- Object the Value of column #columnId if it can be turned into an Object.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 0.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSUnsupportedDatatypeException- if columnId is not of a data type that we support.
-
getObject
public Object getObject(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas an Object.- Parameters:
columnId- The number of the column.- Returns:
- Object the Value of column #columnId if it can be turned into an Object.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 0.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSUnsupportedDatatypeException- if columnId is not of a data type that we support.
-
getOpaque
public oracle.sql.OPAQUE getOpaque(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas an oracle.sql.OPAQUE.- Parameters:
theColumnName- the name of the column.- Returns:
- oracle.sql.OPAQUE the Value of column #columnId if it can be turned into an oracle.sql.OPAQUE.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 0.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSUnsupportedDatatypeException- if columnId is not of a data type that we support.
-
getOpaque
public oracle.sql.OPAQUE getOpaque(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException, CSUnsupportedDatatypeException Get columncolumnIdas an oracle.sql.OPAQUE.- Parameters:
columnId- The number of the column.- Returns:
- oracle.sql.OPAQUE the Value of column #columnId if it can be turned into an oracle.sql.OPAQUE.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 0.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSUnsupportedDatatypeException- if columnId is not of a data type that we support.
-
getRowAsString
public String getRowAsString(String delimiter, String unprintableFieldMessage) throws CSNoDataInRowSetException Return the entire row in the form of a delimited string- Parameters:
delimiter- a delimiter such as ":"unprintableFieldMessage- a label such as "unprintable"- Returns:
- The row in the form of a text String.
- Throws:
CSNoDataInRowSetException- if there are no rows in this rowset.
-
getColumnNamesAsString
-
getColumnNamesAsStringArray
Return the row's column names in the form of a string Array- Returns:
- String[]
-
getColumnOracleDatatypeNames
Return the Oracle data types of the the columns as an array of String- Returns:
- String[]
- Since:
- V5.0.2177
-
checkRange
Make sure that columnId is a valid column.- Parameters:
columnId- The Id of a supposedly valid column- Throws:
CSInvalidColumnIdException- in advance to prevent ArrayIndexOutOfBoundsException later.
-
checkColumnName
Make sure that theColumnName is a valid column.- Parameters:
theColumnName- The name of a supposedly valid column- Returns:
trueif we can match this column name to a columntrueotherwise
-
checkRows
Make sure that we have rows.- Throws:
CSNoDataInRowSetException- if we don't have any rows.
-
setTimestampFormat
Change the way Timestamps are converted to Strings- Parameters:
newTimestampFormat-
-
setNumberFormat
Change the way Numbers are converted to Strings- Parameters:
newNumberFormat-
-
getCurrentRow
Return current row as an array of Object- Returns:
- Object[] A one dimensional Object array containing the current row.
- Throws:
CSNoDataInRowSetException- if the rowset is empty.
-
convertTimestampToString
protected String convertTimestampToString(Object theDateObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theDateObject into a Date object and then a String.- Parameters:
theDateObject- An object which is supposed to be an instance of java.sql.Date or java.sql.TimestamptheTimestampFormat- The date/time format we are using.- Returns:
- String A date formatted into a string.
- See Also:
-
convertTIMESTAMPToString
protected String convertTIMESTAMPToString(Object theTIMESTAMPObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a oracle.sql.TIMESTAMP object and then a String.- Parameters:
theTIMESTAMPObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPtheTimestampFormat- The date/time format we are using.- Returns:
- String A date formated into a string.
- See Also:
-
convertTIMESTAMPToDate
protected Date convertTIMESTAMPToDate(Object theTIMESTAMPObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.- Parameters:
theTIMESTAMPObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPtheTimestampFormat- The date/time format we are using.- Returns:
- Date A date.
- See Also:
-
convertTIMESTAMPToTimestamp
protected Timestamp convertTIMESTAMPToTimestamp(Object theTIMESTAMPObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.- Parameters:
theTIMESTAMPObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPtheTimestampFormat- The date/time format we are using.- Returns:
- Date A date.
- See Also:
-
convertTIMESTAMPTZToTimestamp
protected Timestamp convertTIMESTAMPTZToTimestamp(Object theTIMESTAMPTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.- Parameters:
theTIMESTAMPTZObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPtheTimestampFormat- The date/time format we are using.- Returns:
- Date A date.
- See Also:
-
convertTIMESTAMPLTZToTimestamp
protected Timestamp convertTIMESTAMPLTZToTimestamp(Object theTIMESTAMPLTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.- Parameters:
theTIMESTAMPLTZObject- object which is supposed to be an instance of oracle.sql.TIMESTAMPtheTimestampFormat- The date/time format we are using.- Returns:
- Date A date.
- See Also:
-
convertTIMESTAMPLTZToDate
protected Date convertTIMESTAMPLTZToDate(Object theTIMESTAMPLTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPObject into a Date object.- Parameters:
theTIMESTAMPLTZObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPtheTimestampFormat- The date/time format we are using.- Returns:
- Date A date.
- See Also:
-
convertTIMESTAMPTZToString
protected String convertTIMESTAMPTZToString(Object theTIMESTAMPTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPTZObject into a oracle.sql.TIMESTAMPTZ object and then a String.- Parameters:
theTIMESTAMPTZObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPTZtheTimestampFormat- The date/time format we are using.- Returns:
- String A date formated into a string.
- See Also:
-
convertTIMESTAMPTZToDate
protected Date convertTIMESTAMPTZToDate(Object theTIMESTAMPTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPTZObject into a oracle.sql.TIMESTAMPTZ object and then a String.- Parameters:
theTIMESTAMPTZObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPTZtheTimestampFormat- The date/time format we are using.- Returns:
- String A date formated into a string.
- See Also:
-
convertTIMESTAMPLTZToString
protected String convertTIMESTAMPLTZToString(Object theTIMESTAMPLTZObject, SimpleDateFormat theTimestampFormat) Utility method that will try to turn theTIMESTAMPLTZObject into a oracle.sql.TIMESTAMPLTZ object and then a String.- Parameters:
theTIMESTAMPLTZObject- An object which is supposed to be an instance of oracle.sql.TIMESTAMPLTZtheTimestampFormat- The date/time format we are using.- Returns:
- String A date formated into a string.
- See Also:
-
convertNumberToString
protected String convertNumberToString(Object theNumberObject, NumberFormat theNumberFormat) throws CSDBInvalidDatatypeCastException Utility method that will try to turn theNumberObject into a String.This method used the current Number Format to convert a number field to A String.
- Parameters:
theNumberObject- An object which is supposed to be an instance of java.sql.Date or java.sql.TimestamptheNumberFormat- A Valid number format- Returns:
- String A Number formatted into a string.
- Throws:
CSDBInvalidDatatypeCastException- See Also:
-
getBFILE
public oracle.sql.BFILE getBFILE(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.BFILE Object This method will only work if 'keepLobs' was set to true.- Parameters:
theColumnName- The name of the column- Returns:
- oracle.sql.BFILE the Value of column #columnId if it can be turned into a oracle.sql.BFILE.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a oracle.sql.BFILECSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- 2.0.1505
-
getBFILE
public oracle.sql.BFILE getBFILE(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.BFILE Object This method will only work if 'keepLobs' was set to true.- Parameters:
columnId- The number of the column.- Returns:
- oracle.sql.BFILE the Value of column #columnId if it can be turned into a oracle.sql.BFILE.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a oracle.sql.BFILECSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- 2.0.1505
-
getBLOB
public oracle.sql.BLOB getBLOB(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.BLOB Object This method will only work if 'keepLobs' was set to true.- Parameters:
theColumnName- The name of the column- Returns:
- oracle.sql.BLOB the Value of column #columnId if it can be turned into a oracle.sql.BLOB.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a oracle.sql.BLOBCSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- 2.0.1505
-
getBLOB
public oracle.sql.BLOB getBLOB(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.BLOB Object This method will only work if 'keepLobs' was set to true.- Parameters:
columnId- The number of the column.- Returns:
- oracle.sql.BLOB the Value of column #columnId if it can be turned into a oracle.sql.BLOB.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a oracle.sql.BLOBCSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- 2.0.1505
-
getCLOB
public oracle.sql.CLOB getCLOB(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.CLOB Object This method will only work if 'keepLobs' was set to true.- Parameters:
theColumnName- The name of the column- Returns:
- oracle.sql.CLOB the Value of column #columnId if it can be turned into a oracle.sql.CLOB.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a oracle.sql.CLOBCSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- 2.0.1505
-
getCLOB
public oracle.sql.CLOB getCLOB(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas a oracle.sql.CLOB Object This method will only work if 'keepLobs' was set to true.- Parameters:
columnId- The number of the column.- Returns:
- oracle.sql.CLOB the Value of column #columnId if it can be turned into a oracle.sql.CLOB.
- Throws:
CSInvalidColumnIdException- if columnId is not of a data type that we can handle.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be converted to a oracle.sql.CLOBCSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- 2.0.1505
-
getJSON
public oracle.sql.json.OracleJsonValue getJSON(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columntheColumnNameas anoracle.sql.json.OracleJsonValue.For native JSON columns (Oracle 21c+). The returned value can be navigated as an
OracleJsonObject/OracleJsonArray, or rendered back to JSON text withgetString(int)/toString().- Parameters:
theColumnName- The name of the column- Returns:
- oracle.sql.json.OracleJsonValue the value of the column, or
null. - Throws:
CSInvalidColumnIdException- if theColumnName is not a valid column.CSDBInvalidDatatypeCastException- if the column is not a JSON column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 21c
-
getJSON
public oracle.sql.json.OracleJsonValue getJSON(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas anoracle.sql.json.OracleJsonValue.- Parameters:
columnId- The number of the column.- Returns:
- oracle.sql.json.OracleJsonValue the value of the column, or
null. - Throws:
CSInvalidColumnIdException- if columnId is out of range.CSDBInvalidDatatypeCastException- if the column is not a JSON column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 21c
-
getVector
public double[] getVector(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columntheColumnNameas adouble[]vector.For VECTOR columns (Oracle 23ai). FLOAT32 / FLOAT64 / INT8 storage is converted to
doubleby the driver.- Parameters:
theColumnName- The name of the column- Returns:
- double[] the vector value of the column, or
null. - Throws:
CSInvalidColumnIdException- if theColumnName is not a valid column.CSDBInvalidDatatypeCastException- if the column is not a VECTOR column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 23ai
-
getVector
public double[] getVector(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas adouble[]vector.- Parameters:
columnId- The number of the column.- Returns:
- double[] the vector value of the column, or
null. - Throws:
CSInvalidColumnIdException- if columnId is out of range.CSDBInvalidDatatypeCastException- if the column is not a VECTOR column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 23ai
-
getVectorBinary
public byte[] getVectorBinary(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columntheColumnNameas abyte[]binary vector.For binary (bit-packed) VECTOR columns (Oracle 23ai):
VECTOR(n, BINARY)storesnbits asn/8bytes, which the driver cannot represent as adouble[]. Distinct fromgetVector(String)(dense FLOAT32/FLOAT64/INT8 vectors, read asdouble[]).- Parameters:
theColumnName- The name of the column- Returns:
- byte[] the binary vector value of the column, or
null. - Throws:
CSInvalidColumnIdException- if theColumnName is not a valid column.CSDBInvalidDatatypeCastException- if the column is not a binary VECTOR column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 23ai
-
getVectorBinary
public byte[] getVectorBinary(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas abyte[]binary vector.- Parameters:
columnId- The number of the column.- Returns:
- byte[] the binary vector value of the column, or
null. - Throws:
CSInvalidColumnIdException- if columnId is out of range.CSDBInvalidDatatypeCastException- if the column is not a binary VECTOR column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 23ai
-
getVectorSparse
public SparseVector getVectorSparse(String theColumnName) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columntheColumnNameas aSparseVector(a sparse VECTOR, Oracle 23ai).- Parameters:
theColumnName- The name of the column- Returns:
- the sparse vector value, or
null - Throws:
CSInvalidColumnIdException- if theColumnName is not a valid column.CSDBInvalidDatatypeCastException- if the column is not a sparse VECTOR column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 23ai
-
getVectorSparse
public SparseVector getVectorSparse(int columnId) throws CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get columncolumnIdas aSparseVector(a sparse VECTOR, Oracle 23ai). The sparse structure is preserved (not densified) — see the VECTOR unload in the row loader.- Parameters:
columnId- The number of the column.- Returns:
- the sparse vector value, or
null - Throws:
CSInvalidColumnIdException- if columnId is out of range.CSDBInvalidDatatypeCastException- if the column is not a sparse VECTOR column.CSNoDataInRowSetException- if there are no rows in this rowset.- Since:
- Oracle 23ai
-
getFile
public File getFile(String theColumnName, File outputFile) throws CSException, CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get a long text or binary columncolumnIdas aFileBLOBS, CLOBS and LONGS are downloaded to File's if in a ResultSet used to create a ReadOnlyRowSet. This method allows the calling application to obtain a File Object which points to the temporary file containing the long object in question. If the parameter
tempFileNameis that of a valid file that does not exist then the contents of the temporary file will be coppied to a new file calledtempFileName, which will then be returned instead.- Parameters:
theColumnName- The name of the columnoutputFile- The File you want the data stored in. If this parameter isnullyou get the temporary file that was created when we unloaded the result set.- Returns:
- String the Value of column #columnId if it can be turned into a string.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSException- if we hit a problem retrieving the Long field. If this happens we store anExceptionrather than aFile. This avoids throwing Exceptions when the object is being constructed and allows the application to survive if thr failure to retrieve a Long Field which may or may not be used.
-
getFile
public File getFile(int columnId, File outputFile) throws CSException, CSInvalidColumnIdException, CSNoDataInRowSetException, CSDBInvalidDatatypeCastException Get a long text or binary columncolumnIdas aFileBLOBS, CLOBS and LONGS are downloaded to File's if in a ResultSet used to create a ReadOnlyRowSet. This method allows the calling application to obtain a File Object which points to the temporary file containing the long object in question. If the parameter
tempFileNameis that of a valid file that does not exist then the contents of the temporary file will be coppied to a new file calledtempFileName, which will then be returned instead.- Parameters:
columnId- The number of the column.outputFile- The File you want the data stored in. If this parameter isnullyou get the temporary file that was created when we unloaded the result set.- Returns:
- String the Value of column #columnId if it can be turned into a string.
- Throws:
CSInvalidColumnIdException- if columnId is not the id of a valid column. Column numbering starts at 1.CSNoDataInRowSetException- if there are no rows in this rowset.CSDBInvalidDatatypeCastException- if columnId is not of a data type that can be turned into a String.CSException- if we hit a problem retrieving the Long field. If this happens we store anExceptionrather than aFile. This avoids throwing Exceptions when the object is being constructed and allows the application to survive if thr failure to retrieve a Long Field which may or may not be used.
-
createInvalidDatatypeCastException
protected void createInvalidDatatypeCastException(String theCastedoracleDatatype, String theCasteeJavaDatatype, String oracleColumnName) throws CSDBInvalidDatatypeCastException - Throws:
CSDBInvalidDatatypeCastException
-
getExpireDate
Set how long the result will remain up to date. -
setExpireDate
public void setExpireDate(long theExpireDate) Set how long the result will remain up to date.- Parameters:
theExpireDate- An arbitrary expiration date expressed in 1000'ths of a second from now
-
hasExpired
public boolean hasExpired()Set how long the result will remain up to date. -
getTempFileSuffix
Get the prefix used for generating temporary files -
setTempFileSuffix
Set the suffix used for generating temporary files -
getWriteableRowSet
-
toString
-
deleteGeneratedFiles
public int deleteGeneratedFiles()Delete all files in this ReadOnlyRowSet This is a cleanup method that you can use when the underlying cursor contained one or more LOB columns and you need to explicitly remove the resulting files.- Returns:
- int a count of the files deleted
-