code: @Override
  	public CPRuleAssetCategoryRel[] findByCPRuleId_PrevAndNext(
  		long CPRuleAssetCategoryRelId, long CPRuleId,
  		OrderByComparator<CPRuleAssetCategoryRel> orderByComparator)
  		throws NoSuchCPRuleAssetCategoryRelException {
  		CPRuleAssetCategoryRel cpRuleAssetCategoryRel = findByPrimaryKey(CPRuleAssetCategoryRelId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPRuleAssetCategoryRel[] array = new CPRuleAssetCategoryRelImpl[3];
  
  			array[0] = getByCPRuleId_PrevAndNext(session,
  					cpRuleAssetCategoryRel, CPRuleId, orderByComparator, true);
  
  			array[1] = cpRuleAssetCategoryRel;
  
  			array[2] = getByCPRuleId_PrevAndNext(session,
  					cpRuleAssetCategoryRel, CPRuleId, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp rule asset category rels before and after the current cp rule asset category rel in the ordered set where CPRuleId = &#63;.
  
  @param CPRuleAssetCategoryRelId the primary key of the current cp rule asset category rel
  @param CPRuleId the cp rule ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp rule asset category rel
  @throws NoSuchCPRuleAssetCategoryRelException if a cp rule asset category rel with the primary key could not be found