Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.jobs
Class HjGetNextRequest

java.lang.Object
  extended by com.esri.gpt.framework.sql.BaseDao
      extended by com.esri.gpt.framework.request.DaoRequest<RequestDefinition<HjCriteria,HjResult>>
          extended by com.esri.gpt.catalog.harvest.jobs.HjRequest
              extended by com.esri.gpt.catalog.harvest.jobs.HjGetNextRequest
All Implemented Interfaces:
IRequest<RequestDefinition<HjCriteria,HjResult>>

public class HjGetNextRequest
extends HjRequest

Request to find next job to run. Next job if present, will be placed in query result. Status will be automatically changed to HjRecord.JobStatus.Running. If no more jobs exist, no any record will be placed in HjQueryResult.


Constructor Summary
HjGetNextRequest(RequestContext requestContext)
          Creates instance of the request.
 
Method Summary
 void execute()
          Executes request.
protected  void logExpression(String expression)
          Logs a SQL expression.
 
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, returnConnection, setRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HjGetNextRequest

public HjGetNextRequest(RequestContext requestContext)
Creates instance of the request.

Parameters:
requestContext - request context
Method Detail

execute

public void execute()
             throws SQLException
Executes request.

Throws:
SQLException - if accessing database failed

logExpression

protected void logExpression(String expression)
Description copied from class: BaseDao
Logs a SQL expression.

Overrides:
logExpression in class BaseDao
Parameters:
expression - the expression to log

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.