All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tc.database.GetTimeSlicesQuery

java.lang.Object
   |
   +----tc.database.DatabaseQuery
           |
           +----tc.database.GetTimeSlicesQuery

public class GetTimeSlicesQuery
extends DatabaseQuery
GetTimeSlicesQuery implements the abstract methods in DatabaseQuery so that calling them causes time slices fetch.

Version:
0.30, 1998/04/01
Author:
FRED development team, Antti Viljamaa

Constructor Index

 o GetTimeSlicesQuery(TimeSlice)
Constructs a new query.

Method Index

 o calculate(QueryDataSet)
Finalizes the query by creating a Vector of TimeSlice objects reflecting the rows in the dataset.
 o doValidationCheck()
Checks that the database manager has fetched proper markers.
 o getSQLClause()
Returns the SQL query for creating the needed dataset.
 o isWriteQuery()
Return false.

Constructors

 o GetTimeSlicesQuery
 public GetTimeSlicesQuery(TimeSlice ts)
Constructs a new query.

Parameters:
eter - ts A TimeSlice object that represents a time period inside which the returned time slices must be.

Methods

 o calculate
 public void calculate(QueryDataSet dataset) throws DataSetException, ValidationException
Finalizes the query by creating a Vector of TimeSlice objects reflecting the rows in the dataset. Sets the vector as the result property.

Overrides:
calculate in class DatabaseQuery
 o doValidationCheck
 public void doValidationCheck() throws ValidationException
Checks that the database manager has fetched proper markers.

Overrides:
doValidationCheck 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()
Return false.

Returns:
false
Overrides:
isWriteQuery in class DatabaseQuery

All Packages  Class Hierarchy  This Package  Previous  Next  Index