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  
26  /**
27   * <a href="JournalStructureUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       JournalStructurePersistence
36   * @see       JournalStructurePersistenceImpl
37   * @generated
38   */
39  public class JournalStructureUtil {
40      public static void cacheResult(
41          com.liferay.portlet.journal.model.JournalStructure journalStructure) {
42          getPersistence().cacheResult(journalStructure);
43      }
44  
45      public static void cacheResult(
46          java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures) {
47          getPersistence().cacheResult(journalStructures);
48      }
49  
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      public static com.liferay.portlet.journal.model.JournalStructure create(
55          long id) {
56          return getPersistence().create(id);
57      }
58  
59      public static com.liferay.portlet.journal.model.JournalStructure remove(
60          long id)
61          throws com.liferay.portal.SystemException,
62              com.liferay.portlet.journal.NoSuchStructureException {
63          return getPersistence().remove(id);
64      }
65  
66      public static com.liferay.portlet.journal.model.JournalStructure remove(
67          com.liferay.portlet.journal.model.JournalStructure journalStructure)
68          throws com.liferay.portal.SystemException {
69          return getPersistence().remove(journalStructure);
70      }
71  
72      /**
73       * @deprecated Use {@link #update(JournalStructure, boolean merge)}.
74       */
75      public static com.liferay.portlet.journal.model.JournalStructure update(
76          com.liferay.portlet.journal.model.JournalStructure journalStructure)
77          throws com.liferay.portal.SystemException {
78          return getPersistence().update(journalStructure);
79      }
80  
81      /**
82       * Add, update, or merge, the entity. This method also calls the model
83       * listeners to trigger the proper events associated with adding, deleting,
84       * or updating an entity.
85       *
86       * @param  journalStructure the entity to add, update, or merge
87       * @param  merge boolean value for whether to merge the entity. The default
88       *         value is false. Setting merge to true is more expensive and
89       *         should only be true when journalStructure is transient. See
90       *         LEP-5473 for a detailed discussion of this method.
91       * @return the entity that was added, updated, or merged
92       */
93      public static com.liferay.portlet.journal.model.JournalStructure update(
94          com.liferay.portlet.journal.model.JournalStructure journalStructure,
95          boolean merge) throws com.liferay.portal.SystemException {
96          return getPersistence().update(journalStructure, merge);
97      }
98  
99      public static com.liferay.portlet.journal.model.JournalStructure updateImpl(
100         com.liferay.portlet.journal.model.JournalStructure journalStructure,
101         boolean merge) throws com.liferay.portal.SystemException {
102         return getPersistence().updateImpl(journalStructure, merge);
103     }
104 
105     public static com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
106         long id)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.journal.NoSuchStructureException {
109         return getPersistence().findByPrimaryKey(id);
110     }
111 
112     public static com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
113         long id) throws com.liferay.portal.SystemException {
114         return getPersistence().fetchByPrimaryKey(id);
115     }
116 
117     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
118         java.lang.String uuid) throws com.liferay.portal.SystemException {
119         return getPersistence().findByUuid(uuid);
120     }
121 
122     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
123         java.lang.String uuid, int start, int end)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByUuid(uuid, start, end);
126     }
127 
128     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
129         java.lang.String uuid, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByUuid(uuid, start, end, obc);
133     }
134 
135     public static com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
136         java.lang.String uuid,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.journal.NoSuchStructureException {
140         return getPersistence().findByUuid_First(uuid, obc);
141     }
142 
143     public static com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
144         java.lang.String uuid,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.journal.NoSuchStructureException {
148         return getPersistence().findByUuid_Last(uuid, obc);
149     }
150 
151     public static com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
152         long id, java.lang.String uuid,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchStructureException {
156         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
157     }
158 
159     public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
160         java.lang.String uuid, long groupId)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.journal.NoSuchStructureException {
163         return getPersistence().findByUUID_G(uuid, groupId);
164     }
165 
166     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
167         java.lang.String uuid, long groupId)
168         throws com.liferay.portal.SystemException {
169         return getPersistence().fetchByUUID_G(uuid, groupId);
170     }
171 
172     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
173         java.lang.String uuid, long groupId, boolean retrieveFromCache)
174         throws com.liferay.portal.SystemException {
175         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
176     }
177 
178     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
179         long groupId) throws com.liferay.portal.SystemException {
180         return getPersistence().findByGroupId(groupId);
181     }
182 
183     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
184         long groupId, int start, int end)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByGroupId(groupId, start, end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
190         long groupId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().findByGroupId(groupId, start, end, obc);
194     }
195 
196     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
197         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.journal.NoSuchStructureException {
200         return getPersistence().findByGroupId_First(groupId, obc);
201     }
202 
203     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
204         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.journal.NoSuchStructureException {
207         return getPersistence().findByGroupId_Last(groupId, obc);
208     }
209 
210     public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
211         long id, long groupId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.journal.NoSuchStructureException {
215         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
219         java.lang.String structureId) throws com.liferay.portal.SystemException {
220         return getPersistence().findByStructureId(structureId);
221     }
222 
223     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
224         java.lang.String structureId, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByStructureId(structureId, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
230         java.lang.String structureId, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findByStructureId(structureId, start, end, obc);
234     }
235 
236     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
237         java.lang.String structureId,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.journal.NoSuchStructureException {
241         return getPersistence().findByStructureId_First(structureId, obc);
242     }
243 
244     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
245         java.lang.String structureId,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.journal.NoSuchStructureException {
249         return getPersistence().findByStructureId_Last(structureId, obc);
250     }
251 
252     public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
253         long id, java.lang.String structureId,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchStructureException {
257         return getPersistence()
258                    .findByStructureId_PrevAndNext(id, structureId, obc);
259     }
260 
261     public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
262         long groupId, java.lang.String structureId)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.journal.NoSuchStructureException {
265         return getPersistence().findByG_S(groupId, structureId);
266     }
267 
268     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
269         long groupId, java.lang.String structureId)
270         throws com.liferay.portal.SystemException {
271         return getPersistence().fetchByG_S(groupId, structureId);
272     }
273 
274     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
275         long groupId, java.lang.String structureId, boolean retrieveFromCache)
276         throws com.liferay.portal.SystemException {
277         return getPersistence()
278                    .fetchByG_S(groupId, structureId, retrieveFromCache);
279     }
280 
281     public static java.util.List<Object> findWithDynamicQuery(
282         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
283         throws com.liferay.portal.SystemException {
284         return getPersistence().findWithDynamicQuery(dynamicQuery);
285     }
286 
287     public static java.util.List<Object> findWithDynamicQuery(
288         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
289         int end) throws com.liferay.portal.SystemException {
290         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
291     }
292 
293     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
294         throws com.liferay.portal.SystemException {
295         return getPersistence().findAll();
296     }
297 
298     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
299         int start, int end) throws com.liferay.portal.SystemException {
300         return getPersistence().findAll(start, end);
301     }
302 
303     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
304         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException {
306         return getPersistence().findAll(start, end, obc);
307     }
308 
309     public static void removeByUuid(java.lang.String uuid)
310         throws com.liferay.portal.SystemException {
311         getPersistence().removeByUuid(uuid);
312     }
313 
314     public static void removeByUUID_G(java.lang.String uuid, long groupId)
315         throws com.liferay.portal.SystemException,
316             com.liferay.portlet.journal.NoSuchStructureException {
317         getPersistence().removeByUUID_G(uuid, groupId);
318     }
319 
320     public static void removeByGroupId(long groupId)
321         throws com.liferay.portal.SystemException {
322         getPersistence().removeByGroupId(groupId);
323     }
324 
325     public static void removeByStructureId(java.lang.String structureId)
326         throws com.liferay.portal.SystemException {
327         getPersistence().removeByStructureId(structureId);
328     }
329 
330     public static void removeByG_S(long groupId, java.lang.String structureId)
331         throws com.liferay.portal.SystemException,
332             com.liferay.portlet.journal.NoSuchStructureException {
333         getPersistence().removeByG_S(groupId, structureId);
334     }
335 
336     public static void removeAll() throws com.liferay.portal.SystemException {
337         getPersistence().removeAll();
338     }
339 
340     public static int countByUuid(java.lang.String uuid)
341         throws com.liferay.portal.SystemException {
342         return getPersistence().countByUuid(uuid);
343     }
344 
345     public static int countByUUID_G(java.lang.String uuid, long groupId)
346         throws com.liferay.portal.SystemException {
347         return getPersistence().countByUUID_G(uuid, groupId);
348     }
349 
350     public static int countByGroupId(long groupId)
351         throws com.liferay.portal.SystemException {
352         return getPersistence().countByGroupId(groupId);
353     }
354 
355     public static int countByStructureId(java.lang.String structureId)
356         throws com.liferay.portal.SystemException {
357         return getPersistence().countByStructureId(structureId);
358     }
359 
360     public static int countByG_S(long groupId, java.lang.String structureId)
361         throws com.liferay.portal.SystemException {
362         return getPersistence().countByG_S(groupId, structureId);
363     }
364 
365     public static int countAll() throws com.liferay.portal.SystemException {
366         return getPersistence().countAll();
367     }
368 
369     public static JournalStructurePersistence getPersistence() {
370         return _persistence;
371     }
372 
373     public void setPersistence(JournalStructurePersistence persistence) {
374         _persistence = persistence;
375     }
376 
377     private static JournalStructurePersistence _persistence;
378 }