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.WorkflowInstanceLink;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="WorkflowInstanceLinkUtil.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       WorkflowInstanceLinkPersistence
34   * @see       WorkflowInstanceLinkPersistenceImpl
35   * @generated
36   */
37  public class WorkflowInstanceLinkUtil {
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#clearCache(WorkflowInstanceLink)
47       */
48      public static void clearCache(WorkflowInstanceLink workflowInstanceLink) {
49          getPersistence().clearCache(workflowInstanceLink);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<WorkflowInstanceLink> findWithDynamicQuery(
64          DynamicQuery dynamicQuery) throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<WorkflowInstanceLink> findWithDynamicQuery(
72          DynamicQuery dynamicQuery, int start, int end)
73          throws SystemException {
74          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
79       */
80      public static WorkflowInstanceLink remove(
81          WorkflowInstanceLink workflowInstanceLink) throws SystemException {
82          return getPersistence().remove(workflowInstanceLink);
83      }
84  
85      /**
86       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
87       */
88      public static WorkflowInstanceLink update(
89          WorkflowInstanceLink workflowInstanceLink, boolean merge)
90          throws SystemException {
91          return getPersistence().update(workflowInstanceLink, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
96          getPersistence().cacheResult(workflowInstanceLink);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portal.model.WorkflowInstanceLink> workflowInstanceLinks) {
101         getPersistence().cacheResult(workflowInstanceLinks);
102     }
103 
104     public static com.liferay.portal.model.WorkflowInstanceLink create(
105         long workflowInstanceLinkId) {
106         return getPersistence().create(workflowInstanceLinkId);
107     }
108 
109     public static com.liferay.portal.model.WorkflowInstanceLink remove(
110         long workflowInstanceLinkId)
111         throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
112             com.liferay.portal.kernel.exception.SystemException {
113         return getPersistence().remove(workflowInstanceLinkId);
114     }
115 
116     public static com.liferay.portal.model.WorkflowInstanceLink updateImpl(
117         com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(workflowInstanceLink, merge);
121     }
122 
123     public static com.liferay.portal.model.WorkflowInstanceLink findByPrimaryKey(
124         long workflowInstanceLinkId)
125         throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
126             com.liferay.portal.kernel.exception.SystemException {
127         return getPersistence().findByPrimaryKey(workflowInstanceLinkId);
128     }
129 
130     public static com.liferay.portal.model.WorkflowInstanceLink fetchByPrimaryKey(
131         long workflowInstanceLinkId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(workflowInstanceLinkId);
134     }
135 
136     public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
137         long groupId, long companyId, long classNameId, long classPK)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence()
140                    .findByG_C_C_C(groupId, companyId, classNameId, classPK);
141     }
142 
143     public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
144         long groupId, long companyId, long classNameId, long classPK,
145         int start, int end)
146         throws com.liferay.portal.kernel.exception.SystemException {
147         return getPersistence()
148                    .findByG_C_C_C(groupId, companyId, classNameId, classPK,
149             start, end);
150     }
151 
152     public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
153         long groupId, long companyId, long classNameId, long classPK,
154         int start, int end,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.kernel.exception.SystemException {
157         return getPersistence()
158                    .findByG_C_C_C(groupId, companyId, classNameId, classPK,
159             start, end, orderByComparator);
160     }
161 
162     public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_First(
163         long groupId, long companyId, long classNameId, long classPK,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
166             com.liferay.portal.kernel.exception.SystemException {
167         return getPersistence()
168                    .findByG_C_C_C_First(groupId, companyId, classNameId,
169             classPK, orderByComparator);
170     }
171 
172     public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_Last(
173         long groupId, long companyId, long classNameId, long classPK,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
176             com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence()
178                    .findByG_C_C_C_Last(groupId, companyId, classNameId,
179             classPK, orderByComparator);
180     }
181 
182     public static com.liferay.portal.model.WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(
183         long workflowInstanceLinkId, long groupId, long companyId,
184         long classNameId, long classPK,
185         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186         throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
187             com.liferay.portal.kernel.exception.SystemException {
188         return getPersistence()
189                    .findByG_C_C_C_PrevAndNext(workflowInstanceLinkId, groupId,
190             companyId, classNameId, classPK, orderByComparator);
191     }
192 
193     public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll()
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return getPersistence().findAll();
196     }
197 
198     public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
199         int start, int end)
200         throws com.liferay.portal.kernel.exception.SystemException {
201         return getPersistence().findAll(start, end);
202     }
203 
204     public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
205         int start, int end,
206         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findAll(start, end, orderByComparator);
209     }
210 
211     public static void removeByG_C_C_C(long groupId, long companyId,
212         long classNameId, long classPK)
213         throws com.liferay.portal.kernel.exception.SystemException {
214         getPersistence()
215             .removeByG_C_C_C(groupId, companyId, classNameId, classPK);
216     }
217 
218     public static void removeAll()
219         throws com.liferay.portal.kernel.exception.SystemException {
220         getPersistence().removeAll();
221     }
222 
223     public static int countByG_C_C_C(long groupId, long companyId,
224         long classNameId, long classPK)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getPersistence()
227                    .countByG_C_C_C(groupId, companyId, classNameId, classPK);
228     }
229 
230     public static int countAll()
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return getPersistence().countAll();
233     }
234 
235     public static WorkflowInstanceLinkPersistence getPersistence() {
236         if (_persistence == null) {
237             _persistence = (WorkflowInstanceLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkPersistence.class.getName());
238         }
239 
240         return _persistence;
241     }
242 
243     public void setPersistence(WorkflowInstanceLinkPersistence persistence) {
244         _persistence = persistence;
245     }
246 
247     private static WorkflowInstanceLinkPersistence _persistence;
248 }