home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / prosrc.bin / DbDataUpdater.java < prev    next >
Encoding:
Java Source  |  1998-03-18  |  3.5 KB  |  81 lines

  1. /*
  2.  * Copyright (c) 1997 Krumel & Associates, Inc. All Rights Reserved.
  3.  *
  4.  * www.krumel.com - controls@krumel.com
  5.  *
  6.  * Permission is given to the buyer of this package for one software
  7.  * developer to use this software on one CPU (one workstation) and to make
  8.  * one backup copy.  You may uitilize and/or modify this class for use in your
  9.  * projects.  You may distribute or sell any executable which results from
  10.  * using this code in yur application, except a utility or class of similar
  11.  * nature to this product.  You may distribute this product in compiled
  12.  * form only, but soley to be used with your cmpiled executable product
  13.  * for the puposes of dynamic loading. You may NOT redistribute the source
  14.  * code in any form or make it accessible through a network or other
  15.  * distribution media to others. Please refer to the file "copyright.html"
  16.  * for further important copyright and licensing information.
  17.  *
  18.  * The source code is the confidential and proprietary information
  19.  * of Krumel & Associates, Inc. ("Confidential Information").  You shall
  20.  * not disclose such Confidential Information and shall use it only in
  21.  * accordance with the terms of the license agreement you entered into
  22.  * with Krumel & Associates, Inc..
  23.  
  24.  * KRUMEL & ASSOCIATES MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
  25.  * SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT
  26.  * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  27.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. KRUMEL & ASSOCIATES SHALL NOT
  28.  * BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
  29.  * MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  30.  */
  31.  
  32. package symantec.itools.db.awt;
  33.  
  34. /**
  35.  * Class responsible to DbDataSource to make the necessary calls to update the database
  36.  * to the state of the data stored in the data source.
  37.  */
  38. public interface DbDataUpdater extends java.io.Serializable {
  39.     /**
  40.      * Called by DbDataSource to allow the updater to store a reference to the data source.
  41.      */
  42.     public void setDbDataSource(DbDataSource ds);
  43.  
  44.     /**
  45.      * Called by the data source when a row is marked for deletion.
  46.      * @exception TypeNotSupported
  47.      * if the data source does not support the type of action requested
  48.      * or is not successful
  49.      */
  50.     public void deleteRow(int row) throws TypeNotSupported;
  51.     /**
  52.      * Called by the data source when a row is marked for undeletion.
  53.      * @exception TypeNotSupported
  54.      * if the data source does not support the type of action requested
  55.      * or is not successful
  56.      */
  57.     public void undeleteRow(int row) throws TypeNotSupported;
  58.     /**
  59.      * Called by the data source when the user requests the data be saved back
  60.      * to the database.
  61.      * @exception TypeNotSupported
  62.      * if the data source does not support the type of action requested
  63.      * or is not successful
  64.      */
  65.     public void save() throws TypeNotSupported;
  66.     /**
  67.      * Called by the data source when the user requests to insert a row of data.
  68.      * @exception TypeNotSupported
  69.      * if the data source does not support the type of action requested
  70.      * or is not successful
  71.      */
  72.     public void insertRow(int row) throws TypeNotSupported;
  73.     /**
  74.      * Called by the data source when the user requests to append a row of data.
  75.      * @exception TypeNotSupported
  76.      * if the data source does not support the type of action requested
  77.      * or is not successful
  78.      */
  79.     public int appendRow() throws TypeNotSupported;
  80. }
  81.