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