Search in sources :

Example 1 with Forbidden

use of com.dtstack.taier.common.annotation.Forbidden in project Taier by DTStack.

the class BatchSqlExeService method executeSql.

/**
 * 执行SQL
 */
@Forbidden
public ExecuteResultVO executeSql(final ExecuteContent executeContent) throws Exception {
    final ExecuteResultVO result = new ExecuteResultVO();
    this.prepareExecuteContent(executeContent);
    // 前置操作
    result.setSqlText(executeContent.getSql());
    final ISqlExeService sqlExeService = this.multiEngineServiceFactory.getSqlExeService(executeContent.getTaskType());
    final ExecuteResultVO engineExecuteResult = sqlExeService.executeSql(executeContent);
    if (!engineExecuteResult.getContinue()) {
        return engineExecuteResult;
    }
    PublicUtil.copyPropertiesIgnoreNull(engineExecuteResult, result);
    return result;
}
Also used : ExecuteResultVO(com.dtstack.taier.develop.dto.devlop.ExecuteResultVO) ISqlExeService(com.dtstack.taier.develop.service.develop.ISqlExeService) Forbidden(com.dtstack.taier.common.annotation.Forbidden)

Example 2 with Forbidden

use of com.dtstack.taier.common.annotation.Forbidden in project Taier by DTStack.

the class BatchSysParamService method loadSystemParam.

@Forbidden
public void loadSystemParam() {
    cache = Maps.newHashMap();
    List<BatchSysParameter> sysParamList = developSysParamDao.listAll();
    for (BatchSysParameter tmp : sysParamList) {
        cache.put(tmp.getParamName(), tmp);
    }
}
Also used : BatchSysParameter(com.dtstack.taier.dao.domain.BatchSysParameter) Forbidden(com.dtstack.taier.common.annotation.Forbidden)

Aggregations

Forbidden (com.dtstack.taier.common.annotation.Forbidden)2 BatchSysParameter (com.dtstack.taier.dao.domain.BatchSysParameter)1 ExecuteResultVO (com.dtstack.taier.develop.dto.devlop.ExecuteResultVO)1 ISqlExeService (com.dtstack.taier.develop.service.develop.ISqlExeService)1