All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class tc.database.UpdateMarkersQuery
java.lang.Object
   |
   +----tc.database.DatabaseQuery
           |
           +----tc.database.UpdateMarkersQuery
  -  public class UpdateMarkersQuery
  
-  extends DatabaseQuery
  
UpdateMarkersQuery implements the abstract methods in
DatabaseQuery so that calling them causes markers update.
  -  Version:
  
 -  0.30, 1998/04/01
  
 -  Author:
  
 -  FRED development team, Antti Viljamaa
 
  
  -  
	UpdateMarkersQuery(Vector)
   -  Creates a new query.
 
  
  -  
	calculate(QueryDataSet)
   -  Finalizes the query by updating the markers.
  
 -  
	getSQLClause()
   -  Returns the SQL query for creating the needed dataset.
  
 -  
	isWriteQuery()
   -  Returns 
true.
   -  
	updateMarkerRowInDataSet(QueryDataSet, int, int, int, int)
   -  Updates a row in the 'Marker' table.
 
  
UpdateMarkersQuery
 public UpdateMarkersQuery(Vector markers)
  -  Creates a new query. The markers to be updated are given as a parameter.
 
  
calculate
 public void calculate(QueryDataSet dataset) throws DataSetException, InvalidMarkerException
  -  Finalizes the query by updating the markers.
  
    -  Overrides:
    
 -  calculate in class DatabaseQuery
  
 
 
 
getSQLClause
 public String getSQLClause()
  -  Returns the SQL query for creating the needed dataset.
  
    -  Returns:
    
 -  String        A string representing the query.
    
 -  Overrides:
    
 -  getSQLClause in class DatabaseQuery
  
 
 
 
isWriteQuery
 public boolean isWriteQuery()
  -  Returns 
true.
  
    -  Returns:
    
 -  
true.
     -  Overrides:
    
 -  isWriteQuery in class DatabaseQuery
  
 
 
 
updateMarkerRowInDataSet
 private void updateMarkerRowInDataSet(QueryDataSet dataset,
                                       int markerID,
                                       int redColor,
                                       int greenColor,
                                       int blueColor) throws DataSetException, InvalidMarkerException
  -  Updates a row in the 'Marker' table.
  
    -  Parameters:
    
 -  dataset - The dataset which represents the contents of the
'Marker' table.
    
-  markerID - The marker that is updated.
    
-  redColor - New red color value for the marker.
    
-  greenColor - New green color value for the marker.
    
-  blueColor - New blue color value for the marker.
  
     
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index