1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  /**
23   * <a href="JournalFeedUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class JournalFeedUtil {
29      public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
30          return getPersistence().create(id);
31      }
32  
33      public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
34          throws com.liferay.portal.SystemException,
35              com.liferay.portlet.journal.NoSuchFeedException {
36          return getPersistence().remove(id);
37      }
38  
39      public static com.liferay.portlet.journal.model.JournalFeed remove(
40          com.liferay.portlet.journal.model.JournalFeed journalFeed)
41          throws com.liferay.portal.SystemException {
42          return getPersistence().remove(journalFeed);
43      }
44  
45      /**
46       * @deprecated Use <code>update(JournalFeed journalFeed, boolean merge)</code>.
47       */
48      public static com.liferay.portlet.journal.model.JournalFeed update(
49          com.liferay.portlet.journal.model.JournalFeed journalFeed)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(journalFeed);
52      }
53  
54      /**
55       * Add, update, or merge, the entity. This method also calls the model
56       * listeners to trigger the proper events associated with adding, deleting,
57       * or updating an entity.
58       *
59       * @param        journalFeed the entity to add, update, or merge
60       * @param        merge boolean value for whether to merge the entity. The
61       *                default value is false. Setting merge to true is more
62       *                expensive and should only be true when journalFeed is
63       *                transient. See LEP-5473 for a detailed discussion of this
64       *                method.
65       * @return        true if the portlet can be displayed via Ajax
66       */
67      public static com.liferay.portlet.journal.model.JournalFeed update(
68          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
69          throws com.liferay.portal.SystemException {
70          return getPersistence().update(journalFeed, merge);
71      }
72  
73      public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
74          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
75          throws com.liferay.portal.SystemException {
76          return getPersistence().updateImpl(journalFeed, merge);
77      }
78  
79      public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
80          long id)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.journal.NoSuchFeedException {
83          return getPersistence().findByPrimaryKey(id);
84      }
85  
86      public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
87          long id) throws com.liferay.portal.SystemException {
88          return getPersistence().fetchByPrimaryKey(id);
89      }
90  
91      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
92          java.lang.String uuid) throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid);
94      }
95  
96      public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
97          java.lang.String uuid, int start, int end)
98          throws com.liferay.portal.SystemException {
99          return getPersistence().findByUuid(uuid, start, end);
100     }
101 
102     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
103         java.lang.String uuid, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().findByUuid(uuid, start, end, obc);
107     }
108 
109     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
110         java.lang.String uuid,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.journal.NoSuchFeedException {
114         return getPersistence().findByUuid_First(uuid, obc);
115     }
116 
117     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
118         java.lang.String uuid,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.journal.NoSuchFeedException {
122         return getPersistence().findByUuid_Last(uuid, obc);
123     }
124 
125     public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
126         long id, java.lang.String uuid,
127         com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.journal.NoSuchFeedException {
130         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
131     }
132 
133     public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
134         java.lang.String uuid, long groupId)
135         throws com.liferay.portal.SystemException,
136             com.liferay.portlet.journal.NoSuchFeedException {
137         return getPersistence().findByUUID_G(uuid, groupId);
138     }
139 
140     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
141         java.lang.String uuid, long groupId)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().fetchByUUID_G(uuid, groupId);
144     }
145 
146     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
147         long groupId) throws com.liferay.portal.SystemException {
148         return getPersistence().findByGroupId(groupId);
149     }
150 
151     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
152         long groupId, int start, int end)
153         throws com.liferay.portal.SystemException {
154         return getPersistence().findByGroupId(groupId, start, end);
155     }
156 
157     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
158         long groupId, int start, int end,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException {
161         return getPersistence().findByGroupId(groupId, start, end, obc);
162     }
163 
164     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
165         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.journal.NoSuchFeedException {
168         return getPersistence().findByGroupId_First(groupId, obc);
169     }
170 
171     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
172         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.journal.NoSuchFeedException {
175         return getPersistence().findByGroupId_Last(groupId, obc);
176     }
177 
178     public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
179         long id, long groupId,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.journal.NoSuchFeedException {
183         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
184     }
185 
186     public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
187         long groupId, java.lang.String feedId)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.journal.NoSuchFeedException {
190         return getPersistence().findByG_F(groupId, feedId);
191     }
192 
193     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
194         long groupId, java.lang.String feedId)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().fetchByG_F(groupId, feedId);
197     }
198 
199     public static java.util.List<Object> findWithDynamicQuery(
200         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().findWithDynamicQuery(dynamicQuery);
203     }
204 
205     public static java.util.List<Object> findWithDynamicQuery(
206         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
207         int end) throws com.liferay.portal.SystemException {
208         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
212         throws com.liferay.portal.SystemException {
213         return getPersistence().findAll();
214     }
215 
216     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
217         int start, int end) throws com.liferay.portal.SystemException {
218         return getPersistence().findAll(start, end);
219     }
220 
221     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
222         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException {
224         return getPersistence().findAll(start, end, obc);
225     }
226 
227     public static void removeByUuid(java.lang.String uuid)
228         throws com.liferay.portal.SystemException {
229         getPersistence().removeByUuid(uuid);
230     }
231 
232     public static void removeByUUID_G(java.lang.String uuid, long groupId)
233         throws com.liferay.portal.SystemException,
234             com.liferay.portlet.journal.NoSuchFeedException {
235         getPersistence().removeByUUID_G(uuid, groupId);
236     }
237 
238     public static void removeByGroupId(long groupId)
239         throws com.liferay.portal.SystemException {
240         getPersistence().removeByGroupId(groupId);
241     }
242 
243     public static void removeByG_F(long groupId, java.lang.String feedId)
244         throws com.liferay.portal.SystemException,
245             com.liferay.portlet.journal.NoSuchFeedException {
246         getPersistence().removeByG_F(groupId, feedId);
247     }
248 
249     public static void removeAll() throws com.liferay.portal.SystemException {
250         getPersistence().removeAll();
251     }
252 
253     public static int countByUuid(java.lang.String uuid)
254         throws com.liferay.portal.SystemException {
255         return getPersistence().countByUuid(uuid);
256     }
257 
258     public static int countByUUID_G(java.lang.String uuid, long groupId)
259         throws com.liferay.portal.SystemException {
260         return getPersistence().countByUUID_G(uuid, groupId);
261     }
262 
263     public static int countByGroupId(long groupId)
264         throws com.liferay.portal.SystemException {
265         return getPersistence().countByGroupId(groupId);
266     }
267 
268     public static int countByG_F(long groupId, java.lang.String feedId)
269         throws com.liferay.portal.SystemException {
270         return getPersistence().countByG_F(groupId, feedId);
271     }
272 
273     public static int countAll() throws com.liferay.portal.SystemException {
274         return getPersistence().countAll();
275     }
276 
277     public static JournalFeedPersistence getPersistence() {
278         return _persistence;
279     }
280 
281     public void setPersistence(JournalFeedPersistence persistence) {
282         _persistence = persistence;
283     }
284 
285     private static JournalFeedPersistence _persistence;
286 }