1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.journal.model.JournalTemplate;
20  
21  /**
22   * <a href="JournalTemplatePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       JournalTemplatePersistenceImpl
31   * @see       JournalTemplateUtil
32   * @generated
33   */
34  public interface JournalTemplatePersistence extends BasePersistence<JournalTemplate> {
35      public void cacheResult(
36          com.liferay.portlet.journal.model.JournalTemplate journalTemplate);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates);
40  
41      public com.liferay.portlet.journal.model.JournalTemplate create(long id);
42  
43      public com.liferay.portlet.journal.model.JournalTemplate remove(long id)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.journal.NoSuchTemplateException;
46  
47      public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
48          com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
53          long id)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.journal.NoSuchTemplateException;
56  
57      public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
58          long id) throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
61          java.lang.String uuid)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
65          java.lang.String uuid, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
69          java.lang.String uuid, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.journal.NoSuchTemplateException;
78  
79      public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.journal.NoSuchTemplateException;
84  
85      public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
86          long id, java.lang.String uuid,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.journal.NoSuchTemplateException;
90  
91      public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
92          java.lang.String uuid, long groupId)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.journal.NoSuchTemplateException;
95  
96      public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
101         java.lang.String uuid, long groupId, boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
105         long groupId)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
109         long groupId, int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
113         long groupId, int start, int end,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
118         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.journal.NoSuchTemplateException;
121 
122     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
123         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.kernel.exception.SystemException,
125             com.liferay.portlet.journal.NoSuchTemplateException;
126 
127     public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
128         long id, long groupId,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.kernel.exception.SystemException,
131             com.liferay.portlet.journal.NoSuchTemplateException;
132 
133     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
134         java.lang.String templateId)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
138         java.lang.String templateId, int start, int end)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
142         java.lang.String templateId, int start, int end,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
147         java.lang.String templateId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.journal.NoSuchTemplateException;
151 
152     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
153         java.lang.String templateId,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.kernel.exception.SystemException,
156             com.liferay.portlet.journal.NoSuchTemplateException;
157 
158     public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
159         long id, java.lang.String templateId,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.kernel.exception.SystemException,
162             com.liferay.portlet.journal.NoSuchTemplateException;
163 
164     public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
165         long smallImageId)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.journal.NoSuchTemplateException;
168 
169     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
170         long smallImageId)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
174         long smallImageId, boolean retrieveFromCache)
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
178         long groupId, java.lang.String templateId)
179         throws com.liferay.portal.kernel.exception.SystemException,
180             com.liferay.portlet.journal.NoSuchTemplateException;
181 
182     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
183         long groupId, java.lang.String templateId)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
187         long groupId, java.lang.String templateId, boolean retrieveFromCache)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
191         long groupId, java.lang.String structureId)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
195         long groupId, java.lang.String structureId, int start, int end)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
199         long groupId, java.lang.String structureId, int start, int end,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
204         long groupId, java.lang.String structureId,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.kernel.exception.SystemException,
207             com.liferay.portlet.journal.NoSuchTemplateException;
208 
209     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
210         long groupId, java.lang.String structureId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.kernel.exception.SystemException,
213             com.liferay.portlet.journal.NoSuchTemplateException;
214 
215     public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
216         long id, long groupId, java.lang.String structureId,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.journal.NoSuchTemplateException;
220 
221     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
225         int start, int end)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
229         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeByUuid(java.lang.String uuid)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public void removeByUUID_G(java.lang.String uuid, long groupId)
236         throws com.liferay.portal.kernel.exception.SystemException,
237             com.liferay.portlet.journal.NoSuchTemplateException;
238 
239     public void removeByGroupId(long groupId)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public void removeByTemplateId(java.lang.String templateId)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public void removeBySmallImageId(long smallImageId)
246         throws com.liferay.portal.kernel.exception.SystemException,
247             com.liferay.portlet.journal.NoSuchTemplateException;
248 
249     public void removeByG_T(long groupId, java.lang.String templateId)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.journal.NoSuchTemplateException;
252 
253     public void removeByG_S(long groupId, java.lang.String structureId)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public void removeAll()
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     public int countByUuid(java.lang.String uuid)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public int countByUUID_G(java.lang.String uuid, long groupId)
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public int countByGroupId(long groupId)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     public int countByTemplateId(java.lang.String templateId)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public int countBySmallImageId(long smallImageId)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public int countByG_T(long groupId, java.lang.String templateId)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public int countByG_S(long groupId, java.lang.String structureId)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public int countAll()
281         throws com.liferay.portal.kernel.exception.SystemException;
282 }