@Override
	public CommercePriceList[] findByCompanyId_PrevAndNext(
		long commercePriceListId, long companyId,
		OrderByComparator<CommercePriceList> orderByComparator)
		throws NoSuchPriceListException {
		CommercePriceList commercePriceList = findByPrimaryKey(commercePriceListId);

		Session session = null;

		try {
			session = openSession();

			CommercePriceList[] array = new CommercePriceListImpl[3];

			array[0] = getByCompanyId_PrevAndNext(session, commercePriceList,
					companyId, orderByComparator, true);

			array[1] = commercePriceList;

			array[2] = getByCompanyId_PrevAndNext(session, commercePriceList,
					companyId, orderByComparator, false);

			return array;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}
@ Override public CommercePriceList [ ] findByCompanyId_PrevAndNext ( long commercePriceListId , long companyId , OrderByComparator < CommercePriceList > orderByComparator ) throws NoSuchPriceListException { CommercePriceList commercePriceList = findByPrimaryKey ( commercePriceListId ) ; Session session = null ; try { session = openSession ( ) ; CommercePriceList [ ] array = new CommercePriceListImpl [ 3 ] ; array [ 0 ] = getByCompanyId_PrevAndNext ( session , commercePriceList , companyId , orderByComparator , true ) ; array [ 1 ] = commercePriceList ; array [ 2 ] = getByCompanyId_PrevAndNext ( session , commercePriceList , companyId , orderByComparator , false ) ; return array ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Returns the commerce price lists before and after the current commerce price list in the ordered set where companyId = &#63;.

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