|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.sql.BaseDao com.esri.gpt.framework.request.DaoRequest<RequestDefinition<HjCriteria,HjResult>> com.esri.gpt.catalog.harvest.jobs.HjRequest com.esri.gpt.catalog.harvest.jobs.HjCreateRequest
public class HjCreateRequest
Create job request. This request will insert new harvesting job. A job will not be created if any other job already exist for the specific repository or repository doesn't exist.
Constructor Summary | |
---|---|
HjCreateRequest(RequestContext requestContext,
HrRecord parent,
CommonCriteria criteria,
boolean running)
Creates instance of the request. |
Method Summary | |
---|---|
boolean |
execute()
Inserts a new jobs into the database. |
HjRecord.JobStatus |
getJobStatus()
Gets job status. |
void |
setJobStatus(HjRecord.JobStatus jobStatus)
Sets job status. |
Methods inherited from class com.esri.gpt.catalog.harvest.jobs.HjRequest |
---|
getActionCriteria, getActionResult, getHarvestingHistoryTableName, getHarvestingJobsCompletedTableName, getHarvestingJobsPendingTableName, getHarvestingTableName, getQueryCriteria, getQueryResult |
Methods inherited from class com.esri.gpt.framework.request.DaoRequest |
---|
getRequestDefinition, setRequestDefinition |
Methods inherited from class com.esri.gpt.framework.sql.BaseDao |
---|
appendExpression, appendValueFilter, closeResultSet, closeStatement, getApplicationConfiguration, getRequestContext, logExpression, returnConnection, setRequestContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HjCreateRequest(RequestContext requestContext, HrRecord parent, CommonCriteria criteria, boolean running)
requestContext
- request contextparent
- parent harvest siterunning
- true
to make job marked as runningMethod Detail |
---|
public HjRecord.JobStatus getJobStatus()
public final void setJobStatus(HjRecord.JobStatus jobStatus)
jobStatus
- job statuspublic boolean execute()
true
if any record has been inserted
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |