001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.tasks.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.tasks.model.TasksProposal;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       TasksProposalPersistence
030     * @see       TasksProposalPersistenceImpl
031     * @generated
032     */
033    public class TasksProposalUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(TasksProposal tasksProposal) {
045                    getPersistence().clearCache(tasksProposal);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<TasksProposal> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<TasksProposal> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<TasksProposal> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static TasksProposal remove(TasksProposal tasksProposal)
088                    throws SystemException {
089                    return getPersistence().remove(tasksProposal);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static TasksProposal update(TasksProposal tasksProposal,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(tasksProposal, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static TasksProposal update(TasksProposal tasksProposal,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(tasksProposal, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal) {
110                    getPersistence().cacheResult(tasksProposal);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals) {
115                    getPersistence().cacheResult(tasksProposals);
116            }
117    
118            public static com.liferay.portlet.tasks.model.TasksProposal create(
119                    long proposalId) {
120                    return getPersistence().create(proposalId);
121            }
122    
123            public static com.liferay.portlet.tasks.model.TasksProposal remove(
124                    long proposalId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.tasks.NoSuchProposalException {
127                    return getPersistence().remove(proposalId);
128            }
129    
130            public static com.liferay.portlet.tasks.model.TasksProposal updateImpl(
131                    com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(tasksProposal, merge);
135            }
136    
137            public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
138                    long proposalId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.tasks.NoSuchProposalException {
141                    return getPersistence().findByPrimaryKey(proposalId);
142            }
143    
144            public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
145                    long proposalId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(proposalId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
151                    long groupId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByGroupId(groupId);
154            }
155    
156            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
157                    long groupId, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByGroupId(groupId, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
163                    long groupId, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByGroupId(groupId, start, end, orderByComparator);
168            }
169    
170            public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
171                    long groupId,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.tasks.NoSuchProposalException {
175                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
176            }
177    
178            public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
179                    long groupId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.tasks.NoSuchProposalException {
183                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184            }
185    
186            public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
187                    long proposalId, long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.tasks.NoSuchProposalException {
191                    return getPersistence()
192                                       .findByGroupId_PrevAndNext(proposalId, groupId,
193                            orderByComparator);
194            }
195    
196            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId(
197                    long groupId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().filterFindByGroupId(groupId);
200            }
201    
202            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId(
203                    long groupId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().filterFindByGroupId(groupId, start, end);
206            }
207    
208            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId(
209                    long groupId, int start, int end,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence()
213                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
214            }
215    
216            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
217                    long groupId, long userId)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getPersistence().findByG_U(groupId, userId);
220            }
221    
222            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
223                    long groupId, long userId, int start, int end)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return getPersistence().findByG_U(groupId, userId, start, end);
226            }
227    
228            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
229                    long groupId, long userId, int start, int end,
230                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence()
233                                       .findByG_U(groupId, userId, start, end, orderByComparator);
234            }
235    
236            public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
237                    long groupId, long userId,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException,
240                            com.liferay.portlet.tasks.NoSuchProposalException {
241                    return getPersistence()
242                                       .findByG_U_First(groupId, userId, orderByComparator);
243            }
244    
245            public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
246                    long groupId, long userId,
247                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248                    throws com.liferay.portal.kernel.exception.SystemException,
249                            com.liferay.portlet.tasks.NoSuchProposalException {
250                    return getPersistence()
251                                       .findByG_U_Last(groupId, userId, orderByComparator);
252            }
253    
254            public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
255                    long proposalId, long groupId, long userId,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException,
258                            com.liferay.portlet.tasks.NoSuchProposalException {
259                    return getPersistence()
260                                       .findByG_U_PrevAndNext(proposalId, groupId, userId,
261                            orderByComparator);
262            }
263    
264            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U(
265                    long groupId, long userId)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    return getPersistence().filterFindByG_U(groupId, userId);
268            }
269    
270            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U(
271                    long groupId, long userId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return getPersistence().filterFindByG_U(groupId, userId, start, end);
274            }
275    
276            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U(
277                    long groupId, long userId, int start, int end,
278                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return getPersistence()
281                                       .filterFindByG_U(groupId, userId, start, end,
282                            orderByComparator);
283            }
284    
285            public static com.liferay.portlet.tasks.model.TasksProposal findByC_C(
286                    long classNameId, java.lang.String classPK)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.tasks.NoSuchProposalException {
289                    return getPersistence().findByC_C(classNameId, classPK);
290            }
291    
292            public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
293                    long classNameId, java.lang.String classPK)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    return getPersistence().fetchByC_C(classNameId, classPK);
296            }
297    
298            public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
299                    long classNameId, java.lang.String classPK, boolean retrieveFromCache)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getPersistence()
302                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
303            }
304    
305            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().findAll();
308            }
309    
310            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
311                    int start, int end)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return getPersistence().findAll(start, end);
314            }
315    
316            public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
317                    int start, int end,
318                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return getPersistence().findAll(start, end, orderByComparator);
321            }
322    
323            public static void removeByGroupId(long groupId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    getPersistence().removeByGroupId(groupId);
326            }
327    
328            public static void removeByG_U(long groupId, long userId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    getPersistence().removeByG_U(groupId, userId);
331            }
332    
333            public static void removeByC_C(long classNameId, java.lang.String classPK)
334                    throws com.liferay.portal.kernel.exception.SystemException,
335                            com.liferay.portlet.tasks.NoSuchProposalException {
336                    getPersistence().removeByC_C(classNameId, classPK);
337            }
338    
339            public static void removeAll()
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    getPersistence().removeAll();
342            }
343    
344            public static int countByGroupId(long groupId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return getPersistence().countByGroupId(groupId);
347            }
348    
349            public static int filterCountByGroupId(long groupId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return getPersistence().filterCountByGroupId(groupId);
352            }
353    
354            public static int countByG_U(long groupId, long userId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().countByG_U(groupId, userId);
357            }
358    
359            public static int filterCountByG_U(long groupId, long userId)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().filterCountByG_U(groupId, userId);
362            }
363    
364            public static int countByC_C(long classNameId, java.lang.String classPK)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getPersistence().countByC_C(classNameId, classPK);
367            }
368    
369            public static int countAll()
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence().countAll();
372            }
373    
374            public static TasksProposalPersistence getPersistence() {
375                    if (_persistence == null) {
376                            _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
377                    }
378    
379                    return _persistence;
380            }
381    
382            public void setPersistence(TasksProposalPersistence persistence) {
383                    _persistence = persistence;
384            }
385    
386            private static TasksProposalPersistence _persistence;
387    }