/**
* Copyright (c) 2000-2012 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 com.ese.ils.beta.service.persistence;
import com.ese.ils.beta.model.Favorite;
import com.liferay.portal.service.persistence.BasePersistence;
/**
* The persistence interface for the favorite service.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author edik
* @see FavoritePersistenceImpl
* @see FavoriteUtil
* @generated
*/
public interface FavoritePersistence extends BasePersistence<Favorite> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link FavoriteUtil} to access the favorite persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Caches the favorite in the entity cache if it is enabled.
*
* @param favorite the favorite
*/
public void cacheResult(com.ese.ils.beta.model.Favorite favorite);
/**
* Caches the favorites in the entity cache if it is enabled.
*
* @param favorites the favorites
*/
public void cacheResult(
java.util.List<com.ese.ils.beta.model.Favorite> favorites);
/**
* Creates a new favorite with the primary key. Does not add the favorite to the database.
*
* @param favoriteId the primary key for the new favorite
* @return the new favorite
*/
public com.ese.ils.beta.model.Favorite create(long favoriteId);
/**
* Removes the favorite with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param favoriteId the primary key of the favorite
* @return the favorite that was removed
* @throws com.ese.ils.beta.NoSuchFavoriteException if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite remove(long favoriteId)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
public com.ese.ils.beta.model.Favorite updateImpl(
com.ese.ils.beta.model.Favorite favorite, boolean merge)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the favorite with the primary key or throws a {@link com.ese.ils.beta.NoSuchFavoriteException} if it could not be found.
*
* @param favoriteId the primary key of the favorite
* @return the favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByPrimaryKey(long favoriteId)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the favorite with the primary key or returns <code>null</code> if it could not be found.
*
* @param favoriteId the primary key of the favorite
* @return the favorite, or <code>null</code> if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByPrimaryKey(long favoriteId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the favorites where userId = ?.
*
* @param userId the user ID
* @return the matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByByUser(
long userId) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the favorites 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.
* </p>
*
* @param userId the user ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @return the range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByByUser(
long userId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the favorites 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.
* </p>
*
* @param userId the user ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByByUser(
long userId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite 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 favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByByUser_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite 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 favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByByUser_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite 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 favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByByUser_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite 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 favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByByUser_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the favorites before and after the current favorite in the ordered set where userId = ?.
*
* @param favoriteId the primary key of the current favorite
* @param userId the user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite[] findByByUser_PrevAndNext(
long favoriteId, long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the favorites where slideId = ?.
*
* @param slideId the slide ID
* @return the matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByBySlide(
long slideId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the favorites where slideId = ?.
*
* <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.
* </p>
*
* @param slideId the slide ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @return the range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByBySlide(
long slideId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the favorites where slideId = ?.
*
* <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.
* </p>
*
* @param slideId the slide ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByBySlide(
long slideId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite in the ordered set where slideId = ?.
*
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByBySlide_First(long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite in the ordered set where slideId = ?.
*
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByBySlide_First(long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite in the ordered set where slideId = ?.
*
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByBySlide_Last(long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite in the ordered set where slideId = ?.
*
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByBySlide_Last(long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the favorites before and after the current favorite in the ordered set where slideId = ?.
*
* @param favoriteId the primary key of the current favorite
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite[] findByBySlide_PrevAndNext(
long favoriteId, long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the favorites where userId = ? and moduleId = ?.
*
* @param userId the user ID
* @param moduleId the module ID
* @return the matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByUserModule(
long userId, long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the favorites where userId = ? and moduleId = ?.
*
* <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.
* </p>
*
* @param userId the user ID
* @param moduleId the module ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @return the range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByUserModule(
long userId, long moduleId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the favorites where userId = ? and moduleId = ?.
*
* <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.
* </p>
*
* @param userId the user ID
* @param moduleId the module ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByUserModule(
long userId, long moduleId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite in the ordered set where userId = ? and moduleId = ?.
*
* @param userId the user ID
* @param moduleId the module ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByUserModule_First(long userId,
long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite in the ordered set where userId = ? and moduleId = ?.
*
* @param userId the user ID
* @param moduleId the module ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByUserModule_First(
long userId, long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite in the ordered set where userId = ? and moduleId = ?.
*
* @param userId the user ID
* @param moduleId the module ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByUserModule_Last(long userId,
long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite in the ordered set where userId = ? and moduleId = ?.
*
* @param userId the user ID
* @param moduleId the module ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByUserModule_Last(long userId,
long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the favorites before and after the current favorite in the ordered set where userId = ? and moduleId = ?.
*
* @param favoriteId the primary key of the current favorite
* @param userId the user ID
* @param moduleId the module ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite[] findByUserModule_PrevAndNext(
long favoriteId, long userId, long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the favorites where userId = ? and slideId = ?.
*
* @param userId the user ID
* @param slideId the slide ID
* @return the matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByUserAndSlide(
long userId, long slideId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the favorites where userId = ? and slideId = ?.
*
* <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.
* </p>
*
* @param userId the user ID
* @param slideId the slide ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @return the range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByUserAndSlide(
long userId, long slideId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the favorites where userId = ? and slideId = ?.
*
* <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.
* </p>
*
* @param userId the user ID
* @param slideId the slide ID
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findByUserAndSlide(
long userId, long slideId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite in the ordered set where userId = ? and slideId = ?.
*
* @param userId the user ID
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByUserAndSlide_First(
long userId, long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first favorite in the ordered set where userId = ? and slideId = ?.
*
* @param userId the user ID
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByUserAndSlide_First(
long userId, long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite in the ordered set where userId = ? and slideId = ?.
*
* @param userId the user ID
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite findByUserAndSlide_Last(
long userId, long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last favorite in the ordered set where userId = ? and slideId = ?.
*
* @param userId the user ID
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching favorite, or <code>null</code> if a matching favorite could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite fetchByUserAndSlide_Last(
long userId, long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the favorites before and after the current favorite in the ordered set where userId = ? and slideId = ?.
*
* @param favoriteId the primary key of the current favorite
* @param userId the user ID
* @param slideId the slide ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next favorite
* @throws com.ese.ils.beta.NoSuchFavoriteException if a favorite with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Favorite[] findByUserAndSlide_PrevAndNext(
long favoriteId, long userId, long slideId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchFavoriteException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the favorites.
*
* @return the favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the favorites.
*
* <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.
* </p>
*
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @return the range of favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findAll(int start,
int end) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the favorites.
*
* <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.
* </p>
*
* @param start the lower bound of the range of favorites
* @param end the upper bound of the range of favorites (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of favorites
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Favorite> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the favorites where userId = ? from the database.
*
* @param userId the user ID
* @throws SystemException if a system exception occurred
*/
public void removeByByUser(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the favorites where slideId = ? from the database.
*
* @param slideId the slide ID
* @throws SystemException if a system exception occurred
*/
public void removeByBySlide(long slideId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the favorites where userId = ? and moduleId = ? from the database.
*
* @param userId the user ID
* @param moduleId the module ID
* @throws SystemException if a system exception occurred
*/
public void removeByUserModule(long userId, long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the favorites where userId = ? and slideId = ? from the database.
*
* @param userId the user ID
* @param slideId the slide ID
* @throws SystemException if a system exception occurred
*/
public void removeByUserAndSlide(long userId, long slideId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the favorites from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of favorites where userId = ?.
*
* @param userId the user ID
* @return the number of matching favorites
* @throws SystemException if a system exception occurred
*/
public int countByByUser(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of favorites where slideId = ?.
*
* @param slideId the slide ID
* @return the number of matching favorites
* @throws SystemException if a system exception occurred
*/
public int countByBySlide(long slideId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of favorites where userId = ? and moduleId = ?.
*
* @param userId the user ID
* @param moduleId the module ID
* @return the number of matching favorites
* @throws SystemException if a system exception occurred
*/
public int countByUserModule(long userId, long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of favorites where userId = ? and slideId = ?.
*
* @param userId the user ID
* @param slideId the slide ID
* @return the number of matching favorites
* @throws SystemException if a system exception occurred
*/
public int countByUserAndSlide(long userId, long slideId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of favorites.
*
* @return the number of favorites
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
}