1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="JournalTemplatePersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface JournalTemplatePersistence {
32      public com.liferay.portlet.journal.model.JournalTemplate create(long id);
33  
34      public com.liferay.portlet.journal.model.JournalTemplate remove(long id)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.journal.NoSuchTemplateException;
37  
38      public com.liferay.portlet.journal.model.JournalTemplate remove(
39          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.journal.model.JournalTemplate update(
43          com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.journal.model.JournalTemplate update(
47          com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
48          boolean merge) throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
51          com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
52          boolean merge) throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
55          long id)
56          throws com.liferay.portal.SystemException, 
57              com.liferay.portlet.journal.NoSuchTemplateException;
58  
59      public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
60          long id) throws com.liferay.portal.SystemException;
61  
62      public java.util.List findByUuid(java.lang.String uuid)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
73          java.lang.String uuid,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException, 
76              com.liferay.portlet.journal.NoSuchTemplateException;
77  
78      public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portlet.journal.NoSuchTemplateException;
83  
84      public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
85          long id, java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException, 
88              com.liferay.portlet.journal.NoSuchTemplateException;
89  
90      public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
91          java.lang.String uuid, long groupId)
92          throws com.liferay.portal.SystemException, 
93              com.liferay.portlet.journal.NoSuchTemplateException;
94  
95      public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
96          java.lang.String uuid, long groupId)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List findByGroupId(long groupId)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List findByGroupId(long groupId, int begin, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List findByGroupId(long groupId, int begin, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
110         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException, 
112             com.liferay.portlet.journal.NoSuchTemplateException;
113 
114     public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
115         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portlet.journal.NoSuchTemplateException;
118 
119     public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
120         long id, long groupId,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portlet.journal.NoSuchTemplateException;
124 
125     public java.util.List findByTemplateId(java.lang.String templateId)
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List findByTemplateId(java.lang.String templateId,
129         int begin, int end) throws com.liferay.portal.SystemException;
130 
131     public java.util.List findByTemplateId(java.lang.String templateId,
132         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
136         java.lang.String templateId,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portlet.journal.NoSuchTemplateException;
140 
141     public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
142         java.lang.String templateId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.journal.NoSuchTemplateException;
146 
147     public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
148         long id, java.lang.String templateId,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException, 
151             com.liferay.portlet.journal.NoSuchTemplateException;
152 
153     public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
154         long smallImageId)
155         throws com.liferay.portal.SystemException, 
156             com.liferay.portlet.journal.NoSuchTemplateException;
157 
158     public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
159         long smallImageId) throws com.liferay.portal.SystemException;
160 
161     public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
162         long groupId, java.lang.String templateId)
163         throws com.liferay.portal.SystemException, 
164             com.liferay.portlet.journal.NoSuchTemplateException;
165 
166     public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
167         long groupId, java.lang.String templateId)
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List findByG_S(long groupId, java.lang.String structureId)
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List findByG_S(long groupId, java.lang.String structureId,
174         int begin, int end) throws com.liferay.portal.SystemException;
175 
176     public java.util.List findByG_S(long groupId, java.lang.String structureId,
177         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException;
179 
180     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
181         long groupId, java.lang.String structureId,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portlet.journal.NoSuchTemplateException;
185 
186     public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
187         long groupId, java.lang.String structureId,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException, 
190             com.liferay.portlet.journal.NoSuchTemplateException;
191 
192     public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
193         long id, long groupId, java.lang.String structureId,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException, 
196             com.liferay.portlet.journal.NoSuchTemplateException;
197 
198     public java.util.List findWithDynamicQuery(
199         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List findWithDynamicQuery(
203         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
204         int begin, int end) throws com.liferay.portal.SystemException;
205 
206     public java.util.List findAll() throws com.liferay.portal.SystemException;
207 
208     public java.util.List findAll(int begin, int end)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List findAll(int begin, int end,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException;
214 
215     public void removeByUuid(java.lang.String uuid)
216         throws com.liferay.portal.SystemException;
217 
218     public void removeByUUID_G(java.lang.String uuid, long groupId)
219         throws com.liferay.portal.SystemException, 
220             com.liferay.portlet.journal.NoSuchTemplateException;
221 
222     public void removeByGroupId(long groupId)
223         throws com.liferay.portal.SystemException;
224 
225     public void removeByTemplateId(java.lang.String templateId)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeBySmallImageId(long smallImageId)
229         throws com.liferay.portal.SystemException, 
230             com.liferay.portlet.journal.NoSuchTemplateException;
231 
232     public void removeByG_T(long groupId, java.lang.String templateId)
233         throws com.liferay.portal.SystemException, 
234             com.liferay.portlet.journal.NoSuchTemplateException;
235 
236     public void removeByG_S(long groupId, java.lang.String structureId)
237         throws com.liferay.portal.SystemException;
238 
239     public void removeAll() throws com.liferay.portal.SystemException;
240 
241     public int countByUuid(java.lang.String uuid)
242         throws com.liferay.portal.SystemException;
243 
244     public int countByUUID_G(java.lang.String uuid, long groupId)
245         throws com.liferay.portal.SystemException;
246 
247     public int countByGroupId(long groupId)
248         throws com.liferay.portal.SystemException;
249 
250     public int countByTemplateId(java.lang.String templateId)
251         throws com.liferay.portal.SystemException;
252 
253     public int countBySmallImageId(long smallImageId)
254         throws com.liferay.portal.SystemException;
255 
256     public int countByG_T(long groupId, java.lang.String templateId)
257         throws com.liferay.portal.SystemException;
258 
259     public int countByG_S(long groupId, java.lang.String structureId)
260         throws com.liferay.portal.SystemException;
261 
262     public int countAll() throws com.liferay.portal.SystemException;
263 }