@Override
	public CPDefinitionLink fetchByCP_T_Last(long CProductId, String type,
		OrderByComparator<CPDefinitionLink> orderByComparator) {
		int count = countByCP_T(CProductId, type);

		if (count == 0) {
			return null;
		}

		List<CPDefinitionLink> list = findByCP_T(CProductId, type, count - 1,
				count, orderByComparator);

		if (!list.isEmpty()) {
			return list.get(0);
		}

		return null;
	}
@ Override public CPDefinitionLink fetchByCP_T_Last ( long CProductId , String type , OrderByComparator < CPDefinitionLink > orderByComparator ) { int count = countByCP_T ( CProductId , type ) ; if ( count == 0 ) { return null ; } List < CPDefinitionLink > list = findByCP_T ( CProductId , type , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the last cp definition link in the ordered set where CProductId = &#63; and type = &#63;.

@param CProductId the c product ID
@param type the type
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching cp definition link, or <code>null</code> if a matching cp definition link could not be found