001    /**
002     * Copyright (c) 2000-present 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.exception.NoSuchWorkflowDefinitionLinkException;
020    import com.liferay.portal.model.WorkflowDefinitionLink;
021    
022    /**
023     * The persistence interface for the workflow definition link service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see com.liferay.portal.service.persistence.impl.WorkflowDefinitionLinkPersistenceImpl
031     * @see WorkflowDefinitionLinkUtil
032     * @generated
033     */
034    @ProviderType
035    public interface WorkflowDefinitionLinkPersistence extends BasePersistence<WorkflowDefinitionLink> {
036            /*
037             * NOTE FOR DEVELOPERS:
038             *
039             * 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.
040             */
041    
042            /**
043            * Returns all the workflow definition links where companyId = &#63;.
044            *
045            * @param companyId the company ID
046            * @return the matching workflow definition links
047            */
048            public java.util.List<WorkflowDefinitionLink> findByCompanyId(
049                    long companyId);
050    
051            /**
052            * Returns a range of all the workflow definition links where companyId = &#63;.
053            *
054            * <p>
055            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
056            * </p>
057            *
058            * @param companyId the company ID
059            * @param start the lower bound of the range of workflow definition links
060            * @param end the upper bound of the range of workflow definition links (not inclusive)
061            * @return the range of matching workflow definition links
062            */
063            public java.util.List<WorkflowDefinitionLink> findByCompanyId(
064                    long companyId, int start, int end);
065    
066            /**
067            * Returns an ordered range of all the workflow definition links where companyId = &#63;.
068            *
069            * <p>
070            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
071            * </p>
072            *
073            * @param companyId the company ID
074            * @param start the lower bound of the range of workflow definition links
075            * @param end the upper bound of the range of workflow definition links (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching workflow definition links
078            */
079            public java.util.List<WorkflowDefinitionLink> findByCompanyId(
080                    long companyId, int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
082    
083            /**
084            * Returns an ordered range of all the workflow definition links where companyId = &#63;.
085            *
086            * <p>
087            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
088            * </p>
089            *
090            * @param companyId the company ID
091            * @param start the lower bound of the range of workflow definition links
092            * @param end the upper bound of the range of workflow definition links (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching workflow definition links
096            */
097            public java.util.List<WorkflowDefinitionLink> findByCompanyId(
098                    long companyId, int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator,
100                    boolean retrieveFromCache);
101    
102            /**
103            * Returns the first workflow definition link in the ordered set where companyId = &#63;.
104            *
105            * @param companyId the company ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching workflow definition link
108            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
109            */
110            public WorkflowDefinitionLink findByCompanyId_First(long companyId,
111                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
112                    throws NoSuchWorkflowDefinitionLinkException;
113    
114            /**
115            * Returns the first workflow definition link in the ordered set where companyId = &#63;.
116            *
117            * @param companyId the company ID
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
120            */
121            public WorkflowDefinitionLink fetchByCompanyId_First(long companyId,
122                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
123    
124            /**
125            * Returns the last workflow definition link in the ordered set where companyId = &#63;.
126            *
127            * @param companyId the company ID
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching workflow definition link
130            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
131            */
132            public WorkflowDefinitionLink findByCompanyId_Last(long companyId,
133                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
134                    throws NoSuchWorkflowDefinitionLinkException;
135    
136            /**
137            * Returns the last workflow definition link in the ordered set where companyId = &#63;.
138            *
139            * @param companyId the company ID
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
142            */
143            public WorkflowDefinitionLink fetchByCompanyId_Last(long companyId,
144                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
145    
146            /**
147            * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = &#63;.
148            *
149            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
150            * @param companyId the company ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next workflow definition link
153            * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
154            */
155            public WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
156                    long workflowDefinitionLinkId, long companyId,
157                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
158                    throws NoSuchWorkflowDefinitionLinkException;
159    
160            /**
161            * Removes all the workflow definition links where companyId = &#63; from the database.
162            *
163            * @param companyId the company ID
164            */
165            public void removeByCompanyId(long companyId);
166    
167            /**
168            * Returns the number of workflow definition links where companyId = &#63;.
169            *
170            * @param companyId the company ID
171            * @return the number of matching workflow definition links
172            */
173            public int countByCompanyId(long companyId);
174    
175            /**
176            * Returns all the workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
177            *
178            * @param groupId the group ID
179            * @param companyId the company ID
180            * @param classNameId the class name ID
181            * @return the matching workflow definition links
182            */
183            public java.util.List<WorkflowDefinitionLink> findByG_C_C(long groupId,
184                    long companyId, long classNameId);
185    
186            /**
187            * Returns a range of all the workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
188            *
189            * <p>
190            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
191            * </p>
192            *
193            * @param groupId the group ID
194            * @param companyId the company ID
195            * @param classNameId the class name ID
196            * @param start the lower bound of the range of workflow definition links
197            * @param end the upper bound of the range of workflow definition links (not inclusive)
198            * @return the range of matching workflow definition links
199            */
200            public java.util.List<WorkflowDefinitionLink> findByG_C_C(long groupId,
201                    long companyId, long classNameId, int start, int end);
202    
203            /**
204            * Returns an ordered range of all the workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
205            *
206            * <p>
207            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
208            * </p>
209            *
210            * @param groupId the group ID
211            * @param companyId the company ID
212            * @param classNameId the class name ID
213            * @param start the lower bound of the range of workflow definition links
214            * @param end the upper bound of the range of workflow definition links (not inclusive)
215            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
216            * @return the ordered range of matching workflow definition links
217            */
218            public java.util.List<WorkflowDefinitionLink> findByG_C_C(long groupId,
219                    long companyId, long classNameId, int start, int end,
220                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
221    
222            /**
223            * Returns an ordered range of all the workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
224            *
225            * <p>
226            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
227            * </p>
228            *
229            * @param groupId the group ID
230            * @param companyId the company ID
231            * @param classNameId the class name ID
232            * @param start the lower bound of the range of workflow definition links
233            * @param end the upper bound of the range of workflow definition links (not inclusive)
234            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
235            * @param retrieveFromCache whether to retrieve from the finder cache
236            * @return the ordered range of matching workflow definition links
237            */
238            public java.util.List<WorkflowDefinitionLink> findByG_C_C(long groupId,
239                    long companyId, long classNameId, int start, int end,
240                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator,
241                    boolean retrieveFromCache);
242    
243            /**
244            * Returns the first workflow definition link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
245            *
246            * @param groupId the group ID
247            * @param companyId the company ID
248            * @param classNameId the class name ID
249            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
250            * @return the first matching workflow definition link
251            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
252            */
253            public WorkflowDefinitionLink findByG_C_C_First(long groupId,
254                    long companyId, long classNameId,
255                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
256                    throws NoSuchWorkflowDefinitionLinkException;
257    
258            /**
259            * Returns the first workflow definition link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
260            *
261            * @param groupId the group ID
262            * @param companyId the company ID
263            * @param classNameId the class name ID
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
266            */
267            public WorkflowDefinitionLink fetchByG_C_C_First(long groupId,
268                    long companyId, long classNameId,
269                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
270    
271            /**
272            * Returns the last workflow definition link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
273            *
274            * @param groupId the group ID
275            * @param companyId the company ID
276            * @param classNameId the class name ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the last matching workflow definition link
279            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
280            */
281            public WorkflowDefinitionLink findByG_C_C_Last(long groupId,
282                    long companyId, long classNameId,
283                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
284                    throws NoSuchWorkflowDefinitionLinkException;
285    
286            /**
287            * Returns the last workflow definition link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
288            *
289            * @param groupId the group ID
290            * @param companyId the company ID
291            * @param classNameId the class name ID
292            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
293            * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
294            */
295            public WorkflowDefinitionLink fetchByG_C_C_Last(long groupId,
296                    long companyId, long classNameId,
297                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
298    
299            /**
300            * Returns the workflow definition links before and after the current workflow definition link in the ordered set where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
301            *
302            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
303            * @param groupId the group ID
304            * @param companyId the company ID
305            * @param classNameId the class name ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the previous, current, and next workflow definition link
308            * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
309            */
310            public WorkflowDefinitionLink[] findByG_C_C_PrevAndNext(
311                    long workflowDefinitionLinkId, long groupId, long companyId,
312                    long classNameId,
313                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
314                    throws NoSuchWorkflowDefinitionLinkException;
315    
316            /**
317            * Removes all the workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63; from the database.
318            *
319            * @param groupId the group ID
320            * @param companyId the company ID
321            * @param classNameId the class name ID
322            */
323            public void removeByG_C_C(long groupId, long companyId, long classNameId);
324    
325            /**
326            * Returns the number of workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63;.
327            *
328            * @param groupId the group ID
329            * @param companyId the company ID
330            * @param classNameId the class name ID
331            * @return the number of matching workflow definition links
332            */
333            public int countByG_C_C(long groupId, long companyId, long classNameId);
334    
335            /**
336            * Returns all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
337            *
338            * @param companyId the company ID
339            * @param workflowDefinitionName the workflow definition name
340            * @param workflowDefinitionVersion the workflow definition version
341            * @return the matching workflow definition links
342            */
343            public java.util.List<WorkflowDefinitionLink> findByC_W_W(long companyId,
344                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion);
345    
346            /**
347            * Returns a range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
348            *
349            * <p>
350            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
351            * </p>
352            *
353            * @param companyId the company ID
354            * @param workflowDefinitionName the workflow definition name
355            * @param workflowDefinitionVersion the workflow definition version
356            * @param start the lower bound of the range of workflow definition links
357            * @param end the upper bound of the range of workflow definition links (not inclusive)
358            * @return the range of matching workflow definition links
359            */
360            public java.util.List<WorkflowDefinitionLink> findByC_W_W(long companyId,
361                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
362                    int start, int end);
363    
364            /**
365            * Returns an ordered range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
366            *
367            * <p>
368            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
369            * </p>
370            *
371            * @param companyId the company ID
372            * @param workflowDefinitionName the workflow definition name
373            * @param workflowDefinitionVersion the workflow definition version
374            * @param start the lower bound of the range of workflow definition links
375            * @param end the upper bound of the range of workflow definition links (not inclusive)
376            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
377            * @return the ordered range of matching workflow definition links
378            */
379            public java.util.List<WorkflowDefinitionLink> findByC_W_W(long companyId,
380                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
381                    int start, int end,
382                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
383    
384            /**
385            * Returns an ordered range of all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
386            *
387            * <p>
388            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
389            * </p>
390            *
391            * @param companyId the company ID
392            * @param workflowDefinitionName the workflow definition name
393            * @param workflowDefinitionVersion the workflow definition version
394            * @param start the lower bound of the range of workflow definition links
395            * @param end the upper bound of the range of workflow definition links (not inclusive)
396            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
397            * @param retrieveFromCache whether to retrieve from the finder cache
398            * @return the ordered range of matching workflow definition links
399            */
400            public java.util.List<WorkflowDefinitionLink> findByC_W_W(long companyId,
401                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
402                    int start, int end,
403                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator,
404                    boolean retrieveFromCache);
405    
406            /**
407            * Returns the first workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
408            *
409            * @param companyId the company ID
410            * @param workflowDefinitionName the workflow definition name
411            * @param workflowDefinitionVersion the workflow definition version
412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
413            * @return the first matching workflow definition link
414            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
415            */
416            public WorkflowDefinitionLink findByC_W_W_First(long companyId,
417                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
418                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
419                    throws NoSuchWorkflowDefinitionLinkException;
420    
421            /**
422            * Returns the first workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
423            *
424            * @param companyId the company ID
425            * @param workflowDefinitionName the workflow definition name
426            * @param workflowDefinitionVersion the workflow definition version
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
429            */
430            public WorkflowDefinitionLink fetchByC_W_W_First(long companyId,
431                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
432                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
433    
434            /**
435            * Returns the last workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
436            *
437            * @param companyId the company ID
438            * @param workflowDefinitionName the workflow definition name
439            * @param workflowDefinitionVersion the workflow definition version
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the last matching workflow definition link
442            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
443            */
444            public WorkflowDefinitionLink findByC_W_W_Last(long companyId,
445                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
446                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
447                    throws NoSuchWorkflowDefinitionLinkException;
448    
449            /**
450            * Returns the last workflow definition link in the ordered set where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
451            *
452            * @param companyId the company ID
453            * @param workflowDefinitionName the workflow definition name
454            * @param workflowDefinitionVersion the workflow definition version
455            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
456            * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
457            */
458            public WorkflowDefinitionLink fetchByC_W_W_Last(long companyId,
459                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
460                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
461    
462            /**
463            * 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;.
464            *
465            * @param workflowDefinitionLinkId the primary key of the current workflow definition link
466            * @param companyId the company ID
467            * @param workflowDefinitionName the workflow definition name
468            * @param workflowDefinitionVersion the workflow definition version
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the previous, current, and next workflow definition link
471            * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
472            */
473            public WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
474                    long workflowDefinitionLinkId, long companyId,
475                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
476                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator)
477                    throws NoSuchWorkflowDefinitionLinkException;
478    
479            /**
480            * Removes all the workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63; from the database.
481            *
482            * @param companyId the company ID
483            * @param workflowDefinitionName the workflow definition name
484            * @param workflowDefinitionVersion the workflow definition version
485            */
486            public void removeByC_W_W(long companyId,
487                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion);
488    
489            /**
490            * Returns the number of workflow definition links where companyId = &#63; and workflowDefinitionName = &#63; and workflowDefinitionVersion = &#63;.
491            *
492            * @param companyId the company ID
493            * @param workflowDefinitionName the workflow definition name
494            * @param workflowDefinitionVersion the workflow definition version
495            * @return the number of matching workflow definition links
496            */
497            public int countByC_W_W(long companyId,
498                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion);
499    
500            /**
501            * Returns the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63; and typePK = &#63; or throws a {@link NoSuchWorkflowDefinitionLinkException} if it could not be found.
502            *
503            * @param groupId the group ID
504            * @param companyId the company ID
505            * @param classNameId the class name ID
506            * @param classPK the class p k
507            * @param typePK the type p k
508            * @return the matching workflow definition link
509            * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found
510            */
511            public WorkflowDefinitionLink findByG_C_C_C_T(long groupId, long companyId,
512                    long classNameId, long classPK, long typePK)
513                    throws NoSuchWorkflowDefinitionLinkException;
514    
515            /**
516            * 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.
517            *
518            * @param groupId the group ID
519            * @param companyId the company ID
520            * @param classNameId the class name ID
521            * @param classPK the class p k
522            * @param typePK the type p k
523            * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
524            */
525            public WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId,
526                    long companyId, long classNameId, long classPK, long typePK);
527    
528            /**
529            * 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.
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            * @param retrieveFromCache whether to retrieve from the finder cache
537            * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found
538            */
539            public WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId,
540                    long companyId, long classNameId, long classPK, long typePK,
541                    boolean retrieveFromCache);
542    
543            /**
544            * Removes the workflow definition link where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63; and typePK = &#63; from the database.
545            *
546            * @param groupId the group ID
547            * @param companyId the company ID
548            * @param classNameId the class name ID
549            * @param classPK the class p k
550            * @param typePK the type p k
551            * @return the workflow definition link that was removed
552            */
553            public WorkflowDefinitionLink removeByG_C_C_C_T(long groupId,
554                    long companyId, long classNameId, long classPK, long typePK)
555                    throws NoSuchWorkflowDefinitionLinkException;
556    
557            /**
558            * Returns the number of workflow definition links where groupId = &#63; and companyId = &#63; and classNameId = &#63; and classPK = &#63; and typePK = &#63;.
559            *
560            * @param groupId the group ID
561            * @param companyId the company ID
562            * @param classNameId the class name ID
563            * @param classPK the class p k
564            * @param typePK the type p k
565            * @return the number of matching workflow definition links
566            */
567            public int countByG_C_C_C_T(long groupId, long companyId, long classNameId,
568                    long classPK, long typePK);
569    
570            /**
571            * Caches the workflow definition link in the entity cache if it is enabled.
572            *
573            * @param workflowDefinitionLink the workflow definition link
574            */
575            public void cacheResult(WorkflowDefinitionLink workflowDefinitionLink);
576    
577            /**
578            * Caches the workflow definition links in the entity cache if it is enabled.
579            *
580            * @param workflowDefinitionLinks the workflow definition links
581            */
582            public void cacheResult(
583                    java.util.List<WorkflowDefinitionLink> workflowDefinitionLinks);
584    
585            /**
586            * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.
587            *
588            * @param workflowDefinitionLinkId the primary key for the new workflow definition link
589            * @return the new workflow definition link
590            */
591            public WorkflowDefinitionLink create(long workflowDefinitionLinkId);
592    
593            /**
594            * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners.
595            *
596            * @param workflowDefinitionLinkId the primary key of the workflow definition link
597            * @return the workflow definition link that was removed
598            * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
599            */
600            public WorkflowDefinitionLink remove(long workflowDefinitionLinkId)
601                    throws NoSuchWorkflowDefinitionLinkException;
602    
603            public WorkflowDefinitionLink updateImpl(
604                    WorkflowDefinitionLink workflowDefinitionLink);
605    
606            /**
607            * Returns the workflow definition link with the primary key or throws a {@link NoSuchWorkflowDefinitionLinkException} if it could not be found.
608            *
609            * @param workflowDefinitionLinkId the primary key of the workflow definition link
610            * @return the workflow definition link
611            * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found
612            */
613            public WorkflowDefinitionLink findByPrimaryKey(
614                    long workflowDefinitionLinkId)
615                    throws NoSuchWorkflowDefinitionLinkException;
616    
617            /**
618            * Returns the workflow definition link with the primary key or returns <code>null</code> if it could not be found.
619            *
620            * @param workflowDefinitionLinkId the primary key of the workflow definition link
621            * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found
622            */
623            public WorkflowDefinitionLink fetchByPrimaryKey(
624                    long workflowDefinitionLinkId);
625    
626            @Override
627            public java.util.Map<java.io.Serializable, WorkflowDefinitionLink> fetchByPrimaryKeys(
628                    java.util.Set<java.io.Serializable> primaryKeys);
629    
630            /**
631            * Returns all the workflow definition links.
632            *
633            * @return the workflow definition links
634            */
635            public java.util.List<WorkflowDefinitionLink> findAll();
636    
637            /**
638            * Returns a range of all the workflow definition links.
639            *
640            * <p>
641            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
642            * </p>
643            *
644            * @param start the lower bound of the range of workflow definition links
645            * @param end the upper bound of the range of workflow definition links (not inclusive)
646            * @return the range of workflow definition links
647            */
648            public java.util.List<WorkflowDefinitionLink> findAll(int start, int end);
649    
650            /**
651            * Returns an ordered range of all the workflow definition links.
652            *
653            * <p>
654            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
655            * </p>
656            *
657            * @param start the lower bound of the range of workflow definition links
658            * @param end the upper bound of the range of workflow definition links (not inclusive)
659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
660            * @return the ordered range of workflow definition links
661            */
662            public java.util.List<WorkflowDefinitionLink> findAll(int start, int end,
663                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator);
664    
665            /**
666            * Returns an ordered range of all the workflow definition links.
667            *
668            * <p>
669            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
670            * </p>
671            *
672            * @param start the lower bound of the range of workflow definition links
673            * @param end the upper bound of the range of workflow definition links (not inclusive)
674            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
675            * @param retrieveFromCache whether to retrieve from the finder cache
676            * @return the ordered range of workflow definition links
677            */
678            public java.util.List<WorkflowDefinitionLink> findAll(int start, int end,
679                    com.liferay.portal.kernel.util.OrderByComparator<WorkflowDefinitionLink> orderByComparator,
680                    boolean retrieveFromCache);
681    
682            /**
683            * Removes all the workflow definition links from the database.
684            */
685            public void removeAll();
686    
687            /**
688            * Returns the number of workflow definition links.
689            *
690            * @return the number of workflow definition links
691            */
692            public int countAll();
693    }