code: @Override
  	public CommerceAddressRestriction[] findByC_C_PrevAndNext(
  		long commerceAddressRestrictionId, long classNameId, long classPK,
  		OrderByComparator<CommerceAddressRestriction> orderByComparator)
  		throws NoSuchAddressRestrictionException {
  		CommerceAddressRestriction commerceAddressRestriction = findByPrimaryKey(commerceAddressRestrictionId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceAddressRestriction[] array = new CommerceAddressRestrictionImpl[3];
  
  			array[0] = getByC_C_PrevAndNext(session,
  					commerceAddressRestriction, classNameId, classPK,
  					orderByComparator, true);
  
  			array[1] = commerceAddressRestriction;
  
  			array[2] = getByC_C_PrevAndNext(session,
  					commerceAddressRestriction, classNameId, classPK,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where classNameId = &#63; and classPK = &#63;.
  
  @param commerceAddressRestrictionId the primary key of the current commerce address restriction
  @param classNameId the class name ID
  @param classPK the class pk
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce address restriction
  @throws NoSuchAddressRestrictionException if a commerce address restriction with the primary key could not be found