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