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