001    /**
002     * Copyright (c) 2000-2013 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            * @param companyId the company ID
156            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
157            * @return the first matching workflow definition link
158            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
162                    long companyId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            /**
168            * Returns the first workflow definition link in the ordered set where companyId = &#63;.
169            *
170            * @param companyId the company ID
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_First(
176                    long companyId,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the last workflow definition link in the ordered set where companyId = &#63;.
182            *
183            * @param companyId the company ID
184            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
185            * @return the last matching workflow definition link
186            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
190                    long companyId,
191                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    
195            /**
196            * Returns the last workflow definition link in the ordered set where companyId = &#63;.
197            *
198            * @param companyId the company ID
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_Last(
204                    long companyId,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = &#63;.
210            *
211            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
212            * @param companyId the company ID
213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
214            * @return the previous, current, and next workflow definition link
215            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
219                    long workflowDefinitionLinkId, long companyId,
220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
222                            com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Returns all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
226            *
227            * @param companyId the company ID
228            * @param workflowDefinitionName the workflow definition name
229            * @param workflowDefinitionVersion the workflow definition version
230            * @return the matching workflow definition links
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
234                    long companyId, java.lang.String workflowDefinitionName,
235                    int workflowDefinitionVersion)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Returns a range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
240            *
241            * <p>
242            * 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.
243            * </p>
244            *
245            * @param companyId the company ID
246            * @param workflowDefinitionName the workflow definition name
247            * @param workflowDefinitionVersion the workflow definition version
248            * @param start the lower bound of the range of workflow definition links
249            * @param end the upper bound of the range of workflow definition links (not inclusive)
250            * @return the range of matching workflow definition links
251            * @throws SystemException if a system exception occurred
252            */
253            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
254                    long companyId, java.lang.String workflowDefinitionName,
255                    int workflowDefinitionVersion, int start, int end)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            /**
259            * Returns an ordered range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
260            *
261            * <p>
262            * 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.
263            * </p>
264            *
265            * @param companyId the company ID
266            * @param workflowDefinitionName the workflow definition name
267            * @param workflowDefinitionVersion the workflow definition version
268            * @param start the lower bound of the range of workflow definition links
269            * @param end the upper bound of the range of workflow definition links (not inclusive)
270            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
271            * @return the ordered range of matching workflow definition links
272            * @throws SystemException if a system exception occurred
273            */
274            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
275                    long companyId, java.lang.String workflowDefinitionName,
276                    int workflowDefinitionVersion, int start, int end,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns the first workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
282            *
283            * @param companyId the company ID
284            * @param workflowDefinitionName the workflow definition name
285            * @param workflowDefinitionVersion the workflow definition version
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the first matching workflow definition link
288            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
292                    long companyId, java.lang.String workflowDefinitionName,
293                    int workflowDefinitionVersion,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
296                            com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the first workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
300            *
301            * @param companyId the company ID
302            * @param workflowDefinitionName the workflow definition name
303            * @param workflowDefinitionVersion the workflow definition version
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_First(
309                    long companyId, java.lang.String workflowDefinitionName,
310                    int workflowDefinitionVersion,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns the last workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
316            *
317            * @param companyId the company ID
318            * @param workflowDefinitionName the workflow definition name
319            * @param workflowDefinitionVersion the workflow definition version
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the last matching workflow definition link
322            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
326                    long companyId, java.lang.String workflowDefinitionName,
327                    int workflowDefinitionVersion,
328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
330                            com.liferay.portal.kernel.exception.SystemException;
331    
332            /**
333            * Returns the last workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
334            *
335            * @param companyId the company ID
336            * @param workflowDefinitionName the workflow definition name
337            * @param workflowDefinitionVersion the workflow definition version
338            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
339            * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
340            * @throws SystemException if a system exception occurred
341            */
342            public com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_Last(
343                    long companyId, java.lang.String workflowDefinitionName,
344                    int workflowDefinitionVersion,
345                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * 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;.
350            *
351            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
352            * @param companyId the company ID
353            * @param workflowDefinitionName the workflow definition name
354            * @param workflowDefinitionVersion the workflow definition version
355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
356            * @return the previous, current, and next workflow definition link
357            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
358            * @throws SystemException if a system exception occurred
359            */
360            public com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
361                    long workflowDefinitionLinkId, long companyId,
362                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
365                            com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * 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.
369            *
370            * @param groupId the group ID
371            * @param companyId the company ID
372            * @param classNameId the class name ID
373            * @param classPK the class p k
374            * @param typePK the type p k
375            * @return the matching workflow definition link
376            * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_C_T(
380                    long groupId, long companyId, long classNameId, long classPK,
381                    long typePK)
382                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
383                            com.liferay.portal.kernel.exception.SystemException;
384    
385            /**
386            * 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.
387            *
388            * @param groupId the group ID
389            * @param companyId the company ID
390            * @param classNameId the class name ID
391            * @param classPK the class p k
392            * @param typePK the type p k
393            * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T(
397                    long groupId, long companyId, long classNameId, long classPK,
398                    long typePK) throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * 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.
402            *
403            * @param groupId the group ID
404            * @param companyId the company ID
405            * @param classNameId the class name ID
406            * @param classPK the class p k
407            * @param typePK the type p k
408            * @param retrieveFromCache whether to use the finder cache
409            * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T(
413                    long groupId, long companyId, long classNameId, long classPK,
414                    long typePK, boolean retrieveFromCache)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns all the workflow definition links.
419            *
420            * @return the workflow definition links
421            * @throws SystemException if a system exception occurred
422            */
423            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns a range of all the workflow definition links.
428            *
429            * <p>
430            * 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.
431            * </p>
432            *
433            * @param start the lower bound of the range of workflow definition links
434            * @param end the upper bound of the range of workflow definition links (not inclusive)
435            * @return the range of workflow definition links
436            * @throws SystemException if a system exception occurred
437            */
438            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
439                    int start, int end)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Returns an ordered range of all the workflow definition links.
444            *
445            * <p>
446            * 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.
447            * </p>
448            *
449            * @param start the lower bound of the range of workflow definition links
450            * @param end the upper bound of the range of workflow definition links (not inclusive)
451            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
452            * @return the ordered range of workflow definition links
453            * @throws SystemException if a system exception occurred
454            */
455            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
456                    int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            /**
461            * Removes all the workflow definition links where companyId = &#63; from the database.
462            *
463            * @param companyId the company ID
464            * @throws SystemException if a system exception occurred
465            */
466            public void removeByCompanyId(long companyId)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Removes all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63; from the database.
471            *
472            * @param companyId the company ID
473            * @param workflowDefinitionName the workflow definition name
474            * @param workflowDefinitionVersion the workflow definition version
475            * @throws SystemException if a system exception occurred
476            */
477            public void removeByC_W_W(long companyId,
478                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Removes the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63; and typePK = &#63; from the database.
483            *
484            * @param groupId the group ID
485            * @param companyId the company ID
486            * @param classNameId the class name ID
487            * @param classPK the class p k
488            * @param typePK the type p k
489            * @return the workflow definition link that was removed
490            * @throws SystemException if a system exception occurred
491            */
492            public com.liferay.portal.model.WorkflowDefinitionLink removeByG_C_C_C_T(
493                    long groupId, long companyId, long classNameId, long classPK,
494                    long typePK)
495                    throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
496                            com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Removes all the workflow definition links from the database.
500            *
501            * @throws SystemException if a system exception occurred
502            */
503            public void removeAll()
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Returns the number of workflow definition links where companyId = &#63;.
508            *
509            * @param companyId the company ID
510            * @return the number of matching workflow definition links
511            * @throws SystemException if a system exception occurred
512            */
513            public int countByCompanyId(long companyId)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            /**
517            * Returns the number of workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
518            *
519            * @param companyId the company ID
520            * @param workflowDefinitionName the workflow definition name
521            * @param workflowDefinitionVersion the workflow definition version
522            * @return the number of matching workflow definition links
523            * @throws SystemException if a system exception occurred
524            */
525            public int countByC_W_W(long companyId,
526                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * Returns the number of workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63; and typePK = &#63;.
531            *
532            * @param groupId the group ID
533            * @param companyId the company ID
534            * @param classNameId the class name ID
535            * @param classPK the class p k
536            * @param typePK the type p k
537            * @return the number of matching workflow definition links
538            * @throws SystemException if a system exception occurred
539            */
540            public int countByG_C_C_C_T(long groupId, long companyId, long classNameId,
541                    long classPK, long typePK)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Returns the number of workflow definition links.
546            *
547            * @return the number of workflow definition links
548            * @throws SystemException if a system exception occurred
549            */
550            public int countAll()
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    }