class DatabaseService {

    public ServiceResult<String> genDefaultDbsetAndEntry(DataBaseInfo dataBaseInfo) throws SQLException {
        if (dataBaseInfo.isGenDefault()) {
            dataBaseInfo.setDb_password(DasEnv.encdecConfiguration.encrypt(dataBaseInfo.getDb_password()));
            return genDefaultDbsetAndEntry(dataBaseInfo.getDal_group_id(), dataBaseInfo.getId(), dataBaseInfo.getDbname(), dataBaseInfo.getDb_type());
        }
        return ServiceResult.success();
    }

}