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.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.model.WorkflowDefinitionLink; 024 import com.liferay.portal.service.ServiceContext; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the workflow definition link service. This utility wraps {@link com.liferay.portal.service.persistence.impl.WorkflowDefinitionLinkPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see WorkflowDefinitionLinkPersistence 037 * @see com.liferay.portal.service.persistence.impl.WorkflowDefinitionLinkPersistenceImpl 038 * @generated 039 */ 040 @ProviderType 041 public class WorkflowDefinitionLinkUtil { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 046 */ 047 048 /** 049 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 050 */ 051 public static void clearCache() { 052 getPersistence().clearCache(); 053 } 054 055 /** 056 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 057 */ 058 public static void clearCache(WorkflowDefinitionLink workflowDefinitionLink) { 059 getPersistence().clearCache(workflowDefinitionLink); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 064 */ 065 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<WorkflowDefinitionLink> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<WorkflowDefinitionLink> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<WorkflowDefinitionLink> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static WorkflowDefinitionLink update( 100 WorkflowDefinitionLink workflowDefinitionLink) { 101 return getPersistence().update(workflowDefinitionLink); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static WorkflowDefinitionLink update( 108 WorkflowDefinitionLink workflowDefinitionLink, 109 ServiceContext serviceContext) { 110 return getPersistence().update(workflowDefinitionLink, serviceContext); 111 } 112 113 /** 114 * Returns all the workflow definition links where companyId = ?. 115 * 116 * @param companyId the company ID 117 * @return the matching workflow definition links 118 */ 119 public static List<WorkflowDefinitionLink> findByCompanyId(long companyId) { 120 return getPersistence().findByCompanyId(companyId); 121 } 122 123 /** 124 * Returns a range of all the workflow definition links where companyId = ?. 125 * 126 * <p> 127 * 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. 128 * </p> 129 * 130 * @param companyId the company ID 131 * @param start the lower bound of the range of workflow definition links 132 * @param end the upper bound of the range of workflow definition links (not inclusive) 133 * @return the range of matching workflow definition links 134 */ 135 public static List<WorkflowDefinitionLink> findByCompanyId(long companyId, 136 int start, int end) { 137 return getPersistence().findByCompanyId(companyId, start, end); 138 } 139 140 /** 141 * Returns an ordered range of all the workflow definition links where companyId = ?. 142 * 143 * <p> 144 * 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. 145 * </p> 146 * 147 * @param companyId the company ID 148 * @param start the lower bound of the range of workflow definition links 149 * @param end the upper bound of the range of workflow definition links (not inclusive) 150 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 151 * @return the ordered range of matching workflow definition links 152 */ 153 public static List<WorkflowDefinitionLink> findByCompanyId(long companyId, 154 int start, int end, 155 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 156 return getPersistence() 157 .findByCompanyId(companyId, start, end, orderByComparator); 158 } 159 160 /** 161 * Returns an ordered range of all the workflow definition links where companyId = ?. 162 * 163 * <p> 164 * 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. 165 * </p> 166 * 167 * @param companyId the company ID 168 * @param start the lower bound of the range of workflow definition links 169 * @param end the upper bound of the range of workflow definition links (not inclusive) 170 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 171 * @param retrieveFromCache whether to retrieve from the finder cache 172 * @return the ordered range of matching workflow definition links 173 */ 174 public static List<WorkflowDefinitionLink> findByCompanyId(long companyId, 175 int start, int end, 176 OrderByComparator<WorkflowDefinitionLink> orderByComparator, 177 boolean retrieveFromCache) { 178 return getPersistence() 179 .findByCompanyId(companyId, start, end, orderByComparator, 180 retrieveFromCache); 181 } 182 183 /** 184 * Returns the first workflow definition link in the ordered set where companyId = ?. 185 * 186 * @param companyId the company ID 187 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 188 * @return the first matching workflow definition link 189 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 190 */ 191 public static WorkflowDefinitionLink findByCompanyId_First(long companyId, 192 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 193 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 194 return getPersistence() 195 .findByCompanyId_First(companyId, orderByComparator); 196 } 197 198 /** 199 * Returns the first workflow definition link in the ordered set where companyId = ?. 200 * 201 * @param companyId the company ID 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 204 */ 205 public static WorkflowDefinitionLink fetchByCompanyId_First( 206 long companyId, 207 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 208 return getPersistence() 209 .fetchByCompanyId_First(companyId, orderByComparator); 210 } 211 212 /** 213 * Returns the last workflow definition link in the ordered set where companyId = ?. 214 * 215 * @param companyId the company ID 216 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 217 * @return the last matching workflow definition link 218 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 219 */ 220 public static WorkflowDefinitionLink findByCompanyId_Last(long companyId, 221 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 222 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 223 return getPersistence() 224 .findByCompanyId_Last(companyId, orderByComparator); 225 } 226 227 /** 228 * Returns the last workflow definition link in the ordered set where companyId = ?. 229 * 230 * @param companyId the company ID 231 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 232 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 233 */ 234 public static WorkflowDefinitionLink fetchByCompanyId_Last(long companyId, 235 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 236 return getPersistence() 237 .fetchByCompanyId_Last(companyId, orderByComparator); 238 } 239 240 /** 241 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. 242 * 243 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 244 * @param companyId the company ID 245 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 246 * @return the previous, current, and next workflow definition link 247 * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 248 */ 249 public static WorkflowDefinitionLink[] findByCompanyId_PrevAndNext( 250 long workflowDefinitionLinkId, long companyId, 251 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 252 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 253 return getPersistence() 254 .findByCompanyId_PrevAndNext(workflowDefinitionLinkId, 255 companyId, orderByComparator); 256 } 257 258 /** 259 * Removes all the workflow definition links where companyId = ? from the database. 260 * 261 * @param companyId the company ID 262 */ 263 public static void removeByCompanyId(long companyId) { 264 getPersistence().removeByCompanyId(companyId); 265 } 266 267 /** 268 * Returns the number of workflow definition links where companyId = ?. 269 * 270 * @param companyId the company ID 271 * @return the number of matching workflow definition links 272 */ 273 public static int countByCompanyId(long companyId) { 274 return getPersistence().countByCompanyId(companyId); 275 } 276 277 /** 278 * Returns all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 279 * 280 * @param groupId the group ID 281 * @param companyId the company ID 282 * @param classNameId the class name ID 283 * @return the matching workflow definition links 284 */ 285 public static List<WorkflowDefinitionLink> findByG_C_C(long groupId, 286 long companyId, long classNameId) { 287 return getPersistence().findByG_C_C(groupId, companyId, classNameId); 288 } 289 290 /** 291 * Returns a range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param groupId the group ID 298 * @param companyId the company ID 299 * @param classNameId the class name ID 300 * @param start the lower bound of the range of workflow definition links 301 * @param end the upper bound of the range of workflow definition links (not inclusive) 302 * @return the range of matching workflow definition links 303 */ 304 public static List<WorkflowDefinitionLink> findByG_C_C(long groupId, 305 long companyId, long classNameId, int start, int end) { 306 return getPersistence() 307 .findByG_C_C(groupId, companyId, classNameId, start, end); 308 } 309 310 /** 311 * Returns an ordered range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 312 * 313 * <p> 314 * 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. 315 * </p> 316 * 317 * @param groupId the group ID 318 * @param companyId the company ID 319 * @param classNameId the class name ID 320 * @param start the lower bound of the range of workflow definition links 321 * @param end the upper bound of the range of workflow definition links (not inclusive) 322 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 323 * @return the ordered range of matching workflow definition links 324 */ 325 public static List<WorkflowDefinitionLink> findByG_C_C(long groupId, 326 long companyId, long classNameId, int start, int end, 327 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 328 return getPersistence() 329 .findByG_C_C(groupId, companyId, classNameId, start, end, 330 orderByComparator); 331 } 332 333 /** 334 * Returns an ordered range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 335 * 336 * <p> 337 * 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. 338 * </p> 339 * 340 * @param groupId the group ID 341 * @param companyId the company ID 342 * @param classNameId the class name ID 343 * @param start the lower bound of the range of workflow definition links 344 * @param end the upper bound of the range of workflow definition links (not inclusive) 345 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 346 * @param retrieveFromCache whether to retrieve from the finder cache 347 * @return the ordered range of matching workflow definition links 348 */ 349 public static List<WorkflowDefinitionLink> findByG_C_C(long groupId, 350 long companyId, long classNameId, int start, int end, 351 OrderByComparator<WorkflowDefinitionLink> orderByComparator, 352 boolean retrieveFromCache) { 353 return getPersistence() 354 .findByG_C_C(groupId, companyId, classNameId, start, end, 355 orderByComparator, retrieveFromCache); 356 } 357 358 /** 359 * Returns the first workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 360 * 361 * @param groupId the group ID 362 * @param companyId the company ID 363 * @param classNameId the class name ID 364 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 365 * @return the first matching workflow definition link 366 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 367 */ 368 public static WorkflowDefinitionLink findByG_C_C_First(long groupId, 369 long companyId, long classNameId, 370 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 371 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 372 return getPersistence() 373 .findByG_C_C_First(groupId, companyId, classNameId, 374 orderByComparator); 375 } 376 377 /** 378 * Returns the first workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 379 * 380 * @param groupId the group ID 381 * @param companyId the company ID 382 * @param classNameId the class name ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 385 */ 386 public static WorkflowDefinitionLink fetchByG_C_C_First(long groupId, 387 long companyId, long classNameId, 388 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 389 return getPersistence() 390 .fetchByG_C_C_First(groupId, companyId, classNameId, 391 orderByComparator); 392 } 393 394 /** 395 * Returns the last workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 396 * 397 * @param groupId the group ID 398 * @param companyId the company ID 399 * @param classNameId the class name ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the last matching workflow definition link 402 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 403 */ 404 public static WorkflowDefinitionLink findByG_C_C_Last(long groupId, 405 long companyId, long classNameId, 406 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 407 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 408 return getPersistence() 409 .findByG_C_C_Last(groupId, companyId, classNameId, 410 orderByComparator); 411 } 412 413 /** 414 * Returns the last workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 415 * 416 * @param groupId the group ID 417 * @param companyId the company ID 418 * @param classNameId the class name ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 421 */ 422 public static WorkflowDefinitionLink fetchByG_C_C_Last(long groupId, 423 long companyId, long classNameId, 424 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 425 return getPersistence() 426 .fetchByG_C_C_Last(groupId, companyId, classNameId, 427 orderByComparator); 428 } 429 430 /** 431 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 432 * 433 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 434 * @param groupId the group ID 435 * @param companyId the company ID 436 * @param classNameId the class name ID 437 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 438 * @return the previous, current, and next workflow definition link 439 * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 440 */ 441 public static WorkflowDefinitionLink[] findByG_C_C_PrevAndNext( 442 long workflowDefinitionLinkId, long groupId, long companyId, 443 long classNameId, 444 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 445 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 446 return getPersistence() 447 .findByG_C_C_PrevAndNext(workflowDefinitionLinkId, groupId, 448 companyId, classNameId, orderByComparator); 449 } 450 451 /** 452 * Removes all the workflow definition links where groupId = ? and companyId = ? and classNameId = ? from the database. 453 * 454 * @param groupId the group ID 455 * @param companyId the company ID 456 * @param classNameId the class name ID 457 */ 458 public static void removeByG_C_C(long groupId, long companyId, 459 long classNameId) { 460 getPersistence().removeByG_C_C(groupId, companyId, classNameId); 461 } 462 463 /** 464 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 465 * 466 * @param groupId the group ID 467 * @param companyId the company ID 468 * @param classNameId the class name ID 469 * @return the number of matching workflow definition links 470 */ 471 public static int countByG_C_C(long groupId, long companyId, 472 long classNameId) { 473 return getPersistence().countByG_C_C(groupId, companyId, classNameId); 474 } 475 476 /** 477 * Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 478 * 479 * @param companyId the company ID 480 * @param workflowDefinitionName the workflow definition name 481 * @param workflowDefinitionVersion the workflow definition version 482 * @return the matching workflow definition links 483 */ 484 public static List<WorkflowDefinitionLink> findByC_W_W(long companyId, 485 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) { 486 return getPersistence() 487 .findByC_W_W(companyId, workflowDefinitionName, 488 workflowDefinitionVersion); 489 } 490 491 /** 492 * Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 493 * 494 * <p> 495 * 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. 496 * </p> 497 * 498 * @param companyId the company ID 499 * @param workflowDefinitionName the workflow definition name 500 * @param workflowDefinitionVersion the workflow definition version 501 * @param start the lower bound of the range of workflow definition links 502 * @param end the upper bound of the range of workflow definition links (not inclusive) 503 * @return the range of matching workflow definition links 504 */ 505 public static List<WorkflowDefinitionLink> findByC_W_W(long companyId, 506 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 507 int start, int end) { 508 return getPersistence() 509 .findByC_W_W(companyId, workflowDefinitionName, 510 workflowDefinitionVersion, start, end); 511 } 512 513 /** 514 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 515 * 516 * <p> 517 * 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. 518 * </p> 519 * 520 * @param companyId the company ID 521 * @param workflowDefinitionName the workflow definition name 522 * @param workflowDefinitionVersion the workflow definition version 523 * @param start the lower bound of the range of workflow definition links 524 * @param end the upper bound of the range of workflow definition links (not inclusive) 525 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 526 * @return the ordered range of matching workflow definition links 527 */ 528 public static List<WorkflowDefinitionLink> findByC_W_W(long companyId, 529 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 530 int start, int end, 531 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 532 return getPersistence() 533 .findByC_W_W(companyId, workflowDefinitionName, 534 workflowDefinitionVersion, start, end, orderByComparator); 535 } 536 537 /** 538 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param companyId the company ID 545 * @param workflowDefinitionName the workflow definition name 546 * @param workflowDefinitionVersion the workflow definition version 547 * @param start the lower bound of the range of workflow definition links 548 * @param end the upper bound of the range of workflow definition links (not inclusive) 549 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 550 * @param retrieveFromCache whether to retrieve from the finder cache 551 * @return the ordered range of matching workflow definition links 552 */ 553 public static List<WorkflowDefinitionLink> findByC_W_W(long companyId, 554 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 555 int start, int end, 556 OrderByComparator<WorkflowDefinitionLink> orderByComparator, 557 boolean retrieveFromCache) { 558 return getPersistence() 559 .findByC_W_W(companyId, workflowDefinitionName, 560 workflowDefinitionVersion, start, end, orderByComparator, 561 retrieveFromCache); 562 } 563 564 /** 565 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 566 * 567 * @param companyId the company ID 568 * @param workflowDefinitionName the workflow definition name 569 * @param workflowDefinitionVersion the workflow definition version 570 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 571 * @return the first matching workflow definition link 572 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 573 */ 574 public static WorkflowDefinitionLink findByC_W_W_First(long companyId, 575 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 576 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 577 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 578 return getPersistence() 579 .findByC_W_W_First(companyId, workflowDefinitionName, 580 workflowDefinitionVersion, orderByComparator); 581 } 582 583 /** 584 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 585 * 586 * @param companyId the company ID 587 * @param workflowDefinitionName the workflow definition name 588 * @param workflowDefinitionVersion the workflow definition version 589 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 590 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 591 */ 592 public static WorkflowDefinitionLink fetchByC_W_W_First(long companyId, 593 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 594 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 595 return getPersistence() 596 .fetchByC_W_W_First(companyId, workflowDefinitionName, 597 workflowDefinitionVersion, orderByComparator); 598 } 599 600 /** 601 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 602 * 603 * @param companyId the company ID 604 * @param workflowDefinitionName the workflow definition name 605 * @param workflowDefinitionVersion the workflow definition version 606 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 607 * @return the last matching workflow definition link 608 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 609 */ 610 public static WorkflowDefinitionLink findByC_W_W_Last(long companyId, 611 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 612 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 613 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 614 return getPersistence() 615 .findByC_W_W_Last(companyId, workflowDefinitionName, 616 workflowDefinitionVersion, orderByComparator); 617 } 618 619 /** 620 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 621 * 622 * @param companyId the company ID 623 * @param workflowDefinitionName the workflow definition name 624 * @param workflowDefinitionVersion the workflow definition version 625 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 626 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 627 */ 628 public static WorkflowDefinitionLink fetchByC_W_W_Last(long companyId, 629 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 630 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 631 return getPersistence() 632 .fetchByC_W_W_Last(companyId, workflowDefinitionName, 633 workflowDefinitionVersion, orderByComparator); 634 } 635 636 /** 637 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 638 * 639 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 640 * @param companyId the company ID 641 * @param workflowDefinitionName the workflow definition name 642 * @param workflowDefinitionVersion the workflow definition version 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the previous, current, and next workflow definition link 645 * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 646 */ 647 public static WorkflowDefinitionLink[] findByC_W_W_PrevAndNext( 648 long workflowDefinitionLinkId, long companyId, 649 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 650 OrderByComparator<WorkflowDefinitionLink> orderByComparator) 651 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 652 return getPersistence() 653 .findByC_W_W_PrevAndNext(workflowDefinitionLinkId, 654 companyId, workflowDefinitionName, workflowDefinitionVersion, 655 orderByComparator); 656 } 657 658 /** 659 * Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. 660 * 661 * @param companyId the company ID 662 * @param workflowDefinitionName the workflow definition name 663 * @param workflowDefinitionVersion the workflow definition version 664 */ 665 public static void removeByC_W_W(long companyId, 666 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) { 667 getPersistence() 668 .removeByC_W_W(companyId, workflowDefinitionName, 669 workflowDefinitionVersion); 670 } 671 672 /** 673 * Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 674 * 675 * @param companyId the company ID 676 * @param workflowDefinitionName the workflow definition name 677 * @param workflowDefinitionVersion the workflow definition version 678 * @return the number of matching workflow definition links 679 */ 680 public static int countByC_W_W(long companyId, 681 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) { 682 return getPersistence() 683 .countByC_W_W(companyId, workflowDefinitionName, 684 workflowDefinitionVersion); 685 } 686 687 /** 688 * 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. 689 * 690 * @param groupId the group ID 691 * @param companyId the company ID 692 * @param classNameId the class name ID 693 * @param classPK the class p k 694 * @param typePK the type p k 695 * @return the matching workflow definition link 696 * @throws NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 697 */ 698 public static WorkflowDefinitionLink findByG_C_C_C_T(long groupId, 699 long companyId, long classNameId, long classPK, long typePK) 700 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 701 return getPersistence() 702 .findByG_C_C_C_T(groupId, companyId, classNameId, classPK, 703 typePK); 704 } 705 706 /** 707 * 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. 708 * 709 * @param groupId the group ID 710 * @param companyId the company ID 711 * @param classNameId the class name ID 712 * @param classPK the class p k 713 * @param typePK the type p k 714 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 715 */ 716 public static WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, 717 long companyId, long classNameId, long classPK, long typePK) { 718 return getPersistence() 719 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 720 typePK); 721 } 722 723 /** 724 * 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. 725 * 726 * @param groupId the group ID 727 * @param companyId the company ID 728 * @param classNameId the class name ID 729 * @param classPK the class p k 730 * @param typePK the type p k 731 * @param retrieveFromCache whether to retrieve from the finder cache 732 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 733 */ 734 public static WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, 735 long companyId, long classNameId, long classPK, long typePK, 736 boolean retrieveFromCache) { 737 return getPersistence() 738 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 739 typePK, retrieveFromCache); 740 } 741 742 /** 743 * Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. 744 * 745 * @param groupId the group ID 746 * @param companyId the company ID 747 * @param classNameId the class name ID 748 * @param classPK the class p k 749 * @param typePK the type p k 750 * @return the workflow definition link that was removed 751 */ 752 public static WorkflowDefinitionLink removeByG_C_C_C_T(long groupId, 753 long companyId, long classNameId, long classPK, long typePK) 754 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 755 return getPersistence() 756 .removeByG_C_C_C_T(groupId, companyId, classNameId, classPK, 757 typePK); 758 } 759 760 /** 761 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. 762 * 763 * @param groupId the group ID 764 * @param companyId the company ID 765 * @param classNameId the class name ID 766 * @param classPK the class p k 767 * @param typePK the type p k 768 * @return the number of matching workflow definition links 769 */ 770 public static int countByG_C_C_C_T(long groupId, long companyId, 771 long classNameId, long classPK, long typePK) { 772 return getPersistence() 773 .countByG_C_C_C_T(groupId, companyId, classNameId, classPK, 774 typePK); 775 } 776 777 /** 778 * Caches the workflow definition link in the entity cache if it is enabled. 779 * 780 * @param workflowDefinitionLink the workflow definition link 781 */ 782 public static void cacheResult( 783 WorkflowDefinitionLink workflowDefinitionLink) { 784 getPersistence().cacheResult(workflowDefinitionLink); 785 } 786 787 /** 788 * Caches the workflow definition links in the entity cache if it is enabled. 789 * 790 * @param workflowDefinitionLinks the workflow definition links 791 */ 792 public static void cacheResult( 793 List<WorkflowDefinitionLink> workflowDefinitionLinks) { 794 getPersistence().cacheResult(workflowDefinitionLinks); 795 } 796 797 /** 798 * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database. 799 * 800 * @param workflowDefinitionLinkId the primary key for the new workflow definition link 801 * @return the new workflow definition link 802 */ 803 public static WorkflowDefinitionLink create(long workflowDefinitionLinkId) { 804 return getPersistence().create(workflowDefinitionLinkId); 805 } 806 807 /** 808 * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners. 809 * 810 * @param workflowDefinitionLinkId the primary key of the workflow definition link 811 * @return the workflow definition link that was removed 812 * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 813 */ 814 public static WorkflowDefinitionLink remove(long workflowDefinitionLinkId) 815 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 816 return getPersistence().remove(workflowDefinitionLinkId); 817 } 818 819 public static WorkflowDefinitionLink updateImpl( 820 WorkflowDefinitionLink workflowDefinitionLink) { 821 return getPersistence().updateImpl(workflowDefinitionLink); 822 } 823 824 /** 825 * Returns the workflow definition link with the primary key or throws a {@link NoSuchWorkflowDefinitionLinkException} if it could not be found. 826 * 827 * @param workflowDefinitionLinkId the primary key of the workflow definition link 828 * @return the workflow definition link 829 * @throws NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 830 */ 831 public static WorkflowDefinitionLink findByPrimaryKey( 832 long workflowDefinitionLinkId) 833 throws com.liferay.portal.exception.NoSuchWorkflowDefinitionLinkException { 834 return getPersistence().findByPrimaryKey(workflowDefinitionLinkId); 835 } 836 837 /** 838 * Returns the workflow definition link with the primary key or returns <code>null</code> if it could not be found. 839 * 840 * @param workflowDefinitionLinkId the primary key of the workflow definition link 841 * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found 842 */ 843 public static WorkflowDefinitionLink fetchByPrimaryKey( 844 long workflowDefinitionLinkId) { 845 return getPersistence().fetchByPrimaryKey(workflowDefinitionLinkId); 846 } 847 848 public static java.util.Map<java.io.Serializable, WorkflowDefinitionLink> fetchByPrimaryKeys( 849 java.util.Set<java.io.Serializable> primaryKeys) { 850 return getPersistence().fetchByPrimaryKeys(primaryKeys); 851 } 852 853 /** 854 * Returns all the workflow definition links. 855 * 856 * @return the workflow definition links 857 */ 858 public static List<WorkflowDefinitionLink> findAll() { 859 return getPersistence().findAll(); 860 } 861 862 /** 863 * Returns a range of all the workflow definition links. 864 * 865 * <p> 866 * 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. 867 * </p> 868 * 869 * @param start the lower bound of the range of workflow definition links 870 * @param end the upper bound of the range of workflow definition links (not inclusive) 871 * @return the range of workflow definition links 872 */ 873 public static List<WorkflowDefinitionLink> findAll(int start, int end) { 874 return getPersistence().findAll(start, end); 875 } 876 877 /** 878 * Returns an ordered range of all the workflow definition links. 879 * 880 * <p> 881 * 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. 882 * </p> 883 * 884 * @param start the lower bound of the range of workflow definition links 885 * @param end the upper bound of the range of workflow definition links (not inclusive) 886 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 887 * @return the ordered range of workflow definition links 888 */ 889 public static List<WorkflowDefinitionLink> findAll(int start, int end, 890 OrderByComparator<WorkflowDefinitionLink> orderByComparator) { 891 return getPersistence().findAll(start, end, orderByComparator); 892 } 893 894 /** 895 * Returns an ordered range of all the workflow definition links. 896 * 897 * <p> 898 * 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. 899 * </p> 900 * 901 * @param start the lower bound of the range of workflow definition links 902 * @param end the upper bound of the range of workflow definition links (not inclusive) 903 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 904 * @param retrieveFromCache whether to retrieve from the finder cache 905 * @return the ordered range of workflow definition links 906 */ 907 public static List<WorkflowDefinitionLink> findAll(int start, int end, 908 OrderByComparator<WorkflowDefinitionLink> orderByComparator, 909 boolean retrieveFromCache) { 910 return getPersistence() 911 .findAll(start, end, orderByComparator, retrieveFromCache); 912 } 913 914 /** 915 * Removes all the workflow definition links from the database. 916 */ 917 public static void removeAll() { 918 getPersistence().removeAll(); 919 } 920 921 /** 922 * Returns the number of workflow definition links. 923 * 924 * @return the number of workflow definition links 925 */ 926 public static int countAll() { 927 return getPersistence().countAll(); 928 } 929 930 public static WorkflowDefinitionLinkPersistence getPersistence() { 931 if (_persistence == null) { 932 _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName()); 933 934 ReferenceRegistry.registerReference(WorkflowDefinitionLinkUtil.class, 935 "_persistence"); 936 } 937 938 return _persistence; 939 } 940 941 private static WorkflowDefinitionLinkPersistence _persistence; 942 }