/** * 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.Question; import com.liferay.portal.service.persistence.BasePersistence; /** * The persistence interface for the question service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author edik * @see QuestionPersistenceImpl * @see QuestionUtil * @generated */ public interface QuestionPersistence extends BasePersistence<Question> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link QuestionUtil} to access the question persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Caches the question in the entity cache if it is enabled. * * @param question the question */ public void cacheResult(com.ese.ils.beta.model.Question question); /** * Caches the questions in the entity cache if it is enabled. * * @param questions the questions */ public void cacheResult( java.util.List<com.ese.ils.beta.model.Question> questions); /** * Creates a new question with the primary key. Does not add the question to the database. * * @param questionId the primary key for the new question * @return the new question */ public com.ese.ils.beta.model.Question create(long questionId); /** * Removes the question with the primary key from the database. Also notifies the appropriate model listeners. * * @param questionId the primary key of the question * @return the question that was removed * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question remove(long questionId) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; public com.ese.ils.beta.model.Question updateImpl( com.ese.ils.beta.model.Question question, boolean merge) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the question with the primary key or throws a {@link com.ese.ils.beta.NoSuchQuestionException} if it could not be found. * * @param questionId the primary key of the question * @return the question * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByPrimaryKey(long questionId) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the question with the primary key or returns <code>null</code> if it could not be found. * * @param questionId the primary key of the question * @return the question, or <code>null</code> if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByPrimaryKey(long questionId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the questions where userId = ?. * * @param userId the user ID * @return the matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUser( long userId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @return the range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUser( long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUser( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByUser_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByUser_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByUser_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByUser_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the questions before and after the current question in the ordered set where userId = ?. * * @param questionId the primary key of the current question * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next question * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question[] findByUser_PrevAndNext( long questionId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the questions where moduleId = ?. * * @param moduleId the module ID * @return the matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByModule( long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the questions where 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 moduleId the module ID * @param start the lower bound of the range of questions * @param end the upper bound of the range of questions (not inclusive) * @return the range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByModule( long moduleId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the questions where 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 moduleId the module ID * @param start the lower bound of the range of questions * @param end the upper bound of the range of questions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByModule( long moduleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByModule_First(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByModule_First(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByModule_Last(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByModule_Last(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the questions before and after the current question in the ordered set where moduleId = ?. * * @param questionId the primary key of the current question * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next question * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question[] findByModule_PrevAndNext( long questionId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the questions where slideId = ?. * * @param slideId the slide ID * @return the matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findBySlide( long slideId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @return the range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findBySlide( long slideId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findBySlide( long slideId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findBySlide_First(long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchBySlide_First(long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findBySlide_Last(long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchBySlide_Last(long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the questions before and after the current question in the ordered set where slideId = ?. * * @param questionId the primary key of the current question * @param slideId the slide ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next question * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question[] findBySlide_PrevAndNext( long questionId, long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the questions where userId = ? and slideId = ?. * * @param userId the user ID * @param slideId the slide ID * @return the matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUserAndSlide( long userId, long slideId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @return the range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUserAndSlide( long userId, long slideId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> 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 question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByUserAndSlide_First( long userId, long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByUserAndSlide_First( long userId, long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByUserAndSlide_Last( long userId, long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByUserAndSlide_Last( long userId, long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the questions before and after the current question in the ordered set where userId = ? and slideId = ?. * * @param questionId the primary key of the current question * @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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question[] findByUserAndSlide_PrevAndNext( long questionId, long userId, long slideId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the questions where userId = ? and moduleId = ?. * * @param userId the user ID * @param moduleId the module ID * @return the matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUserAndModule( long userId, long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @return the range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUserAndModule( long userId, long moduleId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the questions 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 questions * @param end the upper bound of the range of questions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findByUserAndModule( 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 question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByUserAndModule_First( long userId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByUserAndModule_First( long userId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question findByUserAndModule_Last( long userId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last question 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 question, or <code>null</code> if a matching question could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question fetchByUserAndModule_Last( long userId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the questions before and after the current question in the ordered set where userId = ? and moduleId = ?. * * @param questionId the primary key of the current question * @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 question * @throws com.ese.ils.beta.NoSuchQuestionException if a question with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Question[] findByUserAndModule_PrevAndNext( long questionId, long userId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchQuestionException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the questions. * * @return the questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the questions. * * <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 questions * @param end the upper bound of the range of questions (not inclusive) * @return the range of questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findAll(int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the questions. * * <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 questions * @param end the upper bound of the range of questions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of questions * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Question> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the questions where userId = ? from the database. * * @param userId the user ID * @throws SystemException if a system exception occurred */ public void removeByUser(long userId) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the questions where moduleId = ? from the database. * * @param moduleId the module ID * @throws SystemException if a system exception occurred */ public void removeByModule(long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the questions where slideId = ? from the database. * * @param slideId the slide ID * @throws SystemException if a system exception occurred */ public void removeBySlide(long slideId) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the questions 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 questions 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 removeByUserAndModule(long userId, long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the questions from the database. * * @throws SystemException if a system exception occurred */ public void removeAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of questions where userId = ?. * * @param userId the user ID * @return the number of matching questions * @throws SystemException if a system exception occurred */ public int countByUser(long userId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of questions where moduleId = ?. * * @param moduleId the module ID * @return the number of matching questions * @throws SystemException if a system exception occurred */ public int countByModule(long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of questions where slideId = ?. * * @param slideId the slide ID * @return the number of matching questions * @throws SystemException if a system exception occurred */ public int countBySlide(long slideId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of questions where userId = ? and slideId = ?. * * @param userId the user ID * @param slideId the slide ID * @return the number of matching questions * @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 questions where userId = ? and moduleId = ?. * * @param userId the user ID * @param moduleId the module ID * @return the number of matching questions * @throws SystemException if a system exception occurred */ public int countByUserAndModule(long userId, long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of questions. * * @return the number of questions * @throws SystemException if a system exception occurred */ public int countAll() throws com.liferay.portal.kernel.exception.SystemException; }