コード例 #1
0
 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
     throws PortalException, SystemException {
   return linkPersistence.findByPrimaryKey(primaryKeyObj);
 }
コード例 #2
0
 /**
  * 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);
 }