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. import java.sql.*;
  7. /**
  8. * <P>An object that implements the RowSetWriter interface may be registered
  9. * with a RowSet object that supports the reader/writer paradigm.
  10. * The RowSetWriter.writeRow() method is called internally by a RowSet that supports
  11. * the reader/writer paradigm to write the contents of the rowset to a data source.
  12. */
  13. public interface RowSetWriter {
  14. /**
  15. <P>This method is called to write data to the data source
  16. that is backing the rowset.
  17. * @param caller the calling rowset
  18. * @return true if the row was written, false if not due to a conflict
  19. * @exception SQLException if a database-access error occur
  20. */
  21. boolean writeData(RowSetInternal caller) throws SQLException;
  22. }