@Override
	public CommerceAvailabilityEstimate findByGroupId_First(long groupId,
		OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
		throws NoSuchAvailabilityEstimateException {
		CommerceAvailabilityEstimate commerceAvailabilityEstimate = fetchByGroupId_First(groupId,
				orderByComparator);

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

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append("}");

		throw new NoSuchAvailabilityEstimateException(msg.toString());
	}
@ Override public CommerceAvailabilityEstimate findByGroupId_First ( long groupId , OrderByComparator < CommerceAvailabilityEstimate > orderByComparator ) throws NoSuchAvailabilityEstimateException { CommerceAvailabilityEstimate commerceAvailabilityEstimate = fetchByGroupId_First ( groupId , orderByComparator ) ; if ( commerceAvailabilityEstimate != null ) { return commerceAvailabilityEstimate ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( "}" ) ; throw new NoSuchAvailabilityEstimateException ( msg . toString ( ) ) ; }
Returns the first commerce availability estimate in the ordered set where groupId = &#63;.

@param groupId the group ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching commerce availability estimate
@throws NoSuchAvailabilityEstimateException if a matching commerce availability estimate could not be found