All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.schoolwow.quickdao.module.database.dcl.service.FlushPrivilegesFlow Maven / Gradle / Ivy

There is a newer version: 5.3.1
Show newest version
package cn.schoolwow.quickdao.module.database.dcl.service;

import cn.schoolwow.quickdao.module.database.parent.flow.executor.ExecuteUpdateConnectionFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class FlushPrivilegesFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new ExecuteUpdateConnectionFlow())
                .putTemporaryData("name", "刷新数据库权限")
                .putTemporaryData("sql", "flush privileges;")
                .execute();
    }

    @Override
    public String name() {
        return "刷新数据库权限";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy