@Override
	public CPMeasurementUnit findByUuid_First(String uuid,
		OrderByComparator<CPMeasurementUnit> orderByComparator)
		throws NoSuchCPMeasurementUnitException {
		CPMeasurementUnit cpMeasurementUnit = fetchByUuid_First(uuid,
				orderByComparator);

		if (cpMeasurementUnit != null) {
			return cpMeasurementUnit;
		}

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("uuid=");
		msg.append(uuid);

		msg.append("}");

		throw new NoSuchCPMeasurementUnitException(msg.toString());
	}
@ Override public CPMeasurementUnit findByUuid_First ( String uuid , OrderByComparator < CPMeasurementUnit > orderByComparator ) throws NoSuchCPMeasurementUnitException { CPMeasurementUnit cpMeasurementUnit = fetchByUuid_First ( uuid , orderByComparator ) ; if ( cpMeasurementUnit != null ) { return cpMeasurementUnit ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "uuid=" ) ; msg . append ( uuid ) ; msg . append ( "}" ) ; throw new NoSuchCPMeasurementUnitException ( msg . toString ( ) ) ; }
Returns the first cp measurement unit in the ordered set where uuid = &#63;.

@param uuid the uuid
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching cp measurement unit
@throws NoSuchCPMeasurementUnitException if a matching cp measurement unit could not be found