@Override
	public CPDefinition findByG_S_First(long groupId, int status,
		OrderByComparator<CPDefinition> orderByComparator)
		throws NoSuchCPDefinitionException {
		CPDefinition cpDefinition = fetchByG_S_First(groupId, status,
				orderByComparator);

		if (cpDefinition != null) {
			return cpDefinition;
		}

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("groupId=");
		msg.append(groupId);

		msg.append(", status=");
		msg.append(status);

		msg.append("}");

		throw new NoSuchCPDefinitionException(msg.toString());
	}
@ Override public CPDefinition findByG_S_First ( long groupId , int status , OrderByComparator < CPDefinition > orderByComparator ) throws NoSuchCPDefinitionException { CPDefinition cpDefinition = fetchByG_S_First ( groupId , status , orderByComparator ) ; if ( cpDefinition != null ) { return cpDefinition ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( ", status=" ) ; msg . append ( status ) ; msg . append ( "}" ) ; throw new NoSuchCPDefinitionException ( msg . toString ( ) ) ; }
Returns the first cp definition in the ordered set where groupId = &#63; and status = &#63;.

@param groupId the group ID
@param status the status
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching cp definition
@throws NoSuchCPDefinitionException if a matching cp definition could not be found