/** * 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.Slide; import com.liferay.portal.service.persistence.BasePersistence; /** * The persistence interface for the slide service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author edik * @see SlidePersistenceImpl * @see SlideUtil * @generated */ public interface SlidePersistence extends BasePersistence<Slide> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link SlideUtil} to access the slide persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Caches the slide in the entity cache if it is enabled. * * @param slide the slide */ public void cacheResult(com.ese.ils.beta.model.Slide slide); /** * Caches the slides in the entity cache if it is enabled. * * @param slides the slides */ public void cacheResult(java.util.List<com.ese.ils.beta.model.Slide> slides); /** * Creates a new slide with the primary key. Does not add the slide to the database. * * @param slideId the primary key for the new slide * @return the new slide */ public com.ese.ils.beta.model.Slide create(long slideId); /** * Removes the slide with the primary key from the database. Also notifies the appropriate model listeners. * * @param slideId the primary key of the slide * @return the slide that was removed * @throws com.ese.ils.beta.NoSuchSlideException if a slide with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide remove(long slideId) throws com.ese.ils.beta.NoSuchSlideException, com.liferay.portal.kernel.exception.SystemException; public com.ese.ils.beta.model.Slide updateImpl( com.ese.ils.beta.model.Slide slide, boolean merge) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the slide with the primary key or throws a {@link com.ese.ils.beta.NoSuchSlideException} if it could not be found. * * @param slideId the primary key of the slide * @return the slide * @throws com.ese.ils.beta.NoSuchSlideException if a slide with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide findByPrimaryKey(long slideId) throws com.ese.ils.beta.NoSuchSlideException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the slide with the primary key or returns <code>null</code> if it could not be found. * * @param slideId the primary key of the slide * @return the slide, or <code>null</code> if a slide with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide fetchByPrimaryKey(long slideId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the slides where moduleId = ?. * * @param moduleId the module ID * @return the matching slides * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Slide> findByByModule( long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the slides 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 slides * @param end the upper bound of the range of slides (not inclusive) * @return the range of matching slides * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Slide> findByByModule( long moduleId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the slides 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 slides * @param end the upper bound of the range of slides (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching slides * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Slide> findByByModule( long moduleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first slide 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 slide * @throws com.ese.ils.beta.NoSuchSlideException if a matching slide could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide findByByModule_First(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchSlideException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first slide 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 slide, or <code>null</code> if a matching slide could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide fetchByByModule_First(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last slide 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 slide * @throws com.ese.ils.beta.NoSuchSlideException if a matching slide could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide findByByModule_Last(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchSlideException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last slide 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 slide, or <code>null</code> if a matching slide could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide fetchByByModule_Last(long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the slides before and after the current slide in the ordered set where moduleId = ?. * * @param slideId the primary key of the current slide * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next slide * @throws com.ese.ils.beta.NoSuchSlideException if a slide with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.ese.ils.beta.model.Slide[] findByByModule_PrevAndNext( long slideId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchSlideException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the slides. * * @return the slides * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Slide> findAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the slides. * * <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 slides * @param end the upper bound of the range of slides (not inclusive) * @return the range of slides * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Slide> findAll(int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the slides. * * <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 slides * @param end the upper bound of the range of slides (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of slides * @throws SystemException if a system exception occurred */ public java.util.List<com.ese.ils.beta.model.Slide> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the slides where moduleId = ? from the database. * * @param moduleId the module ID * @throws SystemException if a system exception occurred */ public void removeByByModule(long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the slides from the database. * * @throws SystemException if a system exception occurred */ public void removeAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of slides where moduleId = ?. * * @param moduleId the module ID * @return the number of matching slides * @throws SystemException if a system exception occurred */ public int countByByModule(long moduleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of slides. * * @return the number of slides * @throws SystemException if a system exception occurred */ public int countAll() throws com.liferay.portal.kernel.exception.SystemException; }