1
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
37 public class WorkflowDefinitionLinkUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(WorkflowDefinitionLink workflowDefinitionLink) {
49 getPersistence().clearCache(workflowDefinitionLink);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<WorkflowDefinitionLink> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<WorkflowDefinitionLink> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static WorkflowDefinitionLink remove(
81 WorkflowDefinitionLink workflowDefinitionLink)
82 throws SystemException {
83 return getPersistence().remove(workflowDefinitionLink);
84 }
85
86
89 public static WorkflowDefinitionLink update(
90 WorkflowDefinitionLink workflowDefinitionLink, boolean merge)
91 throws SystemException {
92 return getPersistence().update(workflowDefinitionLink, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
97 getPersistence().cacheResult(workflowDefinitionLink);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks) {
102 getPersistence().cacheResult(workflowDefinitionLinks);
103 }
104
105 public static com.liferay.portal.model.WorkflowDefinitionLink create(
106 long workflowDefinitionLinkId) {
107 return getPersistence().create(workflowDefinitionLinkId);
108 }
109
110 public static com.liferay.portal.model.WorkflowDefinitionLink remove(
111 long workflowDefinitionLinkId)
112 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
113 com.liferay.portal.kernel.exception.SystemException {
114 return getPersistence().remove(workflowDefinitionLinkId);
115 }
116
117 public static com.liferay.portal.model.WorkflowDefinitionLink updateImpl(
118 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().updateImpl(workflowDefinitionLink, merge);
122 }
123
124 public static com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey(
125 long workflowDefinitionLinkId)
126 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
127 com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence().findByPrimaryKey(workflowDefinitionLinkId);
129 }
130
131 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey(
132 long workflowDefinitionLinkId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().fetchByPrimaryKey(workflowDefinitionLinkId);
135 }
136
137 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
138 long companyId)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByCompanyId(companyId);
141 }
142
143 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
144 long companyId, int start, int end)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().findByCompanyId(companyId, start, end);
147 }
148
149 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
150 long companyId, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence()
154 .findByCompanyId(companyId, start, end, orderByComparator);
155 }
156
157 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
158 long companyId,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
161 com.liferay.portal.kernel.exception.SystemException {
162 return getPersistence()
163 .findByCompanyId_First(companyId, orderByComparator);
164 }
165
166 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
167 long companyId,
168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
170 com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence()
172 .findByCompanyId_Last(companyId, orderByComparator);
173 }
174
175 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
176 long workflowDefinitionLinkId, long companyId,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence()
181 .findByCompanyId_PrevAndNext(workflowDefinitionLinkId,
182 companyId, orderByComparator);
183 }
184
185 public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
186 long groupId, long companyId, long classNameId)
187 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByG_C_C(groupId, companyId, classNameId);
190 }
191
192 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
193 long groupId, long companyId, long classNameId)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().fetchByG_C_C(groupId, companyId, classNameId);
196 }
197
198 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
199 long groupId, long companyId, long classNameId,
200 boolean retrieveFromCache)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getPersistence()
203 .fetchByG_C_C(groupId, companyId, classNameId,
204 retrieveFromCache);
205 }
206
207 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
208 long companyId, java.lang.String workflowDefinitionName,
209 int workflowDefinitionVersion)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence()
212 .findByC_W_W(companyId, workflowDefinitionName,
213 workflowDefinitionVersion);
214 }
215
216 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
217 long companyId, java.lang.String workflowDefinitionName,
218 int workflowDefinitionVersion, int start, int end)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence()
221 .findByC_W_W(companyId, workflowDefinitionName,
222 workflowDefinitionVersion, start, end);
223 }
224
225 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
226 long companyId, java.lang.String workflowDefinitionName,
227 int workflowDefinitionVersion, int start, int end,
228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getPersistence()
231 .findByC_W_W(companyId, workflowDefinitionName,
232 workflowDefinitionVersion, start, end, orderByComparator);
233 }
234
235 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
236 long companyId, java.lang.String workflowDefinitionName,
237 int workflowDefinitionVersion,
238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
240 com.liferay.portal.kernel.exception.SystemException {
241 return getPersistence()
242 .findByC_W_W_First(companyId, workflowDefinitionName,
243 workflowDefinitionVersion, orderByComparator);
244 }
245
246 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
247 long companyId, java.lang.String workflowDefinitionName,
248 int workflowDefinitionVersion,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence()
253 .findByC_W_W_Last(companyId, workflowDefinitionName,
254 workflowDefinitionVersion, orderByComparator);
255 }
256
257 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
258 long workflowDefinitionLinkId, long companyId,
259 java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
262 com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence()
264 .findByC_W_W_PrevAndNext(workflowDefinitionLinkId,
265 companyId, workflowDefinitionName, workflowDefinitionVersion,
266 orderByComparator);
267 }
268
269 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
270 throws com.liferay.portal.kernel.exception.SystemException {
271 return getPersistence().findAll();
272 }
273
274 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
275 int start, int end)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getPersistence().findAll(start, end);
278 }
279
280 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
281 int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return getPersistence().findAll(start, end, orderByComparator);
285 }
286
287 public static void removeByCompanyId(long companyId)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 getPersistence().removeByCompanyId(companyId);
290 }
291
292 public static void removeByG_C_C(long groupId, long companyId,
293 long classNameId)
294 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
295 com.liferay.portal.kernel.exception.SystemException {
296 getPersistence().removeByG_C_C(groupId, companyId, classNameId);
297 }
298
299 public static void removeByC_W_W(long companyId,
300 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 getPersistence()
303 .removeByC_W_W(companyId, workflowDefinitionName,
304 workflowDefinitionVersion);
305 }
306
307 public static void removeAll()
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getPersistence().removeAll();
310 }
311
312 public static int countByCompanyId(long companyId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().countByCompanyId(companyId);
315 }
316
317 public static int countByG_C_C(long groupId, long companyId,
318 long classNameId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().countByG_C_C(groupId, companyId, classNameId);
321 }
322
323 public static int countByC_W_W(long companyId,
324 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getPersistence()
327 .countByC_W_W(companyId, workflowDefinitionName,
328 workflowDefinitionVersion);
329 }
330
331 public static int countAll()
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getPersistence().countAll();
334 }
335
336 public static WorkflowDefinitionLinkPersistence getPersistence() {
337 if (_persistence == null) {
338 _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName());
339 }
340
341 return _persistence;
342 }
343
344 public void setPersistence(WorkflowDefinitionLinkPersistence persistence) {
345 _persistence = persistence;
346 }
347
348 private static WorkflowDefinitionLinkPersistence _persistence;
349 }