object, and the application can request it in any other supported format. Let s take a look at the getString method: public String getString( int columnIndex) throws SQLException { // Verify the column and get the absolute column number for the // table. int colNo = verify(columnIndex); String s = null; if (inMemoryRows != null) { s = (getColumn(rowNum, columnIndex)).getString(); } else { CommonValue value = getValue(colNo); if (value != null) { s = value.getString(); } } if (s == null) { lastNull = true; } return s; } The method starts out by verifying that the given column number is valid. If it is not, an exception is thrown. Some other types of initialization are also performed. Remember that all ResultSet objects are provided with a Hashtable of SimpleTextColumn objects describing each column: protected int verify( int column) throws SQLException { clearWarnings(); lastNull = false; SimpleTextColumn col = (SimpleTextColumn) inMemoryColumns.get( new Integer(column)); if (col == null) { throw new SQLException(”Invalid column number: ” + column); } return col.colNo; } Next, if the row data is stored in an in-memory Hashtable (as with the DatabaseMetaData catalog methods), the data is retrieved from the Hashtable. Otherwise, the driver gets the data from the data file. In both instances, the data is retrieved as a CommonValue object, and the getString method is used to format the data
You need web hosting, easy to use web template and great support. What else could I ask for?All of our reseller accounts include free web hosting templates just check web hosting templates for more information.

Leave a Reply