public static CommerceOrderItem findByCPInstanceId_Last(long CPInstanceId,
		OrderByComparator<CommerceOrderItem> orderByComparator)
		throws com.liferay.commerce.exception.NoSuchOrderItemException {
		return getPersistence()
				   .findByCPInstanceId_Last(CPInstanceId, orderByComparator);
	}
public static CommerceOrderItem findByCPInstanceId_Last ( long CPInstanceId , OrderByComparator < CommerceOrderItem > orderByComparator ) throws com . liferay . commerce . exception . NoSuchOrderItemException { return getPersistence ( ) . findByCPInstanceId_Last ( CPInstanceId , orderByComparator ) ; }
Returns the last commerce order item in the ordered set where CPInstanceId = &#63;.

@param CPInstanceId the cp instance ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce order item
@throws NoSuchOrderItemException if a matching commerce order item could not be found