@Override
	public CPFriendlyURLEntry findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCPFriendlyURLEntryException {
		CPFriendlyURLEntry cpFriendlyURLEntry = fetchByPrimaryKey(primaryKey);

		if (cpFriendlyURLEntry == null) {
			if (_log.isDebugEnabled()) {
				_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
			}

			throw new NoSuchCPFriendlyURLEntryException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return cpFriendlyURLEntry;
	}
@ Override public CPFriendlyURLEntry findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCPFriendlyURLEntryException { CPFriendlyURLEntry cpFriendlyURLEntry = fetchByPrimaryKey ( primaryKey ) ; if ( cpFriendlyURLEntry == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPFriendlyURLEntryException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpFriendlyURLEntry ; }
Returns the cp friendly url entry with the primary key or throws a {@link com.liferay.portal.kernel.exception.NoSuchModelException} if it could not be found.

@param primaryKey the primary key of the cp friendly url entry
@return the cp friendly url entry
@throws NoSuchCPFriendlyURLEntryException if a cp friendly url entry with the primary key could not be found