| | |
| | | @Resource |
| | | private CategoryVideoDao categoryVideoDao; |
| | | |
| | | public PushService getPushService() { |
| | | return pushService; |
| | | } |
| | | |
| | | public void setPushService(PushService pushService) { |
| | | this.pushService = pushService; |
| | | } |
| | | |
| | | public StatisticsService getStatisticsService() { |
| | | return statisticsService; |
| | | } |
| | | |
| | | public void setStatisticsService(StatisticsService statisticsService) { |
| | | this.statisticsService = statisticsService; |
| | | } |
| | | |
| | | public SoHuVideoDao getSoHuVideoDao() { |
| | | return soHuVideoDao; |
| | | } |
| | | |
| | | public void setSoHuVideoDao(SoHuVideoDao soHuVideoDao) { |
| | | this.soHuVideoDao = soHuVideoDao; |
| | | } |
| | | |
| | | public SoHuAlbumDao getSoHuAlbumDao() { |
| | | return soHuAlbumDao; |
| | | } |
| | | |
| | | public void setSoHuAlbumDao(SoHuAlbumDao soHuAlbumDao) { |
| | | this.soHuAlbumDao = soHuAlbumDao; |
| | | } |
| | | |
| | | @SuppressWarnings("unchecked") |
| | | public String addAlbum(final SoHuAlbum album) { |
| | | // 对VideoList去重 |
| | |
| | | session.getTransaction().commit(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | if (session.getTransaction().isActive()) |
| | | session.getTransaction().rollback(); |
| | | } |
| | | return vid; |