public static CommerceShippingMethod[] findByG_A_PrevAndNext(
		long commerceShippingMethodId, long groupId, boolean active,
		OrderByComparator<CommerceShippingMethod> orderByComparator)
		throws com.liferay.commerce.exception.NoSuchShippingMethodException {
		return getPersistence()
				   .findByG_A_PrevAndNext(commerceShippingMethodId, groupId,
			active, orderByComparator);
	}
public static CommerceShippingMethod [ ] findByG_A_PrevAndNext ( long commerceShippingMethodId , long groupId , boolean active , OrderByComparator < CommerceShippingMethod > orderByComparator ) throws com . liferay . commerce . exception . NoSuchShippingMethodException { return getPersistence ( ) . findByG_A_PrevAndNext ( commerceShippingMethodId , groupId , active , orderByComparator ) ; }
Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = &#63; and active = &#63;.

@param commerceShippingMethodId the primary key of the current commerce shipping method
@param groupId the group ID
@param active the active
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the previous, current, and next commerce shipping method
@throws NoSuchShippingMethodException if a commerce shipping method with the primary key could not be found