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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
118         long groupId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.journal.NoSuchTemplateException;
122 
123     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
124         long groupId,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.journal.NoSuchTemplateException;
128 
129     public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
130         long id, long groupId,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException,
133             com.liferay.portlet.journal.NoSuchTemplateException;
134 
135     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
136         java.lang.String templateId)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
140         java.lang.String templateId, int start, int end)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
144         java.lang.String templateId, int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
149         java.lang.String templateId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.journal.NoSuchTemplateException;
153 
154     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
155         java.lang.String templateId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.journal.NoSuchTemplateException;
159 
160     public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
161         long id, java.lang.String templateId,
162         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.journal.NoSuchTemplateException;
165 
166     public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
167         long smallImageId)
168         throws com.liferay.portal.kernel.exception.SystemException,
169             com.liferay.portlet.journal.NoSuchTemplateException;
170 
171     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
172         long smallImageId)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
176         long smallImageId, boolean retrieveFromCache)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
180         long groupId, java.lang.String templateId)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.journal.NoSuchTemplateException;
183 
184     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
185         long groupId, java.lang.String templateId)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
189         long groupId, java.lang.String templateId, boolean retrieveFromCache)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
193         long groupId, java.lang.String structureId)
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
197         long groupId, java.lang.String structureId, int start, int end)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
201         long groupId, java.lang.String structureId, int start, int end,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
206         long groupId, java.lang.String structureId,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.journal.NoSuchTemplateException;
210 
211     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
212         long groupId, java.lang.String structureId,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException,
215             com.liferay.portlet.journal.NoSuchTemplateException;
216 
217     public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
218         long id, long groupId, java.lang.String structureId,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.kernel.exception.SystemException,
221             com.liferay.portlet.journal.NoSuchTemplateException;
222 
223     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
227         int start, int end)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
231         int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public void removeByUuid(java.lang.String uuid)
236         throws com.liferay.portal.kernel.exception.SystemException;
237 
238     public void removeByUUID_G(java.lang.String uuid, long groupId)
239         throws com.liferay.portal.kernel.exception.SystemException,
240             com.liferay.portlet.journal.NoSuchTemplateException;
241 
242     public void removeByGroupId(long groupId)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public void removeByTemplateId(java.lang.String templateId)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public void removeBySmallImageId(long smallImageId)
249         throws com.liferay.portal.kernel.exception.SystemException,
250             com.liferay.portlet.journal.NoSuchTemplateException;
251 
252     public void removeByG_T(long groupId, java.lang.String templateId)
253         throws com.liferay.portal.kernel.exception.SystemException,
254             com.liferay.portlet.journal.NoSuchTemplateException;
255 
256     public void removeByG_S(long groupId, java.lang.String structureId)
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     public void removeAll()
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public int countByUuid(java.lang.String uuid)
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public int countByUUID_G(java.lang.String uuid, long groupId)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     public int countByGroupId(long groupId)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public int countByTemplateId(java.lang.String templateId)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public int countBySmallImageId(long smallImageId)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public int countByG_T(long groupId, java.lang.String templateId)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public int countByG_S(long groupId, java.lang.String structureId)
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public int countAll()
284         throws com.liferay.portal.kernel.exception.SystemException;
285 }