@Override
	public CommerceWarehouse findByG_A_P_First(long groupId, boolean active,
		boolean primary, OrderByComparator<CommerceWarehouse> orderByComparator)
		throws NoSuchWarehouseException {
		CommerceWarehouse commerceWarehouse = fetchByG_A_P_First(groupId,
				active, primary, orderByComparator);

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

		StringBundler msg = new StringBundler(8);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

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

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

		msg.append("}");

		throw new NoSuchWarehouseException(msg.toString());
	}
@ Override public CommerceWarehouse findByG_A_P_First ( long groupId , boolean active , boolean primary , OrderByComparator < CommerceWarehouse > orderByComparator ) throws NoSuchWarehouseException { CommerceWarehouse commerceWarehouse = fetchByG_A_P_First ( groupId , active , primary , orderByComparator ) ; if ( commerceWarehouse != null ) { return commerceWarehouse ; } StringBundler msg = new StringBundler ( 8 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( ", active=" ) ; msg . append ( active ) ; msg . append ( ", primary=" ) ; msg . append ( primary ) ; msg . append ( "}" ) ; throw new NoSuchWarehouseException ( msg . toString ( ) ) ; }
Returns the first commerce warehouse in the ordered set where groupId = &#63; and active = &#63; and primary = &#63;.

@param groupId the group ID
@param active the active
@param primary the primary
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching commerce warehouse
@throws NoSuchWarehouseException if a matching commerce warehouse could not be found