Examples of HjLoadAllRequest


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

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

* @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
Copyright © 2018 www.massapi.com. 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.