@Override
	public CommerceShippingFixedOptionRel[] findByCommerceShippingFixedOptionId_PrevAndNext(
		long commerceShippingFixedOptionRelId,
		long commerceShippingFixedOptionId,
		OrderByComparator<CommerceShippingFixedOptionRel> orderByComparator)
		throws NoSuchShippingFixedOptionRelException {
		CommerceShippingFixedOptionRel commerceShippingFixedOptionRel = findByPrimaryKey(commerceShippingFixedOptionRelId);

		Session session = null;

		try {
			session = openSession();

			CommerceShippingFixedOptionRel[] array = new CommerceShippingFixedOptionRelImpl[3];

			array[0] = getByCommerceShippingFixedOptionId_PrevAndNext(session,
					commerceShippingFixedOptionRel,
					commerceShippingFixedOptionId, orderByComparator, true);

			array[1] = commerceShippingFixedOptionRel;

			array[2] = getByCommerceShippingFixedOptionId_PrevAndNext(session,
					commerceShippingFixedOptionRel,
					commerceShippingFixedOptionId, orderByComparator, false);

			return array;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}
@ Override public CommerceShippingFixedOptionRel [ ] findByCommerceShippingFixedOptionId_PrevAndNext ( long commerceShippingFixedOptionRelId , long commerceShippingFixedOptionId , OrderByComparator < CommerceShippingFixedOptionRel > orderByComparator ) throws NoSuchShippingFixedOptionRelException { CommerceShippingFixedOptionRel commerceShippingFixedOptionRel = findByPrimaryKey ( commerceShippingFixedOptionRelId ) ; Session session = null ; try { session = openSession ( ) ; CommerceShippingFixedOptionRel [ ] array = new CommerceShippingFixedOptionRelImpl [ 3 ] ; array [ 0 ] = getByCommerceShippingFixedOptionId_PrevAndNext ( session , commerceShippingFixedOptionRel , commerceShippingFixedOptionId , orderByComparator , true ) ; array [ 1 ] = commerceShippingFixedOptionRel ; array [ 2 ] = getByCommerceShippingFixedOptionId_PrevAndNext ( session , commerceShippingFixedOptionRel , commerceShippingFixedOptionId , orderByComparator , false ) ; return array ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Returns the commerce shipping fixed option rels before and after the current commerce shipping fixed option rel in the ordered set where commerceShippingFixedOptionId = &#63;.

@param commerceShippingFixedOptionRelId the primary key of the current commerce shipping fixed option rel
@param commerceShippingFixedOptionId the commerce shipping fixed option ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the previous, current, and next commerce shipping fixed option rel
@throws NoSuchShippingFixedOptionRelException if a commerce shipping fixed option rel with the primary key could not be found