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