/**
  * Deletes the link from the database. Also notifies the appropriate model listeners.
  *
  * @param link the link
  * @return the link that was removed
  * @throws SystemException if a system exception occurred
  */
 @Indexable(type = IndexableType.DELETE)
 public Link deleteLink(Link link) throws SystemException {
   return linkPersistence.remove(link);
 }
 /**
  * Deletes the link with the primary key from the database. Also notifies the appropriate model
  * listeners.
  *
  * @param linkId the primary key of the link
  * @return the link that was removed
  * @throws PortalException if a link with the primary key could not be found
  * @throws SystemException if a system exception occurred
  */
 @Indexable(type = IndexableType.DELETE)
 public Link deleteLink(long linkId) throws PortalException, SystemException {
   return linkPersistence.remove(linkId);
 }