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.model.WorkflowDefinitionLink;
018    
019    /**
020     * The persistence interface for the workflow definition link service.
021     *
022     * <p>
023     * Never modify or reference this interface directly. Always use {@link WorkflowDefinitionLinkUtil} to access the workflow definition link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see WorkflowDefinitionLinkPersistenceImpl
032     * @see WorkflowDefinitionLinkUtil
033     * @generated
034     */
035    public interface WorkflowDefinitionLinkPersistence extends BasePersistence<WorkflowDefinitionLink> {
036            /**
037            * Caches the workflow definition link in the entity cache if it is enabled.
038            *
039            * @param workflowDefinitionLink the workflow definition link to cache
040            */
041            public void cacheResult(
042                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink);
043    
044            /**
045            * Caches the workflow definition links in the entity cache if it is enabled.
046            *
047            * @param workflowDefinitionLinks the workflow definition links to cache
048            */
049            public void cacheResult(
050                    java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks);
051    
052            /**
053            * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.
054            *
055            * @param workflowDefinitionLinkId the primary key for the new workflow definition link
056            * @return the new workflow definition link
057            */
058            public com.liferay.portal.model.WorkflowDefinitionLink create(
059                    long workflowDefinitionLinkId);
060    
061            /**
062            * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param workflowDefinitionLinkId the primary key of the workflow definition link to remove
065            * @return the workflow definition link that was removed
066            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public com.liferay.portal.model.WorkflowDefinitionLink remove(
070                    long workflowDefinitionLinkId)
071                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.WorkflowDefinitionLink updateImpl(
075                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
076                    boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Finds the workflow definition link with the primary key or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found.
081            *
082            * @param workflowDefinitionLinkId the primary key of the workflow definition link to find
083            * @return the workflow definition link
084            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey(
088                    long workflowDefinitionLinkId)
089                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            /**
093            * Finds the workflow definition link with the primary key or returns <code>null</code> if it could not be found.
094            *
095            * @param workflowDefinitionLinkId the primary key of the workflow definition link to find
096            * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey(
100                    long workflowDefinitionLinkId)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Finds all the workflow definition links where companyId = &#63;.
105            *
106            * @param companyId the company id to search with
107            * @return the matching workflow definition links
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
111                    long companyId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Finds a range of all the workflow definition links where companyId = &#63;.
116            *
117            * <p>
118            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
119            * </p>
120            *
121            * @param companyId the company id to search with
122            * @param start the lower bound of the range of workflow definition links to return
123            * @param end the upper bound of the range of workflow definition links to return (not inclusive)
124            * @return the range of matching workflow definition links
125            * @throws SystemException if a system exception occurred
126            */
127            public 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    
131            /**
132            * Finds an ordered range of all the workflow definition links where companyId = &#63;.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
136            * </p>
137            *
138            * @param companyId the company id to search with
139            * @param start the lower bound of the range of workflow definition links to return
140            * @param end the upper bound of the range of workflow definition links to return (not inclusive)
141            * @param orderByComparator the comparator to order the results by
142            * @return the ordered range of matching workflow definition links
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
146                    long companyId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Finds the first workflow definition link in the ordered set where companyId = &#63;.
152            *
153            * <p>
154            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
155            * </p>
156            *
157            * @param companyId the company id to search with
158            * @param orderByComparator the comparator to order the set by
159            * @return the first matching workflow definition link
160            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
164                    long companyId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Finds the last workflow definition link in the ordered set where companyId = &#63;.
171            *
172            * <p>
173            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
174            * </p>
175            *
176            * @param companyId the company id to search with
177            * @param orderByComparator the comparator to order the set by
178            * @return the last matching workflow definition link
179            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public 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    
188            /**
189            * Finds the workflow definition links before and after the current workflow definition link in the ordered set where companyId = &#63;.
190            *
191            * <p>
192            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
193            * </p>
194            *
195            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
196            * @param companyId the company id to search with
197            * @param orderByComparator the comparator to order the set by
198            * @return the previous, current, and next workflow definition link
199            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
203                    long workflowDefinitionLinkId, long companyId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Finds the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found.
210            *
211            * @param groupId the group id to search with
212            * @param companyId the company id to search with
213            * @param classNameId the class name id to search with
214            * @return the matching workflow definition link
215            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
219                    long groupId, long companyId, long classNameId)
220                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Finds the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
225            *
226            * @param groupId the group id to search with
227            * @param companyId the company id to search with
228            * @param classNameId the class name id to search with
229            * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
233                    long groupId, long companyId, long classNameId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
238            *
239            * @param groupId the group id to search with
240            * @param companyId the company id to search with
241            * @param classNameId the class name id to search with
242            * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
246                    long groupId, long companyId, long classNameId,
247                    boolean retrieveFromCache)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Finds all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
252            *
253            * @param companyId the company id to search with
254            * @param workflowDefinitionName the workflow definition name to search with
255            * @param workflowDefinitionVersion the workflow definition version to search with
256            * @return the matching workflow definition links
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
260                    long companyId, java.lang.String workflowDefinitionName,
261                    int workflowDefinitionVersion)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Finds a range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
266            *
267            * <p>
268            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
269            * </p>
270            *
271            * @param companyId the company id to search with
272            * @param workflowDefinitionName the workflow definition name to search with
273            * @param workflowDefinitionVersion the workflow definition version to search with
274            * @param start the lower bound of the range of workflow definition links to return
275            * @param end the upper bound of the range of workflow definition links to return (not inclusive)
276            * @return the range of matching workflow definition links
277            * @throws SystemException if a system exception occurred
278            */
279            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
280                    long companyId, java.lang.String workflowDefinitionName,
281                    int workflowDefinitionVersion, int start, int end)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Finds an ordered range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
286            *
287            * <p>
288            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
289            * </p>
290            *
291            * @param companyId the company id to search with
292            * @param workflowDefinitionName the workflow definition name to search with
293            * @param workflowDefinitionVersion the workflow definition version to search with
294            * @param start the lower bound of the range of workflow definition links to return
295            * @param end the upper bound of the range of workflow definition links to return (not inclusive)
296            * @param orderByComparator the comparator to order the results by
297            * @return the ordered range of matching workflow definition links
298            * @throws SystemException if a system exception occurred
299            */
300            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
301                    long companyId, java.lang.String workflowDefinitionName,
302                    int workflowDefinitionVersion, int start, int end,
303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Finds the first workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
308            *
309            * <p>
310            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
311            * </p>
312            *
313            * @param companyId the company id to search with
314            * @param workflowDefinitionName the workflow definition name to search with
315            * @param workflowDefinitionVersion the workflow definition version to search with
316            * @param orderByComparator the comparator to order the set by
317            * @return the first matching workflow definition link
318            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
322                    long companyId, java.lang.String workflowDefinitionName,
323                    int workflowDefinitionVersion,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
326                            com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Finds the last workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
330            *
331            * <p>
332            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
333            * </p>
334            *
335            * @param companyId the company id to search with
336            * @param workflowDefinitionName the workflow definition name to search with
337            * @param workflowDefinitionVersion the workflow definition version to search with
338            * @param orderByComparator the comparator to order the set by
339            * @return the last matching workflow definition link
340            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
341            * @throws SystemException if a system exception occurred
342            */
343            public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
344                    long companyId, java.lang.String workflowDefinitionName,
345                    int workflowDefinitionVersion,
346                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
347                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
348                            com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Finds the workflow definition links before and after the current workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
352            *
353            * <p>
354            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
355            * </p>
356            *
357            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
358            * @param companyId the company id to search with
359            * @param workflowDefinitionName the workflow definition name to search with
360            * @param workflowDefinitionVersion the workflow definition version to search with
361            * @param orderByComparator the comparator to order the set by
362            * @return the previous, current, and next workflow definition link
363            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            public com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
367                    long workflowDefinitionLinkId, long companyId,
368                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
369                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
370                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
371                            com.liferay.portal.kernel.exception.SystemException;
372    
373            /**
374            * Finds all the workflow definition links.
375            *
376            * @return the workflow definition links
377            * @throws SystemException if a system exception occurred
378            */
379            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Finds a range of all the workflow definition links.
384            *
385            * <p>
386            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
387            * </p>
388            *
389            * @param start the lower bound of the range of workflow definition links to return
390            * @param end the upper bound of the range of workflow definition links to return (not inclusive)
391            * @return the range of workflow definition links
392            * @throws SystemException if a system exception occurred
393            */
394            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
395                    int start, int end)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Finds an ordered range of all the workflow definition links.
400            *
401            * <p>
402            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
403            * </p>
404            *
405            * @param start the lower bound of the range of workflow definition links to return
406            * @param end the upper bound of the range of workflow definition links to return (not inclusive)
407            * @param orderByComparator the comparator to order the results by
408            * @return the ordered range of workflow definition links
409            * @throws SystemException if a system exception occurred
410            */
411            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
412                    int start, int end,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * Removes all the workflow definition links where companyId = &#63; from the database.
418            *
419            * @param companyId the company id to search with
420            * @throws SystemException if a system exception occurred
421            */
422            public void removeByCompanyId(long companyId)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Removes the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; from the database.
427            *
428            * @param groupId the group id to search with
429            * @param companyId the company id to search with
430            * @param classNameId the class name id to search with
431            * @throws SystemException if a system exception occurred
432            */
433            public void removeByG_C_C(long groupId, long companyId, long classNameId)
434                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
435                            com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * Removes all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63; from the database.
439            *
440            * @param companyId the company id to search with
441            * @param workflowDefinitionName the workflow definition name to search with
442            * @param workflowDefinitionVersion the workflow definition version to search with
443            * @throws SystemException if a system exception occurred
444            */
445            public void removeByC_W_W(long companyId,
446                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            /**
450            * Removes all the workflow definition links from the database.
451            *
452            * @throws SystemException if a system exception occurred
453            */
454            public void removeAll()
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Counts all the workflow definition links where companyId = &#63;.
459            *
460            * @param companyId the company id to search with
461            * @return the number of matching workflow definition links
462            * @throws SystemException if a system exception occurred
463            */
464            public int countByCompanyId(long companyId)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Counts all the workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
469            *
470            * @param groupId the group id to search with
471            * @param companyId the company id to search with
472            * @param classNameId the class name id to search with
473            * @return the number of matching workflow definition links
474            * @throws SystemException if a system exception occurred
475            */
476            public int countByG_C_C(long groupId, long companyId, long classNameId)
477                    throws com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * Counts all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
481            *
482            * @param companyId the company id to search with
483            * @param workflowDefinitionName the workflow definition name to search with
484            * @param workflowDefinitionVersion the workflow definition version to search with
485            * @return the number of matching workflow definition links
486            * @throws SystemException if a system exception occurred
487            */
488            public int countByC_W_W(long companyId,
489                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Counts all the workflow definition links.
494            *
495            * @return the number of workflow definition links
496            * @throws SystemException if a system exception occurred
497            */
498            public int countAll()
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    }