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;
}
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);
}
}
Aggregations