1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.WorkflowDefinitionLink;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="WorkflowDefinitionLinkUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       WorkflowDefinitionLinkPersistence
34   * @see       WorkflowDefinitionLinkPersistenceImpl
35   * @generated
36   */
37  public class WorkflowDefinitionLinkUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static WorkflowDefinitionLink remove(
65          WorkflowDefinitionLink workflowDefinitionLink)
66          throws SystemException {
67          return getPersistence().remove(workflowDefinitionLink);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static WorkflowDefinitionLink update(
74          WorkflowDefinitionLink workflowDefinitionLink, boolean merge)
75          throws SystemException {
76          return getPersistence().update(workflowDefinitionLink, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
81          getPersistence().cacheResult(workflowDefinitionLink);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks) {
86          getPersistence().cacheResult(workflowDefinitionLinks);
87      }
88  
89      public static com.liferay.portal.model.WorkflowDefinitionLink create(
90          long workflowDefinitionLinkId) {
91          return getPersistence().create(workflowDefinitionLinkId);
92      }
93  
94      public static com.liferay.portal.model.WorkflowDefinitionLink remove(
95          long workflowDefinitionLinkId)
96          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
97              com.liferay.portal.kernel.exception.SystemException {
98          return getPersistence().remove(workflowDefinitionLinkId);
99      }
100 
101     public static com.liferay.portal.model.WorkflowDefinitionLink updateImpl(
102         com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(workflowDefinitionLink, merge);
106     }
107 
108     public static com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey(
109         long workflowDefinitionLinkId)
110         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
111             com.liferay.portal.kernel.exception.SystemException {
112         return getPersistence().findByPrimaryKey(workflowDefinitionLinkId);
113     }
114 
115     public static com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey(
116         long workflowDefinitionLinkId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(workflowDefinitionLinkId);
119     }
120 
121     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
122         long companyId)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByCompanyId(companyId);
125     }
126 
127     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
128         long companyId, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByCompanyId(companyId, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
134         long companyId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence().findByCompanyId(companyId, start, end, obc);
138     }
139 
140     public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
141         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
143             com.liferay.portal.kernel.exception.SystemException {
144         return getPersistence().findByCompanyId_First(companyId, obc);
145     }
146 
147     public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
148         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
150             com.liferay.portal.kernel.exception.SystemException {
151         return getPersistence().findByCompanyId_Last(companyId, obc);
152     }
153 
154     public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
155         long workflowDefinitionLinkId, long companyId,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
158             com.liferay.portal.kernel.exception.SystemException {
159         return getPersistence()
160                    .findByCompanyId_PrevAndNext(workflowDefinitionLinkId,
161             companyId, obc);
162     }
163 
164     public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
165         long groupId, long companyId, long classNameId)
166         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
167             com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().findByG_C_C(groupId, companyId, classNameId);
169     }
170 
171     public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
172         long groupId, long companyId, long classNameId)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().fetchByG_C_C(groupId, companyId, classNameId);
175     }
176 
177     public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
178         long groupId, long companyId, long classNameId,
179         boolean retrieveFromCache)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence()
182                    .fetchByG_C_C(groupId, companyId, classNameId,
183             retrieveFromCache);
184     }
185 
186     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
187         throws com.liferay.portal.kernel.exception.SystemException {
188         return getPersistence().findAll();
189     }
190 
191     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
192         int start, int end)
193         throws com.liferay.portal.kernel.exception.SystemException {
194         return getPersistence().findAll(start, end);
195     }
196 
197     public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
198         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence().findAll(start, end, obc);
201     }
202 
203     public static void removeByCompanyId(long companyId)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         getPersistence().removeByCompanyId(companyId);
206     }
207 
208     public static void removeByG_C_C(long groupId, long companyId,
209         long classNameId)
210         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
211             com.liferay.portal.kernel.exception.SystemException {
212         getPersistence().removeByG_C_C(groupId, companyId, classNameId);
213     }
214 
215     public static void removeAll()
216         throws com.liferay.portal.kernel.exception.SystemException {
217         getPersistence().removeAll();
218     }
219 
220     public static int countByCompanyId(long companyId)
221         throws com.liferay.portal.kernel.exception.SystemException {
222         return getPersistence().countByCompanyId(companyId);
223     }
224 
225     public static int countByG_C_C(long groupId, long companyId,
226         long classNameId)
227         throws com.liferay.portal.kernel.exception.SystemException {
228         return getPersistence().countByG_C_C(groupId, companyId, classNameId);
229     }
230 
231     public static int countAll()
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().countAll();
234     }
235 
236     public static WorkflowDefinitionLinkPersistence getPersistence() {
237         if (_persistence == null) {
238             _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName());
239         }
240 
241         return _persistence;
242     }
243 
244     public void setPersistence(WorkflowDefinitionLinkPersistence persistence) {
245         _persistence = persistence;
246     }
247 
248     private static WorkflowDefinitionLinkPersistence _persistence;
249 }