public PersistedModel getPersistedModel(Serializable primaryKeyObj)
     throws PortalException, SystemException {
   return linkPersistence.findByPrimaryKey(primaryKeyObj);
 }
 /**
  * Returns the link with the primary key.
  *
  * @param linkId the primary key of the link
  * @return the link
  * @throws PortalException if a link with the primary key could not be found
  * @throws SystemException if a system exception occurred
  */
 public Link getLink(long linkId) throws PortalException, SystemException {
   return linkPersistence.findByPrimaryKey(linkId);
 }