HiRISE

HiRISE.HiReport.main
Class ObservationList

java.lang.Object
  extended by HiRISE.HiReport.DataProvider
      extended by HiRISE.HiReport.main.ObservationList

public class ObservationList
extends DataProvider

Provides central access to query on observations.

Version:
1.6

Field Summary
protected static Anaglyph_Products Anaglyph
          Anaglyph Products
protected  Column[] COLS
          Columns to return
protected  Set<Column> columns
          Columns included in the query
protected  Map<Column,Constraint> constraints
          Additional constraints passed by subclass
protected static Cycle_map Cycles
          Cycles
protected  SimpleDateFormat doy
          Format time as year-DOY
protected static DTM_Products DTM
          DTM Products
protected static EDR_Products EDR
          EDR Products
protected static Observation_Geometry Geo
          Geometry table
static String ID
          CVS ID
protected static Logger logger
          Our logger
protected static Planned_Observations Obs
          Planning table
protected static People PPL
          People Table
protected static Suggested_Observations_People_map PPL_map
          Maps suggestions to suggester
protected static RDR_Products RDR
          RDR Products
protected static Suggested_Observations SO
          Suggestions table
protected static Suggested_Observations_Planned_Observations_map SOPO_map
          Maps suggestions to observations
protected static Suggested_Observations_Science_Themes_map SOST_map
          Maps suggestions to themes
protected static Science_Themes ST
          Themes table
protected  Set<Table> tables
          Tables included in the query
protected static Tags Tags
          Tag Table
protected static Extras_Products XP
          Extras Products
 
Fields inherited from class HiRISE.HiReport.DataProvider
HiRISE_ROOT
 
Constructor Summary
ObservationList()
           
 
Method Summary
 ResultList getObservations(ObservationListForm form)
          Perform the query and return the result list.
 String getSQL()
          Get the query
 void setShowUnproferred(boolean showUnproferred)
          Set to false to not include unreleased observations.
 boolean willShowUnproferred()
          If true, unreleased observations will be returned.
 
Methods inherited from class HiRISE.HiReport.DataProvider
getConnection, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

Obs

protected static final Planned_Observations Obs
Planning table


SO

protected static final Suggested_Observations SO
Suggestions table


Geo

protected static final Observation_Geometry Geo
Geometry table


ST

protected static final Science_Themes ST
Themes table


SOST_map

protected static final Suggested_Observations_Science_Themes_map SOST_map
Maps suggestions to themes


SOPO_map

protected static final Suggested_Observations_Planned_Observations_map SOPO_map
Maps suggestions to observations


PPL_map

protected static final Suggested_Observations_People_map PPL_map
Maps suggestions to suggester


PPL

protected static final People PPL
People Table


Tags

protected static final Tags Tags
Tag Table


RDR

protected static final RDR_Products RDR
RDR Products


EDR

protected static final EDR_Products EDR
EDR Products


DTM

protected static final DTM_Products DTM
DTM Products


Anaglyph

protected static final Anaglyph_Products Anaglyph
Anaglyph Products


XP

protected static final Extras_Products XP
Extras Products


Cycles

protected static final Cycle_map Cycles
Cycles


COLS

protected Column[] COLS
Columns to return


logger

protected static final Logger logger
Our logger


doy

protected SimpleDateFormat doy
Format time as year-DOY


columns

protected Set<Column> columns
Columns included in the query


tables

protected Set<Table> tables
Tables included in the query


constraints

protected Map<Column,Constraint> constraints
Additional constraints passed by subclass

Constructor Detail

ObservationList

public ObservationList()
Method Detail

setShowUnproferred

public void setShowUnproferred(boolean showUnproferred)
Set to false to not include unreleased observations.

Parameters:
showUnproferred - True if unreleased observations should be included

willShowUnproferred

public boolean willShowUnproferred()
If true, unreleased observations will be returned.

Returns:
true if unreleased included

getObservations

public ResultList getObservations(ObservationListForm form)
                           throws SQLException,
                                  ParseException
Perform the query and return the result list.

Parameters:
form - Constraints
Returns:
observations The observations
Throws:
SQLException - Query failed
ParseException - Invalid time input
SQLException - Query failed
ParseException - Invalid input encountered

getSQL

public String getSQL()
Get the query

Returns:
SQL

HiRISE

Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona