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
-
GetTimeSlicesQuery(TimeSlice)
- Constructs a new query.
-
calculate(QueryDataSet)
- Finalizes the query by creating a Vector of TimeSlice objects reflecting
the rows in the dataset.
-
doValidationCheck()
- Checks that the database manager has fetched proper markers.
-
getSQLClause()
- Returns the SQL query for creating the needed dataset.
-
isWriteQuery()
- Return
false
.
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.
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
doValidationCheck
public void doValidationCheck() throws ValidationException
- Checks that the database manager has fetched proper markers.
- Overrides:
- doValidationCheck 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()
- Return
false
.
- Returns:
-
false
- Overrides:
- isWriteQuery in class DatabaseQuery
All Packages Class Hierarchy This Package Previous Next Index