@Test public void deleteDatabaseSetTest() throws SQLException { Assert.assertTrue(databaseSetService.deleteDatabaseSet(1L)); }
public boolean deleteDatabaseSet(Long dbsetId) throws SQLException { boolean isSussess = deleteCheckDao.getDasClient().execute(() -> { int ret1 = databaseSetDao.deleteDatabaseSetEntryByDbsetId(dbsetId); int ret2 = databaseSetDao.deleteDatabaseSetById(dbsetId); if (ret1 < 0 || ret2 < 0) { return false; } return true; }); return isSussess; }
DatabaseSetService { public boolean deleteDatabaseSet(Long dbsetId) throws SQLException { boolean isSussess = deleteCheckDao.getDasClient().execute(() -> { int ret1 = databaseSetDao.deleteDatabaseSetEntryByDbsetId(dbsetId); int ret2 = databaseSetDao.deleteDatabaseSetById(dbsetId); if (ret1 < 0 || ret2 < 0) { return false; } return true; }); return isSussess; } }
DatabaseSetService { public boolean deleteDatabaseSet(Long dbsetId) throws SQLException { boolean isSussess = deleteCheckDao.getDasClient().execute(() -> { int ret1 = databaseSetDao.deleteDatabaseSetEntryByDbsetId(dbsetId); int ret2 = databaseSetDao.deleteDatabaseSetById(dbsetId); if (ret1 < 0 || ret2 < 0) { return false; } return true; }); return isSussess; }  }
DatabaseSetService { public boolean deleteDatabaseSet(Long dbsetId) throws SQLException { boolean isSussess = deleteCheckDao.getDasClient().execute(() -> { int ret1 = databaseSetDao.deleteDatabaseSetEntryByDbsetId(dbsetId); int ret2 = databaseSetDao.deleteDatabaseSetById(dbsetId); if (ret1 < 0 || ret2 < 0) { return false; } return true; }); return isSussess; }  ValidatorChain validatePermision(LoginUser user, Errors errors); boolean insertDatabaseSet(DatabaseSet dbset); int updateDatabaseSet(DatabaseSet dbset); ServiceResult deleteCheck(Long dbsetId); boolean deleteDatabaseSet(Long dbsetId); ListResult<DatabaseSetView> findDbSetPageList(Paging<DatabaseSet> paging); List<DatabaseSet> getAllDatabaseSetByProjectId(Long projectId); List<DatabaseSet> getAllDatabaseSetByAppId(String appId); ListResult<DatabaseSetView> findDbSetPageListByAppid(Paging<DatabaseSet> paging); ServiceResult<String> addDataCenter(LoginUser user, DatabaseSet dbset); ServiceResult<String> updateDataCenter(LoginUser user, DatabaseSet newDbset); ServiceResult<String> deleteDataCenter(LoginUser user, DatabaseSet dbset); ServiceResult<String> syncDbSet(LoginUser user, DatabaseSet dbset); ConfigCkeckResult<List<ConfigDataResponse>> getCheckData(LoginUser user, DatabaseSet dbset); ServiceResult<String> getDbSetButton(LoginUser user); List<ConfigDataResponse> getAllCheckData(LoginUser user, Long gourpId, DatabaseSet dbset); }
DatabaseSetService { public boolean deleteDatabaseSet(Long dbsetId) throws SQLException { boolean isSussess = deleteCheckDao.getDasClient().execute(() -> { int ret1 = databaseSetDao.deleteDatabaseSetEntryByDbsetId(dbsetId); int ret2 = databaseSetDao.deleteDatabaseSetById(dbsetId); if (ret1 < 0 || ret2 < 0) { return false; } return true; }); return isSussess; }  ValidatorChain validatePermision(LoginUser user, Errors errors); boolean insertDatabaseSet(DatabaseSet dbset); int updateDatabaseSet(DatabaseSet dbset); ServiceResult deleteCheck(Long dbsetId); boolean deleteDatabaseSet(Long dbsetId); ListResult<DatabaseSetView> findDbSetPageList(Paging<DatabaseSet> paging); List<DatabaseSet> getAllDatabaseSetByProjectId(Long projectId); List<DatabaseSet> getAllDatabaseSetByAppId(String appId); ListResult<DatabaseSetView> findDbSetPageListByAppid(Paging<DatabaseSet> paging); ServiceResult<String> addDataCenter(LoginUser user, DatabaseSet dbset); ServiceResult<String> updateDataCenter(LoginUser user, DatabaseSet newDbset); ServiceResult<String> deleteDataCenter(LoginUser user, DatabaseSet dbset); ServiceResult<String> syncDbSet(LoginUser user, DatabaseSet dbset); ConfigCkeckResult<List<ConfigDataResponse>> getCheckData(LoginUser user, DatabaseSet dbset); ServiceResult<String> getDbSetButton(LoginUser user); List<ConfigDataResponse> getAllCheckData(LoginUser user, Long gourpId, DatabaseSet dbset);  }