|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--grs.pds.TimeQuery
Abstract Base class for time-range constrained SQL queries. Contains static method for determining appropriate schema.
| Field Summary | |
static long |
TIME_OF_LCH
start of cruise phase |
static long |
TIME_OF_MAP
start of mapping phase |
static long |
TIME_OF_MOI
start of aerobraking phase |
| Constructor Summary | |
TimeQuery(Connection conn)
Set the Connection. |
|
TimeQuery(Connection conn,
String type)
Set the Connection. |
|
| Method Summary | |
static String |
getSchema(long sctime)
We now have different schemas for each mission phase. |
abstract int |
query(long start,
long stop)
Subclasses will provide this method implementation. |
int |
query(String utc0,
String utc1)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long TIME_OF_LCH
public static final long TIME_OF_MOI
public static final long TIME_OF_MAP
| Constructor Detail |
public TimeQuery(Connection conn)
conn - JDBC Connection to our Oracle database.
public TimeQuery(Connection conn,
String type)
conn - JDBC Connection to our Oracle database.type - product| Method Detail |
public static String getSchema(long sctime)
sctime - Spacecraft clock ticks
public int query(String utc0,
String utc1)
throws IOException,
SQLException,
SpiceException
utc0 - utc1 -
IOException
SQLException
SpiceException
public abstract int query(long start,
long stop)
throws IOException,
SQLException
start - ticksstop - ticks
IOException - Stream error.
SQLException - Database error.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||