@Override
	public CommerceTierPriceEntry[] findByCompanyId_PrevAndNext(
		long commerceTierPriceEntryId, long companyId,
		OrderByComparator<CommerceTierPriceEntry> orderByComparator)
		throws NoSuchTierPriceEntryException {
		CommerceTierPriceEntry commerceTierPriceEntry = findByPrimaryKey(commerceTierPriceEntryId);

		Session session = null;

		try {
			session = openSession();

			CommerceTierPriceEntry[] array = new CommerceTierPriceEntryImpl[3];

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

			array[1] = commerceTierPriceEntry;

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

			return array;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}
@ Override public CommerceTierPriceEntry [ ] findByCompanyId_PrevAndNext ( long commerceTierPriceEntryId , long companyId , OrderByComparator < CommerceTierPriceEntry > orderByComparator ) throws NoSuchTierPriceEntryException { CommerceTierPriceEntry commerceTierPriceEntry = findByPrimaryKey ( commerceTierPriceEntryId ) ; Session session = null ; try { session = openSession ( ) ; CommerceTierPriceEntry [ ] array = new CommerceTierPriceEntryImpl [ 3 ] ; array [ 0 ] = getByCompanyId_PrevAndNext ( session , commerceTierPriceEntry , companyId , orderByComparator , true ) ; array [ 1 ] = commerceTierPriceEntry ; array [ 2 ] = getByCompanyId_PrevAndNext ( session , commerceTierPriceEntry , companyId , orderByComparator , false ) ; return array ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Returns the commerce tier price entries before and after the current commerce tier price entry in the ordered set where companyId = &#63;.

@param commerceTierPriceEntryId the primary key of the current commerce tier price entry
@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 tier price entry
@throws NoSuchTierPriceEntryException if a commerce tier price entry with the primary key could not be found