@Test public void isNotExistByNameTest() throws SQLException { ProjectDbsetRelation projectDbsetRelation = ProjectDbsetRelation.builder().dbsetId(1L).build(); Assert.assertTrue(projectDbsetRelationService.isNotExistByName(projectDbsetRelation)); }
public boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation) throws SQLException { Long n = projectDbsetRelationDao.getCountByRelation(projectDbsetRelation.getDbsetId(), projectDbsetRelation.getProjectId()); if (n == 0) { return true; } return false; }
ProjectDbsetRelationService { public boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation) throws SQLException { Long n = projectDbsetRelationDao.getCountByRelation(projectDbsetRelation.getDbsetId(), projectDbsetRelation.getProjectId()); if (n == 0) { return true; } return false; } }
ProjectDbsetRelationService { public boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation) throws SQLException { Long n = projectDbsetRelationDao.getCountByRelation(projectDbsetRelation.getDbsetId(), projectDbsetRelation.getProjectId()); if (n == 0) { return true; } return false; }  }
ProjectDbsetRelationService { public boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation) throws SQLException { Long n = projectDbsetRelationDao.getCountByRelation(projectDbsetRelation.getDbsetId(), projectDbsetRelation.getProjectId()); if (n == 0) { return true; } return false; }  ValidatorChain validatePermision(LoginUser user, ProjectDbsetRelation projectDbsetRelation, Errors errors); boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation); }
ProjectDbsetRelationService { public boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation) throws SQLException { Long n = projectDbsetRelationDao.getCountByRelation(projectDbsetRelation.getDbsetId(), projectDbsetRelation.getProjectId()); if (n == 0) { return true; } return false; }  ValidatorChain validatePermision(LoginUser user, ProjectDbsetRelation projectDbsetRelation, Errors errors); boolean isNotExistByName(ProjectDbsetRelation projectDbsetRelation);  }