@Override
	public CPDAvailabilityEstimate[] findByUuid_PrevAndNext(
		long CPDAvailabilityEstimateId, String uuid,
		OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
		throws NoSuchCPDAvailabilityEstimateException {
		CPDAvailabilityEstimate cpdAvailabilityEstimate = findByPrimaryKey(CPDAvailabilityEstimateId);

		Session session = null;

		try {
			session = openSession();

			CPDAvailabilityEstimate[] array = new CPDAvailabilityEstimateImpl[3];

			array[0] = getByUuid_PrevAndNext(session, cpdAvailabilityEstimate,
					uuid, orderByComparator, true);

			array[1] = cpdAvailabilityEstimate;

			array[2] = getByUuid_PrevAndNext(session, cpdAvailabilityEstimate,
					uuid, orderByComparator, false);

			return array;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}
@ Override public CPDAvailabilityEstimate [ ] findByUuid_PrevAndNext ( long CPDAvailabilityEstimateId , String uuid , OrderByComparator < CPDAvailabilityEstimate > orderByComparator ) throws NoSuchCPDAvailabilityEstimateException { CPDAvailabilityEstimate cpdAvailabilityEstimate = findByPrimaryKey ( CPDAvailabilityEstimateId ) ; Session session = null ; try { session = openSession ( ) ; CPDAvailabilityEstimate [ ] array = new CPDAvailabilityEstimateImpl [ 3 ] ; array [ 0 ] = getByUuid_PrevAndNext ( session , cpdAvailabilityEstimate , uuid , orderByComparator , true ) ; array [ 1 ] = cpdAvailabilityEstimate ; array [ 2 ] = getByUuid_PrevAndNext ( session , cpdAvailabilityEstimate , uuid , orderByComparator , false ) ; return array ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where uuid = &#63;.

@param CPDAvailabilityEstimateId the primary key of the current cpd availability estimate
@param uuid the uuid
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the previous, current, and next cpd availability estimate
@throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found