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 List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
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
64 public static WorkflowDefinitionLink remove(
65 WorkflowDefinitionLink workflowDefinitionLink)
66 throws SystemException {
67 return getPersistence().remove(workflowDefinitionLink);
68 }
69
70
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 orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence()
138 .findByCompanyId(companyId, start, end, orderByComparator);
139 }
140
141 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
142 long companyId,
143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence()
147 .findByCompanyId_First(companyId, orderByComparator);
148 }
149
150 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
151 long companyId,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
154 com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence()
156 .findByCompanyId_Last(companyId, orderByComparator);
157 }
158
159 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
160 long workflowDefinitionLinkId, long companyId,
161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence()
165 .findByCompanyId_PrevAndNext(workflowDefinitionLinkId,
166 companyId, orderByComparator);
167 }
168
169 public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
170 long groupId, long companyId, long classNameId)
171 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByG_C_C(groupId, companyId, classNameId);
174 }
175
176 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
177 long groupId, long companyId, long classNameId)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().fetchByG_C_C(groupId, companyId, classNameId);
180 }
181
182 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
183 long groupId, long companyId, long classNameId,
184 boolean retrieveFromCache)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getPersistence()
187 .fetchByG_C_C(groupId, companyId, classNameId,
188 retrieveFromCache);
189 }
190
191 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
192 long companyId, java.lang.String workflowDefinitionName,
193 int workflowDefinitionVersion)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence()
196 .findByC_W_W(companyId, workflowDefinitionName,
197 workflowDefinitionVersion);
198 }
199
200 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
201 long companyId, java.lang.String workflowDefinitionName,
202 int workflowDefinitionVersion, int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence()
205 .findByC_W_W(companyId, workflowDefinitionName,
206 workflowDefinitionVersion, start, end);
207 }
208
209 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
210 long companyId, java.lang.String workflowDefinitionName,
211 int workflowDefinitionVersion, int start, int end,
212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence()
215 .findByC_W_W(companyId, workflowDefinitionName,
216 workflowDefinitionVersion, start, end, orderByComparator);
217 }
218
219 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
220 long companyId, java.lang.String workflowDefinitionName,
221 int workflowDefinitionVersion,
222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
224 com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence()
226 .findByC_W_W_First(companyId, workflowDefinitionName,
227 workflowDefinitionVersion, orderByComparator);
228 }
229
230 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
231 long companyId, java.lang.String workflowDefinitionName,
232 int workflowDefinitionVersion,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence()
237 .findByC_W_W_Last(companyId, workflowDefinitionName,
238 workflowDefinitionVersion, orderByComparator);
239 }
240
241 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
242 long workflowDefinitionLinkId, long companyId,
243 java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
246 com.liferay.portal.kernel.exception.SystemException {
247 return getPersistence()
248 .findByC_W_W_PrevAndNext(workflowDefinitionLinkId,
249 companyId, workflowDefinitionName, workflowDefinitionVersion,
250 orderByComparator);
251 }
252
253 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().findAll();
256 }
257
258 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
259 int start, int end)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence().findAll(start, end);
262 }
263
264 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
265 int start, int end,
266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().findAll(start, end, orderByComparator);
269 }
270
271 public static void removeByCompanyId(long companyId)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 getPersistence().removeByCompanyId(companyId);
274 }
275
276 public static void removeByG_C_C(long groupId, long companyId,
277 long classNameId)
278 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
279 com.liferay.portal.kernel.exception.SystemException {
280 getPersistence().removeByG_C_C(groupId, companyId, classNameId);
281 }
282
283 public static void removeByC_W_W(long companyId,
284 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getPersistence()
287 .removeByC_W_W(companyId, workflowDefinitionName,
288 workflowDefinitionVersion);
289 }
290
291 public static void removeAll()
292 throws com.liferay.portal.kernel.exception.SystemException {
293 getPersistence().removeAll();
294 }
295
296 public static int countByCompanyId(long companyId)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence().countByCompanyId(companyId);
299 }
300
301 public static int countByG_C_C(long groupId, long companyId,
302 long classNameId)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence().countByG_C_C(groupId, companyId, classNameId);
305 }
306
307 public static int countByC_W_W(long companyId,
308 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getPersistence()
311 .countByC_W_W(companyId, workflowDefinitionName,
312 workflowDefinitionVersion);
313 }
314
315 public static int countAll()
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getPersistence().countAll();
318 }
319
320 public static WorkflowDefinitionLinkPersistence getPersistence() {
321 if (_persistence == null) {
322 _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName());
323 }
324
325 return _persistence;
326 }
327
328 public void setPersistence(WorkflowDefinitionLinkPersistence persistence) {
329 _persistence = persistence;
330 }
331
332 private static WorkflowDefinitionLinkPersistence _persistence;
333 }