1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="JournalArticleImagePersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalArticleImagePersistenceImpl
37   * @see       JournalArticleImageUtil
38   * @generated
39   */
40  public interface JournalArticleImagePersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.journal.model.JournalArticleImage create(
50          long articleImageId);
51  
52      public com.liferay.portlet.journal.model.JournalArticleImage remove(
53          long articleImageId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.journal.NoSuchArticleImageException;
56  
57      public com.liferay.portlet.journal.model.JournalArticleImage remove(
58          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(JournalArticleImage, boolean merge)}.
63       */
64      public com.liferay.portlet.journal.model.JournalArticleImage update(
65          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  journalArticleImage the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when journalArticleImage is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.journal.model.JournalArticleImage update(
81          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
85          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
89          long articleImageId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.journal.NoSuchArticleImageException;
92  
93      public com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
94          long articleImageId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
97          long groupId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
100         long groupId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
104         long groupId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
109         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.journal.NoSuchArticleImageException;
112 
113     public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
114         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.journal.NoSuchArticleImageException;
117 
118     public com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
119         long articleImageId, long groupId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.journal.NoSuchArticleImageException;
123 
124     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
125         boolean tempImage) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
128         boolean tempImage, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
132         boolean tempImage, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
137         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.journal.NoSuchArticleImageException;
140 
141     public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
142         boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.journal.NoSuchArticleImageException;
145 
146     public com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
147         long articleImageId, boolean tempImage,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.journal.NoSuchArticleImageException;
151 
152     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
153         long groupId, java.lang.String articleId, double version)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
157         long groupId, java.lang.String articleId, double version, int start,
158         int end) throws com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
161         long groupId, java.lang.String articleId, double version, int start,
162         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException;
164 
165     public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
166         long groupId, java.lang.String articleId, double version,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.journal.NoSuchArticleImageException;
170 
171     public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
172         long groupId, java.lang.String articleId, double version,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.journal.NoSuchArticleImageException;
176 
177     public com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
178         long articleImageId, long groupId, java.lang.String articleId,
179         double version, com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.journal.NoSuchArticleImageException;
182 
183     public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_L(
184         long groupId, java.lang.String articleId, double version,
185         java.lang.String elName, java.lang.String languageId)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.journal.NoSuchArticleImageException;
188 
189     public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_L(
190         long groupId, java.lang.String articleId, double version,
191         java.lang.String elName, java.lang.String languageId)
192         throws com.liferay.portal.SystemException;
193 
194     public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_L(
195         long groupId, java.lang.String articleId, double version,
196         java.lang.String elName, java.lang.String languageId,
197         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
198 
199     public java.util.List<Object> findWithDynamicQuery(
200         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<Object> findWithDynamicQuery(
204         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
205         int end) throws com.liferay.portal.SystemException;
206 
207     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
208         throws com.liferay.portal.SystemException;
209 
210     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
211         int start, int end) throws com.liferay.portal.SystemException;
212 
213     public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
214         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException;
216 
217     public void removeByGroupId(long groupId)
218         throws com.liferay.portal.SystemException;
219 
220     public void removeByTempImage(boolean tempImage)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeByG_A_V(long groupId, java.lang.String articleId,
224         double version) throws com.liferay.portal.SystemException;
225 
226     public void removeByG_A_V_E_L(long groupId, java.lang.String articleId,
227         double version, java.lang.String elName, java.lang.String languageId)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.journal.NoSuchArticleImageException;
230 
231     public void removeAll() throws com.liferay.portal.SystemException;
232 
233     public int countByGroupId(long groupId)
234         throws com.liferay.portal.SystemException;
235 
236     public int countByTempImage(boolean tempImage)
237         throws com.liferay.portal.SystemException;
238 
239     public int countByG_A_V(long groupId, java.lang.String articleId,
240         double version) throws com.liferay.portal.SystemException;
241 
242     public int countByG_A_V_E_L(long groupId, java.lang.String articleId,
243         double version, java.lang.String elName, java.lang.String languageId)
244         throws com.liferay.portal.SystemException;
245 
246     public int countAll() throws com.liferay.portal.SystemException;
247 }