@Override
	public CommerceWarehouse fetchByG_A_P_First(long groupId, boolean active,
		boolean primary, OrderByComparator<CommerceWarehouse> orderByComparator) {
		List<CommerceWarehouse> list = findByG_A_P(groupId, active, primary, 0,
				1, orderByComparator);

		if (!list.isEmpty()) {
			return list.get(0);
		}

		return null;
	}
@ Override public CommerceWarehouse fetchByG_A_P_First ( long groupId , boolean active , boolean primary , OrderByComparator < CommerceWarehouse > orderByComparator ) { List < CommerceWarehouse > list = findByG_A_P ( groupId , active , primary , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
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, or <code>null</code> if a matching commerce warehouse could not be found