@Override
	public CommercePriceListAccountRel[] findByCommercePriceListId_PrevAndNext(
		long commercePriceListAccountRelId, long commercePriceListId,
		OrderByComparator<CommercePriceListAccountRel> orderByComparator)
		throws NoSuchPriceListAccountRelException {
		CommercePriceListAccountRel commercePriceListAccountRel = findByPrimaryKey(commercePriceListAccountRelId);

		Session session = null;

		try {
			session = openSession();

			CommercePriceListAccountRel[] array = new CommercePriceListAccountRelImpl[3];

			array[0] = getByCommercePriceListId_PrevAndNext(session,
					commercePriceListAccountRel, commercePriceListId,
					orderByComparator, true);

			array[1] = commercePriceListAccountRel;

			array[2] = getByCommercePriceListId_PrevAndNext(session,
					commercePriceListAccountRel, commercePriceListId,
					orderByComparator, false);

			return array;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}
@ Override public CommercePriceListAccountRel [ ] findByCommercePriceListId_PrevAndNext ( long commercePriceListAccountRelId , long commercePriceListId , OrderByComparator < CommercePriceListAccountRel > orderByComparator ) throws NoSuchPriceListAccountRelException { CommercePriceListAccountRel commercePriceListAccountRel = findByPrimaryKey ( commercePriceListAccountRelId ) ; Session session = null ; try { session = openSession ( ) ; CommercePriceListAccountRel [ ] array = new CommercePriceListAccountRelImpl [ 3 ] ; array [ 0 ] = getByCommercePriceListId_PrevAndNext ( session , commercePriceListAccountRel , commercePriceListId , orderByComparator , true ) ; array [ 1 ] = commercePriceListAccountRel ; array [ 2 ] = getByCommercePriceListId_PrevAndNext ( session , commercePriceListAccountRel , commercePriceListId , orderByComparator , false ) ; return array ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Returns the commerce price list account rels before and after the current commerce price list account rel in the ordered set where commercePriceListId = &#63;.

@param commercePriceListAccountRelId the primary key of the current commerce price list account rel
@param commercePriceListId the commerce price list ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the previous, current, and next commerce price list account rel
@throws NoSuchPriceListAccountRelException if a commerce price list account rel with the primary key could not be found