@Override
	public CPDAvailabilityEstimate findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCPDAvailabilityEstimateException {
		CPDAvailabilityEstimate cpdAvailabilityEstimate = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchCPDAvailabilityEstimateException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return cpdAvailabilityEstimate;
	}
@ Override public CPDAvailabilityEstimate findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCPDAvailabilityEstimateException { CPDAvailabilityEstimate cpdAvailabilityEstimate = fetchByPrimaryKey ( primaryKey ) ; if ( cpdAvailabilityEstimate == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPDAvailabilityEstimateException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpdAvailabilityEstimate ; }
Returns the cpd availability estimate 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 cpd availability estimate
@return the cpd availability estimate
@throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found