@Test public void testWC6_DeleteWordCount_删除某个词频统计结果() { wordCount.deleteWordCount("词语1"); wordCount.deleteWordCount("词语2"); wordCount.deleteWordCount("词语3"); }
public void deleteWordCount(String word) { try (SqlSession sqlSession = sqlSessionFactory.openSession();) { WordCountDao wordCountDao = sqlSession.getMapper(WordCountDao.class); wordCountDao.deleteWordCount(word); sqlSession.commit(); } }
WordCount { public void deleteWordCount(String word) { try (SqlSession sqlSession = sqlSessionFactory.openSession();) { WordCountDao wordCountDao = sqlSession.getMapper(WordCountDao.class); wordCountDao.deleteWordCount(word); sqlSession.commit(); } } }
WordCount { public void deleteWordCount(String word) { try (SqlSession sqlSession = sqlSessionFactory.openSession();) { WordCountDao wordCountDao = sqlSession.getMapper(WordCountDao.class); wordCountDao.deleteWordCount(word); sqlSession.commit(); } } WordCount(MybatisConfig.ServerEnum server); }
WordCount { public void deleteWordCount(String word) { try (SqlSession sqlSession = sqlSessionFactory.openSession();) { WordCountDao wordCountDao = sqlSession.getMapper(WordCountDao.class); wordCountDao.deleteWordCount(word); sqlSession.commit(); } } WordCount(MybatisConfig.ServerEnum server); void addWordCountByOne(String word); void deleteWordCount(String word); void insertWordCount(String tablename, String word, int count); boolean isWordCountExisted(String word); int selectWordCountByWord(String word); List<WordAndCount> selectWordCountTopN(int N); void updateWordCount(String word, int count); }
WordCount { public void deleteWordCount(String word) { try (SqlSession sqlSession = sqlSessionFactory.openSession();) { WordCountDao wordCountDao = sqlSession.getMapper(WordCountDao.class); wordCountDao.deleteWordCount(word); sqlSession.commit(); } } WordCount(MybatisConfig.ServerEnum server); void addWordCountByOne(String word); void deleteWordCount(String word); void insertWordCount(String tablename, String word, int count); boolean isWordCountExisted(String word); int selectWordCountByWord(String word); List<WordAndCount> selectWordCountTopN(int N); void updateWordCount(String word, int count);  }