public class ProductStatusList extends DataProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,ProductObservationNode> |
data
Collected data
|
Constructor and Description |
---|
ProductStatusList() |
Modifier and Type | Method and Description |
---|---|
void |
addProductObservationNode(ProductObservationNode node)
Add a node for an observation
|
java.util.Collection<ProductObservationNode> |
getList()
Get the collection of observation nodes containing the data
|
java.lang.String |
getSQL()
Get the query string
|
void |
init(ProductStatusForm form)
Prepare for queries
|
int |
loadAnaglyphs(boolean released)
Query and load the info for anaglyphs
|
int |
loadDTMextras(boolean released)
Query and load the info for DTM extras
|
int |
loadDTMs(boolean released)
Query and load the info for DTMs
|
int |
loadEDRs(boolean released)
Query and load the info for EDRs
|
int |
loadExtras(boolean released)
Query and load the info for EDR and RDR extras
|
int |
loadObservations()
Query and load the planned observation, suggestion, geometry and CCD
data
|
void |
loadProductStatus(boolean released)
Query and load the status info
|
int |
loadRDRs(boolean released)
Query and load the info for RDRs
|
void |
loadTags(boolean released)
Query and load the tagging info
|
void |
setCommanding()
Call set commanding for each obtained node.
|
void |
setExcludedTargets(java.lang.String... excludedTargets)
Change the list of excluded target names
|
getConnection, setConnection
protected final java.util.Map<java.lang.String,ProductObservationNode> data
public void init(ProductStatusForm form) throws java.sql.SQLException
form
- inputjava.sql.SQLException
- connection could not be obtainedpublic void setExcludedTargets(java.lang.String... excludedTargets)
excludedTargets
- name(s)public void addProductObservationNode(ProductObservationNode node)
node
- the node instancepublic int loadObservations() throws java.sql.SQLException, java.text.ParseException
java.sql.SQLException
- query failedjava.text.ParseException
- invalid datapublic int loadEDRs(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic int loadRDRs(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic int loadExtras(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic int loadAnaglyphs(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic int loadDTMs(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic int loadDTMextras(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic void setCommanding()
public void loadTags(boolean released) throws java.sql.SQLException
released
- if true, only info on released observations will be returnedjava.sql.SQLException
- query failedpublic void loadProductStatus(boolean released) throws java.sql.SQLException
released
- if true, only info on released products will be returnedjava.sql.SQLException
- query failedpublic java.util.Collection<ProductObservationNode> getList()
public java.lang.String getSQL()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona