@Override
	public CPMeasurementUnit findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCPMeasurementUnitException {
		CPMeasurementUnit cpMeasurementUnit = fetchByPrimaryKey(primaryKey);

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

			throw new NoSuchCPMeasurementUnitException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return cpMeasurementUnit;
	}
@ Override public CPMeasurementUnit findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCPMeasurementUnitException { CPMeasurementUnit cpMeasurementUnit = fetchByPrimaryKey ( primaryKey ) ; if ( cpMeasurementUnit == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPMeasurementUnitException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpMeasurementUnit ; }
Returns the cp measurement unit 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 measurement unit
@return the cp measurement unit
@throws NoSuchCPMeasurementUnitException if a cp measurement unit with the primary key could not be found