/** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package org.liferay.jukebox.service.persistence; import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.ReferenceRegistry; import com.liferay.portal.service.ServiceContext; import org.liferay.jukebox.model.Artist; import java.util.List; /** * The persistence utility for the artist service. This utility wraps {@link ArtistPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Julio Camarero * @see ArtistPersistence * @see ArtistPersistenceImpl * @generated */ public class ArtistUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) */ public static void clearCache(Artist artist) { getPersistence().clearCache(artist); } /** * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<Artist> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<Artist> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<Artist> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) */ public static Artist update(Artist artist) throws SystemException { return getPersistence().update(artist); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) */ public static Artist update(Artist artist, ServiceContext serviceContext) throws SystemException { return getPersistence().update(artist, serviceContext); } /** * Returns all the artists where uuid = ?. * * @param uuid the uuid * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUuid( java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the artists where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUuid( java.lang.String uuid, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid, start, end); } /** * Returns an ordered range of all the artists where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUuid( java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first artist in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last artist in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last artist in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where uuid = ?. * * @param artistId the primary key of the current artist * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByUuid_PrevAndNext( long artistId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByUuid_PrevAndNext(artistId, uuid, orderByComparator); } /** * Removes all the artists where uuid = ? from the database. * * @param uuid the uuid * @throws SystemException if a system exception occurred */ public static void removeByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUuid(uuid); } /** * Returns the number of artists where uuid = ?. * * @param uuid the uuid * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUuid(uuid); } /** * Returns the artist where uuid = ? and groupId = ? or throws a {@link org.liferay.jukebox.NoSuchArtistException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByUUID_G(uuid, groupId); } /** * Returns the artist where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUUID_G(uuid, groupId); } /** * Returns the artist where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to use the finder cache * @return the matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUUID_G( java.lang.String uuid, long groupId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); } /** * Removes the artist where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the artist that was removed * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist removeByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().removeByUUID_G(uuid, groupId); } /** * Returns the number of artists where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByUUID_G(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUUID_G(uuid, groupId); } /** * Returns all the artists where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUuid_C( java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_C(uuid, companyId); } /** * Returns a range of all the artists where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUuid_C( java.lang.String uuid, long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_C(uuid, companyId, start, end); } /** * Returns an ordered range of all the artists where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUuid_C( java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_C(uuid, companyId, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the first artist in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the last artist in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the last artist in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where uuid = ? and companyId = ?. * * @param artistId the primary key of the current artist * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByUuid_C_PrevAndNext( long artistId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByUuid_C_PrevAndNext(artistId, uuid, companyId, orderByComparator); } /** * Removes all the artists where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUuid_C(uuid, companyId); } /** * Returns the number of artists where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns all the artists where groupId = ?. * * @param groupId the group ID * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId); } /** * Returns a range of all the artists where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByGroupId( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId, start, end); } /** * Returns an ordered range of all the artists where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByGroupId(groupId, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByGroupId_First(groupId, orderByComparator); } /** * Returns the first artist in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByGroupId_First(groupId, orderByComparator); } /** * Returns the last artist in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByGroupId_Last(groupId, orderByComparator); } /** * Returns the last artist in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where groupId = ?. * * @param artistId the primary key of the current artist * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByGroupId_PrevAndNext( long artistId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByGroupId_PrevAndNext(artistId, groupId, orderByComparator); } /** * Returns all the artists that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId); } /** * Returns a range of all the artists that the user has permission to view where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByGroupId( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId, start, end); } /** * Returns an ordered range of all the artists that the user has permissions to view where groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByGroupId(groupId, start, end, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set of artists that the user has permission to view where groupId = ?. * * @param artistId the primary key of the current artist * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] filterFindByGroupId_PrevAndNext( long artistId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .filterFindByGroupId_PrevAndNext(artistId, groupId, orderByComparator); } /** * Removes all the artists where groupId = ? from the database. * * @param groupId the group ID * @throws SystemException if a system exception occurred */ public static void removeByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByGroupId(groupId); } /** * Returns the number of artists where groupId = ?. * * @param groupId the group ID * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByGroupId(groupId); } /** * Returns the number of artists that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByGroupId(groupId); } /** * Returns all the artists where userId = ?. * * @param userId the user ID * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUserId( long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUserId(userId); } /** * Returns a range of all the artists where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param userId the user ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUserId( long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUserId(userId, start, end); } /** * Returns an ordered range of all the artists where userId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param userId the user ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUserId(userId, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByUserId_First(userId, orderByComparator); } /** * Returns the first artist in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUserId_First(userId, orderByComparator); } /** * Returns the last artist in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByUserId_Last(userId, orderByComparator); } /** * Returns the last artist in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUserId_Last(userId, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where userId = ?. * * @param artistId the primary key of the current artist * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByUserId_PrevAndNext( long artistId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByUserId_PrevAndNext(artistId, userId, orderByComparator); } /** * Removes all the artists where userId = ? from the database. * * @param userId the user ID * @throws SystemException if a system exception occurred */ public static void removeByUserId(long userId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUserId(userId); } /** * Returns the number of artists where userId = ?. * * @param userId the user ID * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByUserId(long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUserId(userId); } /** * Returns all the artists where companyId = ?. * * @param companyId the company ID * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByCompanyId( long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId); } /** * Returns a range of all the artists where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByCompanyId( long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId, start, end); } /** * Returns an ordered range of all the artists where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId(companyId, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByCompanyId_First(companyId, orderByComparator); } /** * Returns the first artist in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByCompanyId_First(companyId, orderByComparator); } /** * Returns the last artist in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByCompanyId_Last(companyId, orderByComparator); } /** * Returns the last artist in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByCompanyId_Last(companyId, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where companyId = ?. * * @param artistId the primary key of the current artist * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByCompanyId_PrevAndNext( long artistId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByCompanyId_PrevAndNext(artistId, companyId, orderByComparator); } /** * Removes all the artists where companyId = ? from the database. * * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByCompanyId(companyId); } /** * Returns the number of artists where companyId = ?. * * @param companyId the company ID * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByCompanyId(companyId); } /** * Returns all the artists where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByU_G( long userId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByU_G(userId, groupId); } /** * Returns a range of all the artists where userId = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param userId the user ID * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByU_G( long userId, long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByU_G(userId, groupId, start, end); } /** * Returns an ordered range of all the artists where userId = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param userId the user ID * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByU_G( long userId, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByU_G(userId, groupId, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByU_G_First( long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByU_G_First(userId, groupId, orderByComparator); } /** * Returns the first artist in the ordered set where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByU_G_First( long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByU_G_First(userId, groupId, orderByComparator); } /** * Returns the last artist in the ordered set where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByU_G_Last(long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByU_G_Last(userId, groupId, orderByComparator); } /** * Returns the last artist in the ordered set where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByU_G_Last( long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByU_G_Last(userId, groupId, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where userId = ? and groupId = ?. * * @param artistId the primary key of the current artist * @param userId the user ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByU_G_PrevAndNext( long artistId, long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByU_G_PrevAndNext(artistId, userId, groupId, orderByComparator); } /** * Returns all the artists that the user has permission to view where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @return the matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByU_G( long userId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByU_G(userId, groupId); } /** * Returns a range of all the artists that the user has permission to view where userId = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param userId the user ID * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByU_G( long userId, long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByU_G(userId, groupId, start, end); } /** * Returns an ordered range of all the artists that the user has permissions to view where userId = ? and groupId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param userId the user ID * @param groupId the group ID * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByU_G( long userId, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByU_G(userId, groupId, start, end, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set of artists that the user has permission to view where userId = ? and groupId = ?. * * @param artistId the primary key of the current artist * @param userId the user ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] filterFindByU_G_PrevAndNext( long artistId, long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .filterFindByU_G_PrevAndNext(artistId, userId, groupId, orderByComparator); } /** * Removes all the artists where userId = ? and groupId = ? from the database. * * @param userId the user ID * @param groupId the group ID * @throws SystemException if a system exception occurred */ public static void removeByU_G(long userId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByU_G(userId, groupId); } /** * Returns the number of artists where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByU_G(long userId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByU_G(userId, groupId); } /** * Returns the number of artists that the user has permission to view where userId = ? and groupId = ?. * * @param userId the user ID * @param groupId the group ID * @return the number of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByU_G(long userId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByU_G(userId, groupId); } /** * Returns all the artists where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByG_S( long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_S(groupId, status); } /** * Returns a range of all the artists where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByG_S( long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_S(groupId, status, start, end); } /** * Returns an ordered range of all the artists where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByG_S( long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_S(groupId, status, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where groupId = ? and status = ?. * * @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 artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByG_S_First(groupId, status, orderByComparator); } /** * Returns the first artist in the ordered set where groupId = ? and status = ?. * * @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 artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_S_First(groupId, status, orderByComparator); } /** * Returns the last artist in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByG_S_Last( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByG_S_Last(groupId, status, orderByComparator); } /** * Returns the last artist in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByG_S_Last( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_S_Last(groupId, status, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where groupId = ? and status = ?. * * @param artistId the primary key of the current artist * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByG_S_PrevAndNext( long artistId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByG_S_PrevAndNext(artistId, groupId, status, orderByComparator); } /** * Returns all the artists that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByG_S( long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_S(groupId, status); } /** * Returns a range of all the artists that the user has permission to view where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByG_S( long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_S(groupId, status, start, end); } /** * Returns an ordered range of all the artists that the user has permissions to view where groupId = ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByG_S( long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_S(groupId, status, start, end, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set of artists that the user has permission to view where groupId = ? and status = ?. * * @param artistId the primary key of the current artist * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] filterFindByG_S_PrevAndNext( long artistId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .filterFindByG_S_PrevAndNext(artistId, groupId, status, orderByComparator); } /** * Removes all the artists where groupId = ? and status = ? from the database. * * @param groupId the group ID * @param status the status * @throws SystemException if a system exception occurred */ public static void removeByG_S(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_S(groupId, status); } /** * Returns the number of artists where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByG_S(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_S(groupId, status); } /** * Returns the number of artists that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_S(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_S(groupId, status); } /** * Returns all the artists where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @return the matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByG_LikeN_S( long groupId, java.lang.String name, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_LikeN_S(groupId, name, status); } /** * Returns a range of all the artists where groupId = ? and name LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param name the name * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByG_LikeN_S( long groupId, java.lang.String name, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_LikeN_S(groupId, name, status, start, end); } /** * Returns an ordered range of all the artists where groupId = ? and name LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param name the name * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findByG_LikeN_S( long groupId, java.lang.String name, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_LikeN_S(groupId, name, status, start, end, orderByComparator); } /** * Returns the first artist in the ordered set where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByG_LikeN_S_First( long groupId, java.lang.String name, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByG_LikeN_S_First(groupId, name, status, orderByComparator); } /** * Returns the first artist in the ordered set where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByG_LikeN_S_First( long groupId, java.lang.String name, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_LikeN_S_First(groupId, name, status, orderByComparator); } /** * Returns the last artist in the ordered set where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist * @throws org.liferay.jukebox.NoSuchArtistException if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByG_LikeN_S_Last( long groupId, java.lang.String name, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByG_LikeN_S_Last(groupId, name, status, orderByComparator); } /** * Returns the last artist in the ordered set where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching artist, or <code>null</code> if a matching artist could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByG_LikeN_S_Last( long groupId, java.lang.String name, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_LikeN_S_Last(groupId, name, status, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set where groupId = ? and name LIKE ? and status = ?. * * @param artistId the primary key of the current artist * @param groupId the group ID * @param name the name * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] findByG_LikeN_S_PrevAndNext( long artistId, long groupId, java.lang.String name, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .findByG_LikeN_S_PrevAndNext(artistId, groupId, name, status, orderByComparator); } /** * Returns all the artists that the user has permission to view where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @return the matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByG_LikeN_S( long groupId, java.lang.String name, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_LikeN_S(groupId, name, status); } /** * Returns a range of all the artists that the user has permission to view where groupId = ? and name LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param name the name * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByG_LikeN_S( long groupId, java.lang.String name, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_LikeN_S(groupId, name, status, start, end); } /** * Returns an ordered range of all the artists that the user has permissions to view where groupId = ? and name LIKE ? and status = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param groupId the group ID * @param name the name * @param status the status * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> filterFindByG_LikeN_S( long groupId, java.lang.String name, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_LikeN_S(groupId, name, status, start, end, orderByComparator); } /** * Returns the artists before and after the current artist in the ordered set of artists that the user has permission to view where groupId = ? and name LIKE ? and status = ?. * * @param artistId the primary key of the current artist * @param groupId the group ID * @param name the name * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist[] filterFindByG_LikeN_S_PrevAndNext( long artistId, long groupId, java.lang.String name, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence() .filterFindByG_LikeN_S_PrevAndNext(artistId, groupId, name, status, orderByComparator); } /** * Removes all the artists where groupId = ? and name LIKE ? and status = ? from the database. * * @param groupId the group ID * @param name the name * @param status the status * @throws SystemException if a system exception occurred */ public static void removeByG_LikeN_S(long groupId, java.lang.String name, int status) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_LikeN_S(groupId, name, status); } /** * Returns the number of artists where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @return the number of matching artists * @throws SystemException if a system exception occurred */ public static int countByG_LikeN_S(long groupId, java.lang.String name, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_LikeN_S(groupId, name, status); } /** * Returns the number of artists that the user has permission to view where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @return the number of matching artists that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_LikeN_S(long groupId, java.lang.String name, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_LikeN_S(groupId, name, status); } /** * Caches the artist in the entity cache if it is enabled. * * @param artist the artist */ public static void cacheResult(org.liferay.jukebox.model.Artist artist) { getPersistence().cacheResult(artist); } /** * Caches the artists in the entity cache if it is enabled. * * @param artists the artists */ public static void cacheResult( java.util.List<org.liferay.jukebox.model.Artist> artists) { getPersistence().cacheResult(artists); } /** * Creates a new artist with the primary key. Does not add the artist to the database. * * @param artistId the primary key for the new artist * @return the new artist */ public static org.liferay.jukebox.model.Artist create(long artistId) { return getPersistence().create(artistId); } /** * Removes the artist with the primary key from the database. Also notifies the appropriate model listeners. * * @param artistId the primary key of the artist * @return the artist that was removed * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist remove(long artistId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().remove(artistId); } public static org.liferay.jukebox.model.Artist updateImpl( org.liferay.jukebox.model.Artist artist) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().updateImpl(artist); } /** * Returns the artist with the primary key or throws a {@link org.liferay.jukebox.NoSuchArtistException} if it could not be found. * * @param artistId the primary key of the artist * @return the artist * @throws org.liferay.jukebox.NoSuchArtistException if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist findByPrimaryKey( long artistId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchArtistException { return getPersistence().findByPrimaryKey(artistId); } /** * Returns the artist with the primary key or returns <code>null</code> if it could not be found. * * @param artistId the primary key of the artist * @return the artist, or <code>null</code> if a artist with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Artist fetchByPrimaryKey( long artistId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(artistId); } /** * Returns all the artists. * * @return the artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(); } /** * Returns a range of all the artists. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @return the range of artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the artists. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link org.liferay.jukebox.model.impl.ArtistModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of artists * @param end the upper bound of the range of artists (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of artists * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Artist> findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end, orderByComparator); } /** * Removes all the artists from the database. * * @throws SystemException if a system exception occurred */ public static void removeAll() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); } /** * Returns the number of artists. * * @return the number of artists * @throws SystemException if a system exception occurred */ public static int countAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countAll(); } public static ArtistPersistence getPersistence() { if (_persistence == null) { _persistence = (ArtistPersistence)PortletBeanLocatorUtil.locate(org.liferay.jukebox.service.ClpSerializer.getServletContextName(), ArtistPersistence.class.getName()); ReferenceRegistry.registerReference(ArtistUtil.class, "_persistence"); } return _persistence; } /** * @deprecated As of 6.2.0 */ public void setPersistence(ArtistPersistence persistence) { } private static ArtistPersistence _persistence; }