List of usage examples for javax.sql RowSetEvent RowSetEvent
public RowSetEvent(RowSet source)
RowSetEvent
object initialized with the given RowSet
object. From source file:lasige.steeldb.jdbc.BFTRowSet.java
/** * Notifies registered listeners that a RowSet object in the given RowSetEvent * object has populated a number of additional rows. The <code>numRows</code> parameter * ensures that this event will only be fired every <code>numRow</code>. * <p>/*from ww w . j a v a 2 s.c om*/ * The source of the event can be retrieved with the method event.getSource. * * @param event a <code>RowSetEvent</code> object that contains the * <code>RowSet</code> object that is the source of the events * @param numRows when populating, the number of rows interval on which the * <code>CachedRowSet</code> populated should fire; the default value * is zero; cannot be less than <code>fetchSize</code> or zero */ public void rowSetPopulated(RowSetEvent event, int numRows) throws SQLException { if (numRows < 0 || numRows < getFetchSize()) { throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.numrows").toString()); } if (size() % numRows == 0) { RowSetEvent event_temp = new RowSetEvent(this); event = event_temp; notifyRowSetChanged(); } }