001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Release;
018    
019    /**
020     * The persistence interface for the release service.
021     *
022     * <p>
023     * Never modify or reference this interface directly. Always use {@link ReleaseUtil} to access the release persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see ReleasePersistenceImpl
032     * @see ReleaseUtil
033     * @generated
034     */
035    public interface ReleasePersistence extends BasePersistence<Release> {
036            /**
037            * Caches the release in the entity cache if it is enabled.
038            *
039            * @param release the release to cache
040            */
041            public void cacheResult(com.liferay.portal.model.Release release);
042    
043            /**
044            * Caches the releases in the entity cache if it is enabled.
045            *
046            * @param releases the releases to cache
047            */
048            public void cacheResult(
049                    java.util.List<com.liferay.portal.model.Release> releases);
050    
051            /**
052            * Creates a new release with the primary key. Does not add the release to the database.
053            *
054            * @param releaseId the primary key for the new release
055            * @return the new release
056            */
057            public com.liferay.portal.model.Release create(long releaseId);
058    
059            /**
060            * Removes the release with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param releaseId the primary key of the release to remove
063            * @return the release that was removed
064            * @throws com.liferay.portal.NoSuchReleaseException if a release with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portal.model.Release remove(long releaseId)
068                    throws com.liferay.portal.NoSuchReleaseException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            public com.liferay.portal.model.Release updateImpl(
072                    com.liferay.portal.model.Release release, boolean merge)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            /**
076            * Finds the release with the primary key or throws a {@link com.liferay.portal.NoSuchReleaseException} if it could not be found.
077            *
078            * @param releaseId the primary key of the release to find
079            * @return the release
080            * @throws com.liferay.portal.NoSuchReleaseException if a release with the primary key could not be found
081            * @throws SystemException if a system exception occurred
082            */
083            public com.liferay.portal.model.Release findByPrimaryKey(long releaseId)
084                    throws com.liferay.portal.NoSuchReleaseException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Finds the release with the primary key or returns <code>null</code> if it could not be found.
089            *
090            * @param releaseId the primary key of the release to find
091            * @return the release, or <code>null</code> if a release with the primary key could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.Release fetchByPrimaryKey(long releaseId)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            /**
098            * Finds the release where servletContextName = &#63; or throws a {@link com.liferay.portal.NoSuchReleaseException} if it could not be found.
099            *
100            * @param servletContextName the servlet context name to search with
101            * @return the matching release
102            * @throws com.liferay.portal.NoSuchReleaseException if a matching release could not be found
103            * @throws SystemException if a system exception occurred
104            */
105            public com.liferay.portal.model.Release findByServletContextName(
106                    java.lang.String servletContextName)
107                    throws com.liferay.portal.NoSuchReleaseException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            /**
111            * Finds the release where servletContextName = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
112            *
113            * @param servletContextName the servlet context name to search with
114            * @return the matching release, or <code>null</code> if a matching release could not be found
115            * @throws SystemException if a system exception occurred
116            */
117            public com.liferay.portal.model.Release fetchByServletContextName(
118                    java.lang.String servletContextName)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            /**
122            * Finds the release where servletContextName = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
123            *
124            * @param servletContextName the servlet context name to search with
125            * @return the matching release, or <code>null</code> if a matching release could not be found
126            * @throws SystemException if a system exception occurred
127            */
128            public com.liferay.portal.model.Release fetchByServletContextName(
129                    java.lang.String servletContextName, boolean retrieveFromCache)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Finds all the releases.
134            *
135            * @return the releases
136            * @throws SystemException if a system exception occurred
137            */
138            public java.util.List<com.liferay.portal.model.Release> findAll()
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Finds a range of all the releases.
143            *
144            * <p>
145            * 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.
146            * </p>
147            *
148            * @param start the lower bound of the range of releases to return
149            * @param end the upper bound of the range of releases to return (not inclusive)
150            * @return the range of releases
151            * @throws SystemException if a system exception occurred
152            */
153            public java.util.List<com.liferay.portal.model.Release> findAll(int start,
154                    int end) throws com.liferay.portal.kernel.exception.SystemException;
155    
156            /**
157            * Finds an ordered range of all the releases.
158            *
159            * <p>
160            * 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.
161            * </p>
162            *
163            * @param start the lower bound of the range of releases to return
164            * @param end the upper bound of the range of releases to return (not inclusive)
165            * @param orderByComparator the comparator to order the results by
166            * @return the ordered range of releases
167            * @throws SystemException if a system exception occurred
168            */
169            public java.util.List<com.liferay.portal.model.Release> findAll(int start,
170                    int end,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            /**
175            * Removes the release where servletContextName = &#63; from the database.
176            *
177            * @param servletContextName the servlet context name to search with
178            * @throws SystemException if a system exception occurred
179            */
180            public void removeByServletContextName(java.lang.String servletContextName)
181                    throws com.liferay.portal.NoSuchReleaseException,
182                            com.liferay.portal.kernel.exception.SystemException;
183    
184            /**
185            * Removes all the releases from the database.
186            *
187            * @throws SystemException if a system exception occurred
188            */
189            public void removeAll()
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            /**
193            * Counts all the releases where servletContextName = &#63;.
194            *
195            * @param servletContextName the servlet context name to search with
196            * @return the number of matching releases
197            * @throws SystemException if a system exception occurred
198            */
199            public int countByServletContextName(java.lang.String servletContextName)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Counts all the releases.
204            *
205            * @return the number of releases
206            * @throws SystemException if a system exception occurred
207            */
208            public int countAll()
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    }