1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException,
45              com.liferay.portlet.journal.NoSuchTemplateException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.journal.model.JournalTemplate update(
51          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
55          com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
59          long id)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.journal.NoSuchTemplateException;
62  
63      public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
64          long id) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
67          java.lang.String uuid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
70          java.lang.String uuid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
74          java.lang.String uuid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.journal.NoSuchTemplateException;
83  
84      public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.journal.NoSuchTemplateException;
89  
90      public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
91          long id, java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.journal.NoSuchTemplateException;
95  
96      public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.journal.NoSuchTemplateException;
100 
101     public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
106         java.lang.String uuid, long groupId, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
110         long groupId) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
113         long groupId, int start, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
117         long groupId, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
122         long groupId,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.journal.NoSuchTemplateException;
126 
127     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
128         long groupId,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.journal.NoSuchTemplateException;
132 
133     public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
134         long id, long groupId,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.journal.NoSuchTemplateException;
138 
139     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
140         java.lang.String templateId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
143         java.lang.String templateId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
147         java.lang.String templateId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
152         java.lang.String templateId,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchTemplateException;
156 
157     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
158         java.lang.String templateId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.journal.NoSuchTemplateException;
162 
163     public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
164         long id, java.lang.String templateId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.journal.NoSuchTemplateException;
168 
169     public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
170         long smallImageId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchTemplateException;
173 
174     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
175         long smallImageId) throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
178         long smallImageId, boolean retrieveFromCache)
179         throws com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
182         long groupId, java.lang.String templateId)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.journal.NoSuchTemplateException;
185 
186     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
187         long groupId, java.lang.String templateId)
188         throws com.liferay.portal.SystemException;
189 
190     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
191         long groupId, java.lang.String templateId, boolean retrieveFromCache)
192         throws com.liferay.portal.SystemException;
193 
194     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
195         long groupId, java.lang.String structureId)
196         throws com.liferay.portal.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         throws com.liferay.portal.SystemException;
201 
202     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
203         long groupId, java.lang.String structureId, int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205         throws com.liferay.portal.SystemException;
206 
207     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
208         long groupId, java.lang.String structureId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.journal.NoSuchTemplateException;
212 
213     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
214         long groupId, java.lang.String structureId,
215         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.journal.NoSuchTemplateException;
218 
219     public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
220         long id, long groupId, java.lang.String structureId,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.journal.NoSuchTemplateException;
224 
225     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
226         throws com.liferay.portal.SystemException;
227 
228     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
229         int start, int end) throws com.liferay.portal.SystemException;
230 
231     public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
232         int start, int end,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.SystemException;
235 
236     public void removeByUuid(java.lang.String uuid)
237         throws com.liferay.portal.SystemException;
238 
239     public void removeByUUID_G(java.lang.String uuid, long groupId)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.journal.NoSuchTemplateException;
242 
243     public void removeByGroupId(long groupId)
244         throws com.liferay.portal.SystemException;
245 
246     public void removeByTemplateId(java.lang.String templateId)
247         throws com.liferay.portal.SystemException;
248 
249     public void removeBySmallImageId(long smallImageId)
250         throws com.liferay.portal.SystemException,
251             com.liferay.portlet.journal.NoSuchTemplateException;
252 
253     public void removeByG_T(long groupId, java.lang.String templateId)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.journal.NoSuchTemplateException;
256 
257     public void removeByG_S(long groupId, java.lang.String structureId)
258         throws com.liferay.portal.SystemException;
259 
260     public void removeAll() throws com.liferay.portal.SystemException;
261 
262     public int countByUuid(java.lang.String uuid)
263         throws com.liferay.portal.SystemException;
264 
265     public int countByUUID_G(java.lang.String uuid, long groupId)
266         throws com.liferay.portal.SystemException;
267 
268     public int countByGroupId(long groupId)
269         throws com.liferay.portal.SystemException;
270 
271     public int countByTemplateId(java.lang.String templateId)
272         throws com.liferay.portal.SystemException;
273 
274     public int countBySmallImageId(long smallImageId)
275         throws com.liferay.portal.SystemException;
276 
277     public int countByG_T(long groupId, java.lang.String templateId)
278         throws com.liferay.portal.SystemException;
279 
280     public int countByG_S(long groupId, java.lang.String structureId)
281         throws com.liferay.portal.SystemException;
282 
283     public int countAll() throws com.liferay.portal.SystemException;
284 }