home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / SOURCE.BIN / DbaDataLink.java < prev    next >
Encoding:
Java Source  |  1997-06-19  |  1.0 KB  |  44 lines

  1. /*
  2.  * DbaDataLink.java   1.0   12 Jan 1997
  3.  *
  4.  * Copyright (c) 1996 Krumel & Associates, Inc.  All Rights Reserved.
  5.  *
  6.  * This software is provided as is.  Krumel & Associates shall not be liable
  7.  * for any damages suffered by licensee as a result of using, modifying or
  8.  * distributing this software or its derivatives.
  9.  */
  10.  
  11. package symantec.itools.db.awt;
  12.  
  13. import symantec.itools.db.pro.*;
  14. import symjava.sql.SQLException ;
  15.  
  16. class DbaDataLink implements RecordSetLink, RecordLink
  17. {
  18.     DbaDataStore    store;
  19.     int             recordNumber;
  20.     RelationView    rv;
  21.  
  22.     public DbaDataLink(DbaDataStore s)
  23.     {
  24.         store = s;
  25.     }
  26.  
  27.     public void init()
  28.     {
  29.         recordNumber = -1;
  30.     }
  31.  
  32.     public void notifyRecordSetChange(RelationView rv) throws SQLException
  33.     {
  34.         store.resetRows();
  35.     }
  36.  
  37.     public void notifyRecordChange (Record currentRec) throws SQLException
  38.     {
  39.         if (currentRec != null)
  40.         {
  41.             store.notifyRecordChange();
  42.         }
  43.     }
  44. }