* @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);