code: @Override
  	public CPDAvailabilityEstimate[] findByCommerceAvailabilityEstimateId_PrevAndNext(
  		long CPDAvailabilityEstimateId, long commerceAvailabilityEstimateId,
  		OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
  		throws NoSuchCPDAvailabilityEstimateException {
  		CPDAvailabilityEstimate cpdAvailabilityEstimate = findByPrimaryKey(CPDAvailabilityEstimateId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPDAvailabilityEstimate[] array = new CPDAvailabilityEstimateImpl[3];
  
  			array[0] = getByCommerceAvailabilityEstimateId_PrevAndNext(session,
  					cpdAvailabilityEstimate, commerceAvailabilityEstimateId,
  					orderByComparator, true);
  
  			array[1] = cpdAvailabilityEstimate;
  
  			array[2] = getByCommerceAvailabilityEstimateId_PrevAndNext(session,
  					cpdAvailabilityEstimate, commerceAvailabilityEstimateId,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = &#63;.
  
  @param CPDAvailabilityEstimateId the primary key of the current cpd availability estimate
  @param commerceAvailabilityEstimateId the commerce availability estimate ID
  @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