/** * 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.Album; import java.util.List; /** * The persistence utility for the album service. This utility wraps {@link AlbumPersistenceImpl} 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 AlbumPersistence * @see AlbumPersistenceImpl * @generated */ public class AlbumUtil { /* * 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(Album album) { getPersistence().clearCache(album); } /** * @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<Album> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<Album> 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<Album> 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 Album update(Album album) throws SystemException { return getPersistence().update(album); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) */ public static Album update(Album album, ServiceContext serviceContext) throws SystemException { return getPersistence().update(album, serviceContext); } /** * Returns all the albums where uuid = ?. * * @param uuid the uuid * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByUuid( java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where uuid = ?. * * @param albumId the primary key of the current album * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByUuid_PrevAndNext( long albumId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByUuid_PrevAndNext(albumId, uuid, orderByComparator); } /** * Removes all the albums 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 albums where uuid = ?. * * @param uuid the uuid * @return the number of matching albums * @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 album where uuid = ? and groupId = ? or throws a {@link org.liferay.jukebox.NoSuchAlbumException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByUUID_G(uuid, groupId); } /** * Returns the album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUUID_G(uuid, groupId); } /** * Returns the album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the album that was removed * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album removeByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().removeByUUID_G(uuid, groupId); } /** * Returns the number of albums where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching albums * @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 albums where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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.NoSuchAlbumException { return getPersistence() .findByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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.NoSuchAlbumException { return getPersistence() .findByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where uuid = ? and companyId = ?. * * @param albumId the primary key of the current album * @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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByUuid_C_PrevAndNext( long albumId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByUuid_C_PrevAndNext(albumId, uuid, companyId, orderByComparator); } /** * Removes all the albums 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 albums where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching albums * @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 albums where groupId = ?. * * @param groupId the group ID * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId); } /** * Returns a range of all the albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByGroupId_First(groupId, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByGroupId_Last(groupId, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where groupId = ?. * * @param albumId the primary key of the current album * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByGroupId_PrevAndNext( long albumId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByGroupId_PrevAndNext(albumId, groupId, orderByComparator); } /** * Returns all the albums that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId); } /** * Returns a range of all the albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums before and after the current album in the ordered set of albums that the user has permission to view where groupId = ?. * * @param albumId the primary key of the current album * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] filterFindByGroupId_PrevAndNext( long albumId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .filterFindByGroupId_PrevAndNext(albumId, groupId, orderByComparator); } /** * Removes all the albums 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 albums where groupId = ?. * * @param groupId the group ID * @return the number of matching albums * @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 albums that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching albums 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 albums where userId = ?. * * @param userId the user ID * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByUserId( long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUserId(userId); } /** * Returns a range of all the albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByUserId_First(userId, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByUserId_Last(userId, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where userId = ?. * * @param albumId the primary key of the current album * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByUserId_PrevAndNext( long albumId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByUserId_PrevAndNext(albumId, userId, orderByComparator); } /** * Removes all the albums 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 albums where userId = ?. * * @param userId the user ID * @return the number of matching albums * @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 albums where companyId = ?. * * @param companyId the company ID * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByCompanyId( long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId); } /** * Returns a range of all the albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByCompanyId_First(companyId, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByCompanyId_Last(companyId, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where companyId = ?. * * @param albumId the primary key of the current album * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByCompanyId_PrevAndNext( long albumId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByCompanyId_PrevAndNext(albumId, companyId, orderByComparator); } /** * Removes all the albums 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 albums where companyId = ?. * * @param companyId the company ID * @return the number of matching albums * @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 albums where artistId = ?. * * @param artistId the artist ID * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByArtistId( long artistId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByArtistId(artistId); } /** * Returns a range of all the albums where artistId = ?. * * <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.AlbumModelImpl}. 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 artistId the artist ID * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByArtistId( long artistId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByArtistId(artistId, start, end); } /** * Returns an ordered range of all the albums where artistId = ?. * * <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.AlbumModelImpl}. 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 artistId the artist ID * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByArtistId( long artistId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByArtistId(artistId, start, end, orderByComparator); } /** * Returns the first album in the ordered set where artistId = ?. * * @param artistId the artist ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByArtistId_First( long artistId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByArtistId_First(artistId, orderByComparator); } /** * Returns the first album in the ordered set where artistId = ?. * * @param artistId the artist ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByArtistId_First( long artistId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByArtistId_First(artistId, orderByComparator); } /** * Returns the last album in the ordered set where artistId = ?. * * @param artistId the artist ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByArtistId_Last( long artistId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByArtistId_Last(artistId, orderByComparator); } /** * Returns the last album in the ordered set where artistId = ?. * * @param artistId the artist ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByArtistId_Last( long artistId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByArtistId_Last(artistId, orderByComparator); } /** * Returns the albums before and after the current album in the ordered set where artistId = ?. * * @param albumId the primary key of the current album * @param artistId the artist ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByArtistId_PrevAndNext( long albumId, long artistId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByArtistId_PrevAndNext(albumId, artistId, orderByComparator); } /** * Removes all the albums where artistId = ? from the database. * * @param artistId the artist ID * @throws SystemException if a system exception occurred */ public static void removeByArtistId(long artistId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByArtistId(artistId); } /** * Returns the number of albums where artistId = ?. * * @param artistId the artist ID * @return the number of matching albums * @throws SystemException if a system exception occurred */ public static int countByArtistId(long artistId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByArtistId(artistId); } /** * Returns all the albums where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByG_U( long groupId, long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_U(groupId, userId); } /** * Returns a range of all the albums where groupId = ? and 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.AlbumModelImpl}. 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 userId the user ID * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByG_U( long groupId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_U(groupId, userId, start, end); } /** * Returns an ordered range of all the albums where groupId = ? and 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.AlbumModelImpl}. 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 userId the user ID * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByG_U( long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_U(groupId, userId, start, end, orderByComparator); } /** * Returns the first album in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByG_U_First( long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_U_First(groupId, userId, orderByComparator); } /** * Returns the first album in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByG_U_First( long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_U_First(groupId, userId, orderByComparator); } /** * Returns the last album in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_U_Last(groupId, userId, orderByComparator); } /** * Returns the last album in the ordered set where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByG_U_Last( long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_U_Last(groupId, userId, orderByComparator); } /** * Returns the albums before and after the current album in the ordered set where groupId = ? and userId = ?. * * @param albumId the primary key of the current album * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByG_U_PrevAndNext( long albumId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_U_PrevAndNext(albumId, groupId, userId, orderByComparator); } /** * Returns all the albums that the user has permission to view where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByG_U( long groupId, long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_U(groupId, userId); } /** * Returns a range of all the albums that the user has permission to view where groupId = ? and 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.AlbumModelImpl}. 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 userId the user ID * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByG_U( long groupId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_U(groupId, userId, start, end); } /** * Returns an ordered range of all the albums that the user has permissions to view where groupId = ? and 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.AlbumModelImpl}. 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 userId the user ID * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByG_U( long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_U(groupId, userId, start, end, orderByComparator); } /** * Returns the albums before and after the current album in the ordered set of albums that the user has permission to view where groupId = ? and userId = ?. * * @param albumId the primary key of the current album * @param groupId the group ID * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] filterFindByG_U_PrevAndNext( long albumId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .filterFindByG_U_PrevAndNext(albumId, groupId, userId, orderByComparator); } /** * Removes all the albums where groupId = ? and userId = ? from the database. * * @param groupId the group ID * @param userId the user ID * @throws SystemException if a system exception occurred */ public static void removeByG_U(long groupId, long userId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_U(groupId, userId); } /** * Returns the number of albums where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the number of matching albums * @throws SystemException if a system exception occurred */ public static int countByG_U(long groupId, long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_U(groupId, userId); } /** * Returns the number of albums that the user has permission to view where groupId = ? and userId = ?. * * @param groupId the group ID * @param userId the user ID * @return the number of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_U(long groupId, long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_U(groupId, userId); } /** * Returns all the albums where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_S_First(groupId, status, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_S_Last(groupId, status, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where groupId = ? and status = ?. * * @param albumId the primary key of the current album * @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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByG_S_PrevAndNext( long albumId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_S_PrevAndNext(albumId, groupId, status, orderByComparator); } /** * Returns all the albums that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums before and after the current album in the ordered set of albums that the user has permission to view where groupId = ? and status = ?. * * @param albumId the primary key of the current album * @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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] filterFindByG_S_PrevAndNext( long albumId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .filterFindByG_S_PrevAndNext(albumId, groupId, status, orderByComparator); } /** * Removes all the albums 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 albums where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching albums * @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 albums 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 albums 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 albums where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByG_A_S( long groupId, long artistId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_A_S(groupId, artistId, status); } /** * Returns a range of all the albums where groupId = ? and artistId = ? 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.AlbumModelImpl}. 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 artistId the artist ID * @param status the status * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByG_A_S( long groupId, long artistId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_A_S(groupId, artistId, status, start, end); } /** * Returns an ordered range of all the albums where groupId = ? and artistId = ? 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.AlbumModelImpl}. 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 artistId the artist ID * @param status the status * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findByG_A_S( long groupId, long artistId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_A_S(groupId, artistId, status, start, end, orderByComparator); } /** * Returns the first album in the ordered set where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByG_A_S_First( long groupId, long artistId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_A_S_First(groupId, artistId, status, orderByComparator); } /** * Returns the first album in the ordered set where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByG_A_S_First( long groupId, long artistId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_A_S_First(groupId, artistId, status, orderByComparator); } /** * Returns the last album in the ordered set where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByG_A_S_Last( long groupId, long artistId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_A_S_Last(groupId, artistId, status, orderByComparator); } /** * Returns the last album in the ordered set where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByG_A_S_Last( long groupId, long artistId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_A_S_Last(groupId, artistId, status, orderByComparator); } /** * Returns the albums before and after the current album in the ordered set where groupId = ? and artistId = ? and status = ?. * * @param albumId the primary key of the current album * @param groupId the group ID * @param artistId the artist ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByG_A_S_PrevAndNext( long albumId, long groupId, long artistId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .findByG_A_S_PrevAndNext(albumId, groupId, artistId, status, orderByComparator); } /** * Returns all the albums that the user has permission to view where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @return the matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByG_A_S( long groupId, long artistId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_A_S(groupId, artistId, status); } /** * Returns a range of all the albums that the user has permission to view where groupId = ? and artistId = ? 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.AlbumModelImpl}. 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 artistId the artist ID * @param status the status * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByG_A_S( long groupId, long artistId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_A_S(groupId, artistId, status, start, end); } /** * Returns an ordered range of all the albums that the user has permissions to view where groupId = ? and artistId = ? 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.AlbumModelImpl}. 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 artistId the artist ID * @param status the status * @param start the lower bound of the range of albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> filterFindByG_A_S( long groupId, long artistId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_A_S(groupId, artistId, status, start, end, orderByComparator); } /** * Returns the albums before and after the current album in the ordered set of albums that the user has permission to view where groupId = ? and artistId = ? and status = ?. * * @param albumId the primary key of the current album * @param groupId the group ID * @param artistId the artist ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] filterFindByG_A_S_PrevAndNext( long albumId, long groupId, long artistId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence() .filterFindByG_A_S_PrevAndNext(albumId, groupId, artistId, status, orderByComparator); } /** * Removes all the albums where groupId = ? and artistId = ? and status = ? from the database. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @throws SystemException if a system exception occurred */ public static void removeByG_A_S(long groupId, long artistId, int status) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_A_S(groupId, artistId, status); } /** * Returns the number of albums where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @return the number of matching albums * @throws SystemException if a system exception occurred */ public static int countByG_A_S(long groupId, long artistId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_A_S(groupId, artistId, status); } /** * Returns the number of albums that the user has permission to view where groupId = ? and artistId = ? and status = ?. * * @param groupId the group ID * @param artistId the artist ID * @param status the status * @return the number of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_A_S(long groupId, long artistId, int status) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_A_S(groupId, artistId, status); } /** * Returns all the albums where groupId = ? and name LIKE ? and status = ?. * * @param groupId the group ID * @param name the name * @param status the status * @return the matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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.NoSuchAlbumException { return getPersistence() .findByG_LikeN_S_First(groupId, name, status, orderByComparator); } /** * Returns the first album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 album 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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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.NoSuchAlbumException { return getPersistence() .findByG_LikeN_S_Last(groupId, name, status, orderByComparator); } /** * Returns the last album 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 album, or <code>null</code> if a matching album could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album 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 albums before and after the current album in the ordered set where groupId = ? and name LIKE ? and status = ?. * * @param albumId the primary key of the current album * @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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] findByG_LikeN_S_PrevAndNext( long albumId, 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.NoSuchAlbumException { return getPersistence() .findByG_LikeN_S_PrevAndNext(albumId, groupId, name, status, orderByComparator); } /** * Returns all the albums 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 albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching albums that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums before and after the current album in the ordered set of albums that the user has permission to view where groupId = ? and name LIKE ? and status = ?. * * @param albumId the primary key of the current album * @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 album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album[] filterFindByG_LikeN_S_PrevAndNext( long albumId, 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.NoSuchAlbumException { return getPersistence() .filterFindByG_LikeN_S_PrevAndNext(albumId, groupId, name, status, orderByComparator); } /** * Removes all the albums 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 albums 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 albums * @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 albums 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 albums 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 album in the entity cache if it is enabled. * * @param album the album */ public static void cacheResult(org.liferay.jukebox.model.Album album) { getPersistence().cacheResult(album); } /** * Caches the albums in the entity cache if it is enabled. * * @param albums the albums */ public static void cacheResult( java.util.List<org.liferay.jukebox.model.Album> albums) { getPersistence().cacheResult(albums); } /** * Creates a new album with the primary key. Does not add the album to the database. * * @param albumId the primary key for the new album * @return the new album */ public static org.liferay.jukebox.model.Album create(long albumId) { return getPersistence().create(albumId); } /** * Removes the album with the primary key from the database. Also notifies the appropriate model listeners. * * @param albumId the primary key of the album * @return the album that was removed * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album remove(long albumId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().remove(albumId); } public static org.liferay.jukebox.model.Album updateImpl( org.liferay.jukebox.model.Album album) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().updateImpl(album); } /** * Returns the album with the primary key or throws a {@link org.liferay.jukebox.NoSuchAlbumException} if it could not be found. * * @param albumId the primary key of the album * @return the album * @throws org.liferay.jukebox.NoSuchAlbumException if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album findByPrimaryKey(long albumId) throws com.liferay.portal.kernel.exception.SystemException, org.liferay.jukebox.NoSuchAlbumException { return getPersistence().findByPrimaryKey(albumId); } /** * Returns the album with the primary key or returns <code>null</code> if it could not be found. * * @param albumId the primary key of the album * @return the album, or <code>null</code> if a album with the primary key could not be found * @throws SystemException if a system exception occurred */ public static org.liferay.jukebox.model.Album fetchByPrimaryKey( long albumId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(albumId); } /** * Returns all the albums. * * @return the albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(); } /** * Returns a range of all the albums. * * <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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @return the range of albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the albums. * * <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.AlbumModelImpl}. 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 albums * @param end the upper bound of the range of albums (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of albums * @throws SystemException if a system exception occurred */ public static java.util.List<org.liferay.jukebox.model.Album> 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 albums 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 albums. * * @return the number of albums * @throws SystemException if a system exception occurred */ public static int countAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countAll(); } public static AlbumPersistence getPersistence() { if (_persistence == null) { _persistence = (AlbumPersistence)PortletBeanLocatorUtil.locate(org.liferay.jukebox.service.ClpSerializer.getServletContextName(), AlbumPersistence.class.getName()); ReferenceRegistry.registerReference(AlbumUtil.class, "_persistence"); } return _persistence; } /** * @deprecated As of 6.2.0 */ public void setPersistence(AlbumPersistence persistence) { } private static AlbumPersistence _persistence; }