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