Package com.esri.gpt.catalog.harvest.jobs

Examples of com.esri.gpt.catalog.harvest.jobs.HjLoadAllRequest


* @param context request context
* @return all tasks
*/
public Task[] all(RequestContext context) {
  try {
    HjLoadAllRequest request = new HjLoadAllRequest(context);
    request.execute();
    ArrayList<Task> tasks = new ArrayList<Task>();
    for (HjRecord record : request.getQueryResult().getRecords()) {
      tasks.add(new Task(record));
    }
    return tasks.toArray(new Task[tasks.size()]);
  } catch (SQLException ex) {
    LOGGER.log(Level.WARNING, "[SYNCHRONIZER] Error getting all tasks", ex);
View Full Code Here


* @throws SQLException if accessing database fails
*/
private HjRecords selectAll(String[] uuids) throws SQLException {
  RequestContext context = RequestContext.extract(null);
  try {
    HjLoadAllRequest loadAllRequest = new HjLoadAllRequest(context, uuids);
    loadAllRequest.execute();
    return loadAllRequest.getQueryResult().getRecords();
  } finally {
    context.onExecutionPhaseCompleted();
  }
}
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.harvest.jobs.HjLoadAllRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.