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

Constructor Index

 o UpdateMarkersQuery(Vector)
Creates a new query.

Method Index

 o calculate(QueryDataSet)
Finalizes the query by updating the markers.
 o getSQLClause()
Returns the SQL query for creating the needed dataset.
 o isWriteQuery()
Returns true.
 o updateMarkerRowInDataSet(QueryDataSet, int, int, int, int)
Updates a row in the 'Marker' table.

Constructors

 o UpdateMarkersQuery
 public UpdateMarkersQuery(Vector markers)
Creates a new query. The markers to be updated are given as a parameter.

Methods

 o calculate
 public void calculate(QueryDataSet dataset) throws DataSetException, InvalidMarkerException
Finalizes the query by updating the markers.

Overrides:
calculate in class DatabaseQuery
 o 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
 o isWriteQuery
 public boolean isWriteQuery()
Returns true.

Returns:
true.
Overrides:
isWriteQuery in class DatabaseQuery
 o 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