DeleteCheckDao extends BaseDao { public boolean isServerGroupIdInAppGroup(Long serverGroupId) throws SQLException { return isIdInTable("app_group", "server_group_id", serverGroupId); }  boolean isDbsetIdInTaskSQL(Long dbsetId); boolean isProjectAndDbsetIdInTaskSQL(Long projectId, Long dbsetId); boolean isDbsetIdInTaskSQL(Long projectId, Set<Long> dbsetIds); boolean isDbsetIdInTaskSQL(Set<Long> dbsetIds); boolean isDbsetIdInTaskTable(Long dbsetId); boolean isDbsetIdInTaskTable(Long projectId, Long dbsetId); boolean isDbsetIdInTaskTable(Long projectId, Set<Long> dbsetIds); boolean isDbsetIdInTaskTable(Set<Long> dbsetIds); boolean isDbsetIdInProjectDbsetRelation(Long dbsetId); boolean isDbsetIdInDatabasesetentry(Long dbsetId); boolean isServerGroupIdInAppGroup(Long serverGroupId); boolean isServerGroupIdInServer(Long serverGroupId); boolean isDbsetEntryIdInProject(Long dbId); boolean isDbsetIdInProject(Long appGroupId); boolean isProjectIdInProjectDbsetRelatio(Long projectId); boolean isProjectIdInTaskTable(Long projectId); boolean isProjectIdInTaskSQL(Long projectId);  }
@Test public void isServerGroupIdInAppGroup() throws Exception { boolean b = deleteCheckDao.isServerGroupIdInAppGroup(1L); System.out.println("isServerGroupIdInAppGroup :-------> " + b); Assert.assertTrue(b); }