org.ChinaVO.FITSManager.FITSHeads
Class DBOperatorFITSHeads
java.lang.Object
org.ChinaVO.FITSManager.FITSHeads.DBOperatorFITSHeads
public class DBOperatorFITSHeads
- extends java.lang.Object
Method Summary |
static void |
createTables()
While not FITSHeadType & FITSHeads table exists in database, call this
method to create them.
This method should be called in FITSHeads's constructor. |
DBOperator |
getDBOpeator()
Get the DBOperator instance in the DBOperatorFITSHeads |
int |
insertHeadItem(java.lang.String fileID,
java.lang.String hduID,
java.lang.String itemIndex,
java.lang.String key,
java.lang.String value,
java.lang.String comment,
boolean isGetID)
Insert a item of FITS head into FITSHeads table. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBOperatorFITSHeads
public DBOperatorFITSHeads()
getDBOpeator
public DBOperator getDBOpeator()
- Get the DBOperator instance in the DBOperatorFITSHeads
- Returns:
- DBOperator instance
createTables
public static void createTables()
- While not FITSHeadType & FITSHeads table exists in database, call this
method to create them.
This method should be called in FITSHeads's constructor.
insertHeadItem
public int insertHeadItem(java.lang.String fileID,
java.lang.String hduID,
java.lang.String itemIndex,
java.lang.String key,
java.lang.String value,
java.lang.String comment,
boolean isGetID)
- Insert a item of FITS head into FITSHeads table.
- Parameters:
fileID
- the id of file which this item belongs to.hduID
- the hdu index of hdu which this item belongs to.itemIndex
- the item index of this item, in its hdu unit.key
- keyword of the item.value
- value of the item.comment
- comment of the item.isGetID
- is get the item's id?
- Returns:
- if isGetID==true,return item's id, else reutrn -1