Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
 }
Example #5
0
 /**
  * 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);
 }
Example #6
0
 /**
  * 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);
 }