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 / SynchronizerLink.java < prev    next >
Encoding:
Java Source  |  1998-03-18  |  2.9 KB  |  102 lines

  1. /*
  2.  * @(#)SynchronizerLink.java
  3.  *
  4.  * Copyright (c) 1997 Symantec Corporation. All Rights Reserved.
  5.  *
  6.  */
  7.  
  8. // Each QuerySynchronizer object contains one and only one
  9. // QueryNavigatorTree object.  This tree class implements the JFC
  10. // swing tree interface.  The parent child relationships between tree
  11. // nodes correspond to the master detail relationships between
  12. // QueryNavigators objects.  Each node contains a reference to a
  13. // QueryNavigatorLink object.  The purpose of this link is to hold
  14. // a spot for a QueryNavigator when the alias is known from a detail
  15. // QueryNavigator object before the master QueryNavigator object is
  16. // registered.
  17.  
  18. package symantec.itools.db.beans.binding;
  19.  
  20. import javax.awt.swing.tree.*;
  21. import java.beans.PropertyChangeListener;
  22.  
  23. interface SynchronizerLink
  24. {
  25.     /*
  26.      * Each link holds the alias of it synchronizable object
  27.      */
  28.     String getAlias();
  29.     void setAlias(String value);
  30.  
  31.     /*
  32.      * Each link holds the master alias of it synchronizable object
  33.      */
  34.     String getMasterAlias();
  35.     void setMasterAlias(String value);
  36.  
  37.     /*
  38.      * Each link holds the node where it fits into some tree
  39.      */
  40.     TreeNode getNode();
  41.     void setNode(TreeNode value);
  42.  
  43.     /*
  44.      * Each link holds a synchronizable object
  45.      */
  46.     Synchronizable getSynchronizable();
  47.     void setSynchronizable(Synchronizable value);
  48.  
  49.     /*
  50.      * Each link holds the synchronizer that owns its tree
  51.      */
  52.     QuerySynchronizer getSynchronizer();
  53.     void setSynchronizer(QuerySynchronizer value);
  54.  
  55.     /*
  56.      * Invoked by the synchronizable object to perform saveAll
  57.      */
  58.     void saveAll() throws RelationshipPendingException, ParentInvalidRecordException;
  59.  
  60.     /*
  61.      * Invoked by the synchronizable object to perform saveAllLevels
  62.      */
  63.     void saveAllLevels() throws RelationshipPendingException, ParentInvalidRecordException;
  64.  
  65.     /*
  66.      * Invoked by the synchronizable object to perform save
  67.      */
  68.     void save() throws RelationshipPendingException, ParentInvalidRecordException;
  69.  
  70.     /*
  71.      * Invoked by the synchronizable object to perform
  72.      * goto,restart,insert,startqbe,first,next,etc...
  73.      */
  74.     void navigate(int type, Integer position)
  75.         throws ParentInvalidRecordException, RelationshipPendingException;
  76.  
  77.     /*
  78.      * Is the node saving open space because the synchronizable object isn't added yet
  79.      */
  80.     boolean isOpen();
  81.  
  82.     /*
  83.      * Remove object references so they can be garbage collected
  84.      */
  85.     void close();
  86.  
  87.     /*
  88.      * Get link of parent node.
  89.      */
  90.     SynchronizerLink getParentLink();
  91.  
  92.     /**
  93.      * javadoc comments go here...
  94.      */
  95.     public void addPropertyChangeListener(PropertyChangeListener listener);
  96.  
  97.     /**
  98.      * javadoc comments go here...
  99.      */
  100.     public void removePropertyChangeListener(PropertyChangeListener listener);
  101.  
  102. }