|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.cassini.CDRS.qviewer.core.util.AddProductToDBObj
public class AddProductToDBObj
| Constructor Summary | |
|---|---|
AddProductToDBObj(Connection conn)
Construct the object using the given connection. |
|
AddProductToDBObj(String username,
String password,
String databasename,
String servername)
Construct new object using database login info. |
|
| Method Summary | |
|---|---|
void |
addIssProduct(String pFileName,
String fType,
String userName,
String description,
boolean predictsRequired,
long reqId,
int jobId,
int reasonCode)
Adds the given product to ISS product table. |
void |
addProduct(String productFileName,
String fType,
String userName,
String description,
boolean predictsRequired,
long reqId,
int jobId,
int reasonCode)
Adds the given product to ISS or VIMS product table depending on the productFileName. |
void |
addVimsProduct(String pFileName,
String fType,
String userName,
String description,
boolean predictsRequired,
long reqId,
int jobId,
int reasonCode)
Adds the given product to VIMS product table. |
void |
finalize()
|
static String |
getIssImageFileName(String fname)
Retrun an image file name corresponding to the given fname. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddProductToDBObj(String username,
String password,
String databasename,
String servername)
throws Exception
username - Database user name.password - if null, password server will be useddatabasename - database to connect toservername - server where the database residespredictsRequired - if true and no predicts are found, the process will exit. Otherwise it will use predicts if found.
Exceptionpublic AddProductToDBObj(Connection conn)
conn - A valid connection to database.| Method Detail |
|---|
public void addProduct(String productFileName,
String fType,
String userName,
String description,
boolean predictsRequired,
long reqId,
int jobId,
int reasonCode)
throws Exception
productName - The name of the product to be added.fType - The FEI file type to which this product is added to.description - reason for manual addpredictsRequired - if true, product will only be added if exactly one predict is found for the product.reqId - the request id for which the product is to be addedjobId - the job id for which the product is to be added
IllegalArgumentException - if the product file name is null
or zero length string.
Exception
public void addIssProduct(String pFileName,
String fType,
String userName,
String description,
boolean predictsRequired,
long reqId,
int jobId,
int reasonCode)
throws Exception
productFileName - A complete path name of file to be addeddescription - reason for manual add
Excepion - IllegalArgumentException if the given productFileName is
null or zero value file and exceptions thrown by other classes.
Exception
public void addVimsProduct(String pFileName,
String fType,
String userName,
String description,
boolean predictsRequired,
long reqId,
int jobId,
int reasonCode)
throws Exception
productFileName - name of cube file to be addeddescription - reason for manual add
Excepion
Exceptionpublic void finalize()
finalize in class Objectpublic static String getIssImageFileName(String fname)
fname - The name of label (or image) file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||