/** * Method delete. * * @param like LikeAlbum * @see es.udc.fi.dc.photoalbum.spring.LikeService#delete(LikeAlbum) */ @Override public void delete(LikeAlbum like) { Likefield l = like.getLike(); likeAlbumDao.delete(like); likeDao.delete(l); }
/** * Method create. * * @param likeAlbum LikeAlbum * @see es.udc.fi.dc.photoalbum.spring.LikeService#create(LikeAlbum) */ @Override public void create(LikeAlbum likeAlbum) { likeDao.create(likeAlbum.getLike()); likeAlbumDao.create(likeAlbum); }
/** * Method updateLikeDislike. * * @param likeId int * @param megusta int * @see es.udc.fi.dc.photoalbum.spring.LikeService#updateLikeDislike(int, int) */ @Override public void updateLikeDislike(int likeId, int megusta) { likeDao.updateLikeDislike(likeId, megusta); }
/** * Method create. * * @param likeFile LikeFile * @see es.udc.fi.dc.photoalbum.spring.LikeService#create(LikeFile) */ @Override public void create(LikeFile likeFile) { likeDao.create(likeFile.getLike()); likeFileDao.create(likeFile); }
/** * Method delete. * * @param like LikeComment * @see es.udc.fi.dc.photoalbum.spring.LikeService#delete(LikeComment) */ @Override public void delete(LikeComment like) { Likefield l = like.getLike(); likeCommentDao.delete(like); likeDao.delete(l); }
/** * Method create. * * @param likeComment LikeComment * @see es.udc.fi.dc.photoalbum.spring.LikeService#create(LikeComment) */ @Override public void create(LikeComment likeComment) { likeDao.create(likeComment.getLike()); likeCommentDao.create(likeComment); }