1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.sql;
  6. /**
  7. * <P>The RowSetListener interface is implemented by a
  8. * component that wants to be notified when a significant
  9. * event happens in the life of a RowSet
  10. */
  11. public interface RowSetListener extends java.util.EventListener {
  12. /**
  13. * <P>Called when the rowset is changed.
  14. *
  15. * @param event an object describing the event
  16. */
  17. void rowSetChanged(RowSetEvent event);
  18. /**
  19. * <P>Called when a row is inserted, updated, or deleted.
  20. *
  21. * @param event an object describing the event
  22. */
  23. void rowChanged(RowSetEvent event);
  24. /**
  25. * Called when a rowset's cursor is moved.
  26. *
  27. * @param event an object describing the event
  28. */
  29. void cursorMoved(RowSetEvent event);
  30. }