@Override
	public CommerceWarehouse fetchByG_A_C_Last(long groupId, boolean active,
		long commerceCountryId,
		OrderByComparator<CommerceWarehouse> orderByComparator) {
		int count = countByG_A_C(groupId, active, commerceCountryId);

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

		List<CommerceWarehouse> list = findByG_A_C(groupId, active,
				commerceCountryId, count - 1, count, orderByComparator);

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

		return null;
	}
@ Override public CommerceWarehouse fetchByG_A_C_Last ( long groupId , boolean active , long commerceCountryId , OrderByComparator < CommerceWarehouse > orderByComparator ) { int count = countByG_A_C ( groupId , active , commerceCountryId ) ; if ( count == 0 ) { return null ; } List < CommerceWarehouse > list = findByG_A_C ( groupId , active , commerceCountryId , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the last commerce warehouse in the ordered set where groupId = &#63; and active = &#63; and commerceCountryId = &#63;.

@param groupId the group ID
@param active the active
@param commerceCountryId the commerce country ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce warehouse, or <code>null</code> if a matching commerce warehouse could not be found