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 / BasicDataSource.java < prev    next >
Encoding:
Java Source  |  1998-03-18  |  2.3 KB  |  62 lines

  1. /*
  2.  * @(#)BasicDataSource.java
  3.  *
  4.  * Copyright (c) 1997 Symantec Corporation. All Rights Reserved.
  5.  *
  6.  */
  7.  /**
  8.  * <P> A simple helper class  for the QueryNavigator class. In order to
  9.  easily work with a mediatorDS a Data Source should implement this interface
  10.  */
  11. package symantec.itools.db.beans.binding;
  12.  
  13. public interface BasicDataSource
  14. {
  15.  
  16.      /**
  17.      * Sets the Mediator property.
  18.      *This method allows the QueryNavigator to access the commit() method in
  19.      *its MediatorDS. This commit() method is to be called whenever the
  20.      *QueryNavigator wants to notify the DataBus a change in its values.
  21.      *
  22.      *   you should put it at the end of every next, previous.....
  23.      *
  24.      * @param mediat.     The reference to the MediatorDs.
  25.      */
  26.     //public void setMediator(MediatorDS mediat);
  27.  
  28.     /**
  29.      * Gets the object stored in the QueryNavigator with the coordinates
  30.      * row  and col.
  31.      * @param    Row.       The current row, relative value.
  32.      * @param    Col.       The column value.
  33.      * @return   Object.    The value of the object.
  34.      */
  35.     public Object getValue(int Row,int Col);
  36.  
  37.     /**
  38.      * Sets the object stored in the QueryNavigator with the coordinates
  39.      * row  and col.
  40.      * @param    Value.    The value of the object.
  41.      * @param    Row.     The current row, relative value.
  42.      * @param    Col.      The column value.
  43.      *
  44.      */
  45.     public void setValue(Object Value,int Row,int Col) ;
  46.     /**
  47.      * Adds a listner for the trigger mothod of the data source. every data source sould be
  48.      * connected to only one mediatords therefore the vector of listeners should contain only
  49.      * one element. this vector of listeners is also used for setting the name of the mediatords's
  50.      * DataName.
  51.      */
  52.     public void addTriggerUIListener(TriggerUIListener mds);
  53.      /**
  54.      * Removes a listner for the trigger mothod of the data source. every data source sould be
  55.      * connected to only one mediatords therefore the vector of listeners should contain only
  56.      * one element. this vector of listeners is also used for setting the name of the mediatords's
  57.      * DataName.
  58.      */
  59.     public void removeTriggerUIListener(TriggerUIListener mds);
  60.     public int getTotalNumberOfRows();
  61.     public int getCurrentRowNumber();
  62. }