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