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