Search in sources :

Example 1 with QueryLogList

use of com.cubrid.cubridmanager.core.cubrid.jobauto.model.QueryLogList in project cubrid-manager by CUBRID.

the class QueryLogDialog method loadData.

/**
	 * load the data
	 *
	 * @return boolean
	 */
public boolean loadData() {
    CommonQueryTask<QueryLogList> task = new CommonQueryTask<QueryLogList>(server.getServerInfo(), CommonSendMsg.getCommonSimpleSendMsg(), new QueryLogList());
    TaskExecutor taskExecutor = new CommonTaskExec(Messages.loadQueryLogTaskName);
    taskExecutor.addTask(task);
    new ExecTaskWithProgress(taskExecutor).exec();
    if (!taskExecutor.isSuccess()) {
        return false;
    }
    queryLogList = task.getResultModel();
    return true;
}
Also used : CommonTaskExec(com.cubrid.common.ui.spi.progress.CommonTaskExec) TaskExecutor(com.cubrid.common.ui.spi.progress.TaskExecutor) QueryLogList(com.cubrid.cubridmanager.core.cubrid.jobauto.model.QueryLogList) ExecTaskWithProgress(com.cubrid.common.ui.spi.progress.ExecTaskWithProgress) CommonQueryTask(com.cubrid.cubridmanager.core.common.task.CommonQueryTask)

Aggregations

CommonTaskExec (com.cubrid.common.ui.spi.progress.CommonTaskExec)1 ExecTaskWithProgress (com.cubrid.common.ui.spi.progress.ExecTaskWithProgress)1 TaskExecutor (com.cubrid.common.ui.spi.progress.TaskExecutor)1 CommonQueryTask (com.cubrid.cubridmanager.core.common.task.CommonQueryTask)1 QueryLogList (com.cubrid.cubridmanager.core.cubrid.jobauto.model.QueryLogList)1