List of usage examples for javax.sql.rowset RowSetWarning RowSetWarning
public RowSetWarning()
RowSetWarning
object. From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Constructs a new default <code>CachedRowSetImpl</code> object with * the capacity to hold 100 rows. This new object has no metadata * and has the following default values: * <pre>/*from ww w. j ava 2s .c o m*/ * onInsertRow = false * insertRow = null * cursorPos = 0 * numRows = 0 * showDeleted = false * queryTimeout = 0 * maxRows = 0 * maxFieldSize = 0 * rowSetType = ResultSet.TYPE_SCROLL_INSENSITIVE * concurrency = ResultSet.CONCUR_UPDATABLE * readOnly = false * isolation = Connection.TRANSACTION_READ_COMMITTED * escapeProcessing = true * onInsertRow = false * insertRow = null * cursorPos = 0 * absolutePos = 0 * numRows = 0 * </pre> * A <code>CachedRowSetImpl</code> object is configured to use the default * <code>RIOptimisticProvider</code> implementation to provide connectivity * and synchronization capabilities to the set data source. * <P> * @throws SQLException if an error occurs */ public BFTRowSet() throws SQLException { try { resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); } catch (IOException ioe) { throw new RuntimeException(ioe); } // set the Reader, this maybe overridden latter provider = (SyncProvider) SyncFactory.getInstance(DEFAULT_SYNC_PROVIDER); if (!(provider instanceof RIOptimisticProvider)) { throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.invalidp").toString()); } rowSetReader = (CachedRowSetReader) provider.getRowSetReader(); rowSetWriter = (CachedRowSetWriter) provider.getRowSetWriter(); // allocate the parameters collection initParams(); initContainer(); // set up some default values initProperties(); // insert row setup onInsertRow = false; insertRow = null; // set the warninings sqlwarn = new SQLWarning(); rowsetWarning = new RowSetWarning(); }