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.portal.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.model.WorkflowDefinitionLink;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * @author    Brian Wing Shun Chan
028     * @see       WorkflowDefinitionLinkPersistence
029     * @see       WorkflowDefinitionLinkPersistenceImpl
030     * @generated
031     */
032    public class WorkflowDefinitionLinkUtil {
033            /**
034             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
035             */
036            public static void clearCache() {
037                    getPersistence().clearCache();
038            }
039    
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
042             */
043            public static void clearCache(WorkflowDefinitionLink workflowDefinitionLink) {
044                    getPersistence().clearCache(workflowDefinitionLink);
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
049             */
050            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051                    throws SystemException {
052                    return getPersistence().countWithDynamicQuery(dynamicQuery);
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
057             */
058            public static List<WorkflowDefinitionLink> findWithDynamicQuery(
059                    DynamicQuery dynamicQuery) throws SystemException {
060                    return getPersistence().findWithDynamicQuery(dynamicQuery);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
065             */
066            public static List<WorkflowDefinitionLink> findWithDynamicQuery(
067                    DynamicQuery dynamicQuery, int start, int end)
068                    throws SystemException {
069                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
074             */
075            public static List<WorkflowDefinitionLink> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery, int start, int end,
077                    OrderByComparator orderByComparator) throws SystemException {
078                    return getPersistence()
079                                       .findWithDynamicQuery(dynamicQuery, start, end,
080                            orderByComparator);
081            }
082    
083            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
085             */
086            public static WorkflowDefinitionLink remove(
087                    WorkflowDefinitionLink workflowDefinitionLink)
088                    throws SystemException {
089                    return getPersistence().remove(workflowDefinitionLink);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static WorkflowDefinitionLink update(
096                    WorkflowDefinitionLink workflowDefinitionLink, boolean merge)
097                    throws SystemException {
098                    return getPersistence().update(workflowDefinitionLink, merge);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
103             */
104            public static WorkflowDefinitionLink update(
105                    WorkflowDefinitionLink workflowDefinitionLink, boolean merge,
106                    ServiceContext serviceContext) throws SystemException {
107                    return getPersistence()
108                                       .update(workflowDefinitionLink, merge, serviceContext);
109            }
110    
111            public static void cacheResult(
112                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
113                    getPersistence().cacheResult(workflowDefinitionLink);
114            }
115    
116            public static void cacheResult(
117                    java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks) {
118                    getPersistence().cacheResult(workflowDefinitionLinks);
119            }
120    
121            public static com.liferay.portal.model.WorkflowDefinitionLink create(
122                    long workflowDefinitionLinkId) {
123                    return getPersistence().create(workflowDefinitionLinkId);
124            }
125    
126            public static com.liferay.portal.model.WorkflowDefinitionLink remove(
127                    long workflowDefinitionLinkId)
128                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    return getPersistence().remove(workflowDefinitionLinkId);
131            }
132    
133            public static com.liferay.portal.model.WorkflowDefinitionLink updateImpl(
134                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
135                    boolean merge)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getPersistence().updateImpl(workflowDefinitionLink, merge);
138            }
139    
140            public static com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey(
141                    long workflowDefinitionLinkId)
142                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    return getPersistence().findByPrimaryKey(workflowDefinitionLinkId);
145            }
146    
147            public static com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey(
148                    long workflowDefinitionLinkId)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getPersistence().fetchByPrimaryKey(workflowDefinitionLinkId);
151            }
152    
153            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
154                    long companyId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getPersistence().findByCompanyId(companyId);
157            }
158    
159            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
160                    long companyId, int start, int end)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().findByCompanyId(companyId, start, end);
163            }
164    
165            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
166                    long companyId, int start, int end,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return getPersistence()
170                                       .findByCompanyId(companyId, start, end, orderByComparator);
171            }
172    
173            public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
174                    long companyId,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return getPersistence()
179                                       .findByCompanyId_First(companyId, orderByComparator);
180            }
181    
182            public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
183                    long companyId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return getPersistence()
188                                       .findByCompanyId_Last(companyId, orderByComparator);
189            }
190    
191            public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
192                    long workflowDefinitionLinkId, long companyId,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence()
197                                       .findByCompanyId_PrevAndNext(workflowDefinitionLinkId,
198                            companyId, orderByComparator);
199            }
200    
201            public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
202                    long groupId, long companyId, long classNameId)
203                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByG_C_C(groupId, companyId, classNameId);
206            }
207    
208            public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
209                    long groupId, long companyId, long classNameId)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence().fetchByG_C_C(groupId, companyId, classNameId);
212            }
213    
214            public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
215                    long groupId, long companyId, long classNameId,
216                    boolean retrieveFromCache)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getPersistence()
219                                       .fetchByG_C_C(groupId, companyId, classNameId,
220                            retrieveFromCache);
221            }
222    
223            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
224                    long companyId, java.lang.String workflowDefinitionName,
225                    int workflowDefinitionVersion)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence()
228                                       .findByC_W_W(companyId, workflowDefinitionName,
229                            workflowDefinitionVersion);
230            }
231    
232            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
233                    long companyId, java.lang.String workflowDefinitionName,
234                    int workflowDefinitionVersion, int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return getPersistence()
237                                       .findByC_W_W(companyId, workflowDefinitionName,
238                            workflowDefinitionVersion, start, end);
239            }
240    
241            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
242                    long companyId, java.lang.String workflowDefinitionName,
243                    int workflowDefinitionVersion, int start, int end,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence()
247                                       .findByC_W_W(companyId, workflowDefinitionName,
248                            workflowDefinitionVersion, start, end, orderByComparator);
249            }
250    
251            public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
252                    long companyId, java.lang.String workflowDefinitionName,
253                    int workflowDefinitionVersion,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence()
258                                       .findByC_W_W_First(companyId, workflowDefinitionName,
259                            workflowDefinitionVersion, orderByComparator);
260            }
261    
262            public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
263                    long companyId, java.lang.String workflowDefinitionName,
264                    int workflowDefinitionVersion,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return getPersistence()
269                                       .findByC_W_W_Last(companyId, workflowDefinitionName,
270                            workflowDefinitionVersion, orderByComparator);
271            }
272    
273            public static com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
274                    long workflowDefinitionLinkId, long companyId,
275                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence()
280                                       .findByC_W_W_PrevAndNext(workflowDefinitionLinkId,
281                            companyId, workflowDefinitionName, workflowDefinitionVersion,
282                            orderByComparator);
283            }
284    
285            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return getPersistence().findAll();
288            }
289    
290            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
291                    int start, int end)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return getPersistence().findAll(start, end);
294            }
295    
296            public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
297                    int start, int end,
298                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return getPersistence().findAll(start, end, orderByComparator);
301            }
302    
303            public static void removeByCompanyId(long companyId)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    getPersistence().removeByCompanyId(companyId);
306            }
307    
308            public static void removeByG_C_C(long groupId, long companyId,
309                    long classNameId)
310                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    getPersistence().removeByG_C_C(groupId, companyId, classNameId);
313            }
314    
315            public static void removeByC_W_W(long companyId,
316                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    getPersistence()
319                            .removeByC_W_W(companyId, workflowDefinitionName,
320                            workflowDefinitionVersion);
321            }
322    
323            public static void removeAll()
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    getPersistence().removeAll();
326            }
327    
328            public static int countByCompanyId(long companyId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return getPersistence().countByCompanyId(companyId);
331            }
332    
333            public static int countByG_C_C(long groupId, long companyId,
334                    long classNameId)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return getPersistence().countByG_C_C(groupId, companyId, classNameId);
337            }
338    
339            public static int countByC_W_W(long companyId,
340                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence()
343                                       .countByC_W_W(companyId, workflowDefinitionName,
344                            workflowDefinitionVersion);
345            }
346    
347            public static int countAll()
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return getPersistence().countAll();
350            }
351    
352            public static WorkflowDefinitionLinkPersistence getPersistence() {
353                    if (_persistence == null) {
354                            _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName());
355                    }
356    
357                    return _persistence;
358            }
359    
360            public void setPersistence(WorkflowDefinitionLinkPersistence persistence) {
361                    _persistence = persistence;
362            }
363    
364            private static WorkflowDefinitionLinkPersistence _persistence;
365    }