|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.metacat.harvesterClient.Harvester
Harvester is the main class for the Harvester application. The main method creates a single Harvester object which drives the application.
Field Summary | |
static java.lang.String |
filler
|
static java.lang.String |
marker
|
static edu.ucsb.nceas.utilities.Options |
options
|
Constructor Summary | |
Harvester()
Constructor. |
Method Summary | |
void |
closeConnection()
|
java.lang.String |
dequoteText(java.lang.String text)
Normalizes text prior to insertion into the HARVEST_LOG or HARVEST_DETAIL_LOG tables. |
java.sql.Connection |
getConnection()
Returns a connection to the database. |
int |
getDetailLogID()
Gets the current value of the detailLogID for storage as a primary key in the DETAIL_LOG_ID field of the HARVEST_DETAIL_LOG table. |
int |
getHarvestLogID()
Gets the current value of the harvestLogID for storage as a primary key in the HARVEST_LOG_ID field of the HARVEST_LOG table. |
void |
initLogIDs()
Initializes the detailLogID and harvestLogID values to their current maximums + 1. |
static void |
loadOptions(boolean test)
Loads Harvester options from a configuration file. |
static void |
main(java.lang.String[] args)
Harvester main method. |
void |
setHarvestStartTime(java.util.Date date)
Sets the harvest start time for this harvest run. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String filler
public static final java.lang.String marker
public static edu.ucsb.nceas.utilities.Options options
Constructor Detail |
public Harvester()
Method Detail |
public static void loadOptions(boolean test)
public static void main(java.lang.String[] args)
args
- the command line arguments
SAXException
java.io.IOException
ParserConfigurationException
public void closeConnection()
public java.lang.String dequoteText(java.lang.String text)
text
- the original string
public java.sql.Connection getConnection()
public int getDetailLogID()
public int getHarvestLogID()
public void initLogIDs()
public void setHarvestStartTime(java.util.Date date)
date
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |