@Override
	public CPDefinitionGroupedEntry[] findByUuid_PrevAndNext(
		long CPDefinitionGroupedEntryId, String uuid,
		OrderByComparator<CPDefinitionGroupedEntry> orderByComparator)
		throws NoSuchCPDefinitionGroupedEntryException {
		CPDefinitionGroupedEntry cpDefinitionGroupedEntry = findByPrimaryKey(CPDefinitionGroupedEntryId);

		Session session = null;

		try {
			session = openSession();

			CPDefinitionGroupedEntry[] array = new CPDefinitionGroupedEntryImpl[3];

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

			array[1] = cpDefinitionGroupedEntry;

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

			return array;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}
@ Override public CPDefinitionGroupedEntry [ ] findByUuid_PrevAndNext ( long CPDefinitionGroupedEntryId , String uuid , OrderByComparator < CPDefinitionGroupedEntry > orderByComparator ) throws NoSuchCPDefinitionGroupedEntryException { CPDefinitionGroupedEntry cpDefinitionGroupedEntry = findByPrimaryKey ( CPDefinitionGroupedEntryId ) ; Session session = null ; try { session = openSession ( ) ; CPDefinitionGroupedEntry [ ] array = new CPDefinitionGroupedEntryImpl [ 3 ] ; array [ 0 ] = getByUuid_PrevAndNext ( session , cpDefinitionGroupedEntry , uuid , orderByComparator , true ) ; array [ 1 ] = cpDefinitionGroupedEntry ; array [ 2 ] = getByUuid_PrevAndNext ( session , cpDefinitionGroupedEntry , uuid , orderByComparator , false ) ; return array ; } catch ( Exception e ) { throw processException ( e ) ; } finally { closeSession ( session ) ; } }
Returns the cp definition grouped entries before and after the current cp definition grouped entry in the ordered set where uuid = &#63;.

@param CPDefinitionGroupedEntryId the primary key of the current cp definition grouped entry
@param uuid the uuid
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the previous, current, and next cp definition grouped entry
@throws NoSuchCPDefinitionGroupedEntryException if a cp definition grouped entry with the primary key could not be found