code: @Override
  	public CPDefinitionSpecificationOptionValue[] findByCPSpecificationOptionId_PrevAndNext(
  		long CPDefinitionSpecificationOptionValueId,
  		long CPSpecificationOptionId,
  		OrderByComparator<CPDefinitionSpecificationOptionValue> orderByComparator)
  		throws NoSuchCPDefinitionSpecificationOptionValueException {
  		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue =
  			findByPrimaryKey(CPDefinitionSpecificationOptionValueId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPDefinitionSpecificationOptionValue[] array = new CPDefinitionSpecificationOptionValueImpl[3];
  
  			array[0] = getByCPSpecificationOptionId_PrevAndNext(session,
  					cpDefinitionSpecificationOptionValue,
  					CPSpecificationOptionId, orderByComparator, true);
  
  			array[1] = cpDefinitionSpecificationOptionValue;
  
  			array[2] = getByCPSpecificationOptionId_PrevAndNext(session,
  					cpDefinitionSpecificationOptionValue,
  					CPSpecificationOptionId, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp definition specification option values before and after the current cp definition specification option value in the ordered set where CPSpecificationOptionId = &#63;.
  
  @param CPDefinitionSpecificationOptionValueId the primary key of the current cp definition specification option value
  @param CPSpecificationOptionId the cp specification option ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp definition specification option value
  @throws NoSuchCPDefinitionSpecificationOptionValueException if a cp definition specification option value with the primary key could not be found