| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--SarImage
Parses metadata files, creates a database connection, and inserts the data into the database. If an error occurs during the insertion to the database, the data is rolled back.
| Constructor Summary | |
| SarImage(java.lang.String id,
         java.lang.String fLoc,
         java.lang.String pUrl)Constructor to create a SarImage object. | |
| Method Summary | |
|  AntData | createANT()Opens the ant data file, parses the data, and stores in a AntData object | 
|  CnfData | createCNF()Opens the cnf data file, parses the data, and stores in a CnfData object | 
|  IfmuData | createIFMU()Opens the ifmu data file, parses the data, and stores in a IfmuData object | 
| static ImuData | createIMU()Opens the imu data file, parses the data, and stores in a ImuData object | 
| static void | insertANT(java.sql.Statement stmt)Inserts the data from a AntData object into the database. | 
| static void | insertCNF(java.sql.Statement stmt)Inserts the data from a CnfData object into the database. | 
|  void | insertDataValues()Creates a connection to the database and inserts the data from the data structures into the database. | 
| static void | insertIFMU(java.sql.Statement stmt)Inserts the data from a IfmuData object into the database. | 
| static void | insertIMAGE(java.sql.Statement stmt)Inserts the data about the SarImage object into the database. | 
| static void | insertIMU(java.sql.Statement stmt)Inserts the data from a ImuData object into the database. | 
| static void | rollbackData(java.sql.Statement stmt) | 
|  void | setDataValues()Parses the metadata from the files and stores it in the appropriate data structures. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SarImage(java.lang.String id,
                java.lang.String fLoc,
                java.lang.String pUrl)
id - the image IDfLoc - the location of the filespUrl - the url to the directory of the 'gif' image| Method Detail | 
public void setDataValues()
public void insertDataValues()
public CnfData createCNF()
                  throws ParsingException
ParsingException - an error occured when opening or reading the file
public static void insertCNF(java.sql.Statement stmt)
                      throws ParsingException
stmt - the database connection statementParsingException - an error occured when inserting the data
public AntData createANT()
                  throws ParsingException
ParsingException - an error occured when opening or reading the file
public static void insertANT(java.sql.Statement stmt)
                      throws ParsingException
stmt - the database connection statementParsingException - an error occured when inserting the data
public static ImuData createIMU()
                         throws ParsingException
ParsingException - an error occured when opening or reading the file
public static void insertIMU(java.sql.Statement stmt)
                      throws ParsingException
stmt - the database connection statementParsingException - an error occured when inserting the data
public IfmuData createIFMU()
                    throws ParsingException
ParsingException - an error occured when opening or reading the file
public static void insertIFMU(java.sql.Statement stmt)
                       throws ParsingException
stmt - the database connection statementParsingException - an error occured when inserting the data
public static void insertIMAGE(java.sql.Statement stmt)
                        throws ParsingException
stmt - the database connection statementParsingException - an error occured when inserting the datapublic static void rollbackData(java.sql.Statement stmt)
| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||