@Override
	public CPDefinitionSpecificationOptionValue findByC_CSO_Last(
		long CPDefinitionId, long CPSpecificationOptionId,
		OrderByComparator<CPDefinitionSpecificationOptionValue> orderByComparator)
		throws NoSuchCPDefinitionSpecificationOptionValueException {
		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue =
			fetchByC_CSO_Last(CPDefinitionId, CPSpecificationOptionId,
				orderByComparator);

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

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append(", CPSpecificationOptionId=");
		msg.append(CPSpecificationOptionId);

		msg.append("}");

		throw new NoSuchCPDefinitionSpecificationOptionValueException(msg.toString());
	}
@ Override public CPDefinitionSpecificationOptionValue findByC_CSO_Last ( long CPDefinitionId , long CPSpecificationOptionId , OrderByComparator < CPDefinitionSpecificationOptionValue > orderByComparator ) throws NoSuchCPDefinitionSpecificationOptionValueException { CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue = fetchByC_CSO_Last ( CPDefinitionId , CPSpecificationOptionId , orderByComparator ) ; if ( cpDefinitionSpecificationOptionValue != null ) { return cpDefinitionSpecificationOptionValue ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPDefinitionId=" ) ; msg . append ( CPDefinitionId ) ; msg . append ( ", CPSpecificationOptionId=" ) ; msg . append ( CPSpecificationOptionId ) ; msg . append ( "}" ) ; throw new NoSuchCPDefinitionSpecificationOptionValueException ( msg . toString ( ) ) ; }
Returns the last cp definition specification option value in the ordered set where CPDefinitionId = &#63; and CPSpecificationOptionId = &#63;.

@param CPDefinitionId the cp definition ID
@param CPSpecificationOptionId the cp specification option ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching cp definition specification option value
@throws NoSuchCPDefinitionSpecificationOptionValueException if a matching cp definition specification option value could not be found