Sunday, July 3, 2011

Default JdbcRowSet Objects

When you create a JdbcRowSet object with the default constructor, the new JdbcRowSet object will have the following properties:

  • type: ResultSet.TYPE_SCROLL_INSENSITIVE (has a scrollable cursor)
  • concurrency: ResultSet.CONCUR_UPDATABLE (can be updated)
  • escapeProcessing: true (the driver will do escape processing; when escape processing is enabled, the driver will scan for any escape syntax and translate it into code that the particular database understands)
  • maxRows: 0 (no limit on the number of rows)
  • maxFieldSize: 0 (no limit on the number of bytes for a column value; applies only to columns that store BINARY, VARBINARY, LONGVARBINARY, CHAR,VARCHAR, and LONGVARCHAR values)
  • queryTimeout: 0 (has no time limit for how long it takes to execute a query)
  • showDeleted: false (deleted rows are not visible)
  • transactionIsolation: Connection.TRANSACTION_READ_COMMITTED (reads only data that has been committed)
  • typeMap: null (the type map associated with a Connection object used by this RowSet object is null)

The main thing you must remember from this list is that a JdbcRowSet and all other RowSet objects are scrollable and updatable unless you set different values for those properties.

No comments:

Post a Comment