001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.WorkflowDefinitionLink; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the workflow definition link service. This utility wraps {@link 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. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see WorkflowDefinitionLinkPersistence 036 * @see WorkflowDefinitionLinkPersistenceImpl 037 * @generated 038 */ 039 public class WorkflowDefinitionLinkUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(WorkflowDefinitionLink workflowDefinitionLink) { 057 getPersistence().clearCache(workflowDefinitionLink); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<WorkflowDefinitionLink> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<WorkflowDefinitionLink> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 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 orderByComparator) throws SystemException { 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, boolean) 098 */ 099 public static WorkflowDefinitionLink update( 100 WorkflowDefinitionLink workflowDefinitionLink, boolean merge) 101 throws SystemException { 102 return getPersistence().update(workflowDefinitionLink, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static WorkflowDefinitionLink update( 109 WorkflowDefinitionLink workflowDefinitionLink, boolean merge, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence() 112 .update(workflowDefinitionLink, merge, serviceContext); 113 } 114 115 /** 116 * Caches the workflow definition link in the entity cache if it is enabled. 117 * 118 * @param workflowDefinitionLink the workflow definition link 119 */ 120 public static void cacheResult( 121 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) { 122 getPersistence().cacheResult(workflowDefinitionLink); 123 } 124 125 /** 126 * Caches the workflow definition links in the entity cache if it is enabled. 127 * 128 * @param workflowDefinitionLinks the workflow definition links 129 */ 130 public static void cacheResult( 131 java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks) { 132 getPersistence().cacheResult(workflowDefinitionLinks); 133 } 134 135 /** 136 * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database. 137 * 138 * @param workflowDefinitionLinkId the primary key for the new workflow definition link 139 * @return the new workflow definition link 140 */ 141 public static com.liferay.portal.model.WorkflowDefinitionLink create( 142 long workflowDefinitionLinkId) { 143 return getPersistence().create(workflowDefinitionLinkId); 144 } 145 146 /** 147 * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners. 148 * 149 * @param workflowDefinitionLinkId the primary key of the workflow definition link 150 * @return the workflow definition link that was removed 151 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 152 * @throws SystemException if a system exception occurred 153 */ 154 public static com.liferay.portal.model.WorkflowDefinitionLink remove( 155 long workflowDefinitionLinkId) 156 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 157 com.liferay.portal.kernel.exception.SystemException { 158 return getPersistence().remove(workflowDefinitionLinkId); 159 } 160 161 public static com.liferay.portal.model.WorkflowDefinitionLink updateImpl( 162 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink, 163 boolean merge) 164 throws com.liferay.portal.kernel.exception.SystemException { 165 return getPersistence().updateImpl(workflowDefinitionLink, merge); 166 } 167 168 /** 169 * Returns the workflow definition link with the primary key or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found. 170 * 171 * @param workflowDefinitionLinkId the primary key of the workflow definition link 172 * @return the workflow definition link 173 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public static com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey( 177 long workflowDefinitionLinkId) 178 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 179 com.liferay.portal.kernel.exception.SystemException { 180 return getPersistence().findByPrimaryKey(workflowDefinitionLinkId); 181 } 182 183 /** 184 * Returns the workflow definition link with the primary key or returns <code>null</code> if it could not be found. 185 * 186 * @param workflowDefinitionLinkId the primary key of the workflow definition link 187 * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey( 191 long workflowDefinitionLinkId) 192 throws com.liferay.portal.kernel.exception.SystemException { 193 return getPersistence().fetchByPrimaryKey(workflowDefinitionLinkId); 194 } 195 196 /** 197 * Returns all the workflow definition links where companyId = ?. 198 * 199 * @param companyId the company ID 200 * @return the matching workflow definition links 201 * @throws SystemException if a system exception occurred 202 */ 203 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 204 long companyId) 205 throws com.liferay.portal.kernel.exception.SystemException { 206 return getPersistence().findByCompanyId(companyId); 207 } 208 209 /** 210 * Returns a range of all the workflow definition links where companyId = ?. 211 * 212 * <p> 213 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 214 * </p> 215 * 216 * @param companyId the company ID 217 * @param start the lower bound of the range of workflow definition links 218 * @param end the upper bound of the range of workflow definition links (not inclusive) 219 * @return the range of matching workflow definition links 220 * @throws SystemException if a system exception occurred 221 */ 222 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 223 long companyId, int start, int end) 224 throws com.liferay.portal.kernel.exception.SystemException { 225 return getPersistence().findByCompanyId(companyId, start, end); 226 } 227 228 /** 229 * Returns an ordered range of all the workflow definition links where companyId = ?. 230 * 231 * <p> 232 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 233 * </p> 234 * 235 * @param companyId the company ID 236 * @param start the lower bound of the range of workflow definition links 237 * @param end the upper bound of the range of workflow definition links (not inclusive) 238 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 239 * @return the ordered range of matching workflow definition links 240 * @throws SystemException if a system exception occurred 241 */ 242 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 243 long companyId, int start, int end, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.kernel.exception.SystemException { 246 return getPersistence() 247 .findByCompanyId(companyId, start, end, orderByComparator); 248 } 249 250 /** 251 * Returns the first workflow definition link in the ordered set where companyId = ?. 252 * 253 * @param companyId the company ID 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the first matching workflow definition link 256 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First( 260 long companyId, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 263 com.liferay.portal.kernel.exception.SystemException { 264 return getPersistence() 265 .findByCompanyId_First(companyId, orderByComparator); 266 } 267 268 /** 269 * Returns the first workflow definition link in the ordered set where companyId = ?. 270 * 271 * @param companyId the company ID 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 273 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 274 * @throws SystemException if a system exception occurred 275 */ 276 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_First( 277 long companyId, 278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 279 throws com.liferay.portal.kernel.exception.SystemException { 280 return getPersistence() 281 .fetchByCompanyId_First(companyId, orderByComparator); 282 } 283 284 /** 285 * Returns the last workflow definition link in the ordered set where companyId = ?. 286 * 287 * @param companyId the company ID 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the last matching workflow definition link 290 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last( 294 long companyId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 297 com.liferay.portal.kernel.exception.SystemException { 298 return getPersistence() 299 .findByCompanyId_Last(companyId, orderByComparator); 300 } 301 302 /** 303 * Returns the last workflow definition link in the ordered set where companyId = ?. 304 * 305 * @param companyId the company ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_Last( 311 long companyId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException { 314 return getPersistence() 315 .fetchByCompanyId_Last(companyId, orderByComparator); 316 } 317 318 /** 319 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. 320 * 321 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 322 * @param companyId the company ID 323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 324 * @return the previous, current, and next workflow definition link 325 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext( 329 long workflowDefinitionLinkId, long companyId, 330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 331 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 332 com.liferay.portal.kernel.exception.SystemException { 333 return getPersistence() 334 .findByCompanyId_PrevAndNext(workflowDefinitionLinkId, 335 companyId, orderByComparator); 336 } 337 338 /** 339 * Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 340 * 341 * @param companyId the company ID 342 * @param workflowDefinitionName the workflow definition name 343 * @param workflowDefinitionVersion the workflow definition version 344 * @return the matching workflow definition links 345 * @throws SystemException if a system exception occurred 346 */ 347 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 348 long companyId, java.lang.String workflowDefinitionName, 349 int workflowDefinitionVersion) 350 throws com.liferay.portal.kernel.exception.SystemException { 351 return getPersistence() 352 .findByC_W_W(companyId, workflowDefinitionName, 353 workflowDefinitionVersion); 354 } 355 356 /** 357 * Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 358 * 359 * <p> 360 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 361 * </p> 362 * 363 * @param companyId the company ID 364 * @param workflowDefinitionName the workflow definition name 365 * @param workflowDefinitionVersion the workflow definition version 366 * @param start the lower bound of the range of workflow definition links 367 * @param end the upper bound of the range of workflow definition links (not inclusive) 368 * @return the range of matching workflow definition links 369 * @throws SystemException if a system exception occurred 370 */ 371 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 372 long companyId, java.lang.String workflowDefinitionName, 373 int workflowDefinitionVersion, int start, int end) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence() 376 .findByC_W_W(companyId, workflowDefinitionName, 377 workflowDefinitionVersion, start, end); 378 } 379 380 /** 381 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 382 * 383 * <p> 384 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 385 * </p> 386 * 387 * @param companyId the company ID 388 * @param workflowDefinitionName the workflow definition name 389 * @param workflowDefinitionVersion the workflow definition version 390 * @param start the lower bound of the range of workflow definition links 391 * @param end the upper bound of the range of workflow definition links (not inclusive) 392 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 393 * @return the ordered range of matching workflow definition links 394 * @throws SystemException if a system exception occurred 395 */ 396 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 397 long companyId, java.lang.String workflowDefinitionName, 398 int workflowDefinitionVersion, int start, int end, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.kernel.exception.SystemException { 401 return getPersistence() 402 .findByC_W_W(companyId, workflowDefinitionName, 403 workflowDefinitionVersion, start, end, orderByComparator); 404 } 405 406 /** 407 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 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 com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 415 * @throws SystemException if a system exception occurred 416 */ 417 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First( 418 long companyId, java.lang.String workflowDefinitionName, 419 int workflowDefinitionVersion, 420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 421 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 422 com.liferay.portal.kernel.exception.SystemException { 423 return getPersistence() 424 .findByC_W_W_First(companyId, workflowDefinitionName, 425 workflowDefinitionVersion, orderByComparator); 426 } 427 428 /** 429 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 430 * 431 * @param companyId the company ID 432 * @param workflowDefinitionName the workflow definition name 433 * @param workflowDefinitionVersion the workflow definition version 434 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 435 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_First( 439 long companyId, java.lang.String workflowDefinitionName, 440 int workflowDefinitionVersion, 441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 442 throws com.liferay.portal.kernel.exception.SystemException { 443 return getPersistence() 444 .fetchByC_W_W_First(companyId, workflowDefinitionName, 445 workflowDefinitionVersion, orderByComparator); 446 } 447 448 /** 449 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 450 * 451 * @param companyId the company ID 452 * @param workflowDefinitionName the workflow definition name 453 * @param workflowDefinitionVersion the workflow definition version 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the last matching workflow definition link 456 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last( 460 long companyId, java.lang.String workflowDefinitionName, 461 int workflowDefinitionVersion, 462 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 463 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 464 com.liferay.portal.kernel.exception.SystemException { 465 return getPersistence() 466 .findByC_W_W_Last(companyId, workflowDefinitionName, 467 workflowDefinitionVersion, orderByComparator); 468 } 469 470 /** 471 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 472 * 473 * @param companyId the company ID 474 * @param workflowDefinitionName the workflow definition name 475 * @param workflowDefinitionVersion the workflow definition version 476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 477 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_Last( 481 long companyId, java.lang.String workflowDefinitionName, 482 int workflowDefinitionVersion, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.kernel.exception.SystemException { 485 return getPersistence() 486 .fetchByC_W_W_Last(companyId, workflowDefinitionName, 487 workflowDefinitionVersion, orderByComparator); 488 } 489 490 /** 491 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 492 * 493 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 494 * @param companyId the company ID 495 * @param workflowDefinitionName the workflow definition name 496 * @param workflowDefinitionVersion the workflow definition version 497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 498 * @return the previous, current, and next workflow definition link 499 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 500 * @throws SystemException if a system exception occurred 501 */ 502 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext( 503 long workflowDefinitionLinkId, long companyId, 504 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 507 com.liferay.portal.kernel.exception.SystemException { 508 return getPersistence() 509 .findByC_W_W_PrevAndNext(workflowDefinitionLinkId, 510 companyId, workflowDefinitionName, workflowDefinitionVersion, 511 orderByComparator); 512 } 513 514 /** 515 * Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found. 516 * 517 * @param groupId the group ID 518 * @param companyId the company ID 519 * @param classNameId the class name ID 520 * @param classPK the class p k 521 * @param typePK the type p k 522 * @return the matching workflow definition link 523 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 524 * @throws SystemException if a system exception occurred 525 */ 526 public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_C_T( 527 long groupId, long companyId, long classNameId, long classPK, 528 long typePK) 529 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 530 com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence() 532 .findByG_C_C_C_T(groupId, companyId, classNameId, classPK, 533 typePK); 534 } 535 536 /** 537 * 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. 538 * 539 * @param groupId the group ID 540 * @param companyId the company ID 541 * @param classNameId the class name ID 542 * @param classPK the class p k 543 * @param typePK the type p k 544 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 545 * @throws SystemException if a system exception occurred 546 */ 547 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 548 long groupId, long companyId, long classNameId, long classPK, 549 long typePK) throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence() 551 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 552 typePK); 553 } 554 555 /** 556 * 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. 557 * 558 * @param groupId the group ID 559 * @param companyId the company ID 560 * @param classNameId the class name ID 561 * @param classPK the class p k 562 * @param typePK the type p k 563 * @param retrieveFromCache whether to use the finder cache 564 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 565 * @throws SystemException if a system exception occurred 566 */ 567 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 568 long groupId, long companyId, long classNameId, long classPK, 569 long typePK, boolean retrieveFromCache) 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence() 572 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 573 typePK, retrieveFromCache); 574 } 575 576 /** 577 * Returns all the workflow definition links. 578 * 579 * @return the workflow definition links 580 * @throws SystemException if a system exception occurred 581 */ 582 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll() 583 throws com.liferay.portal.kernel.exception.SystemException { 584 return getPersistence().findAll(); 585 } 586 587 /** 588 * Returns a 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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 * @return the range of workflow definition links 597 * @throws SystemException if a system exception occurred 598 */ 599 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 600 int start, int end) 601 throws com.liferay.portal.kernel.exception.SystemException { 602 return getPersistence().findAll(start, end); 603 } 604 605 /** 606 * Returns an ordered range of all the workflow definition links. 607 * 608 * <p> 609 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 610 * </p> 611 * 612 * @param start the lower bound of the range of workflow definition links 613 * @param end the upper bound of the range of workflow definition links (not inclusive) 614 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 615 * @return the ordered range of workflow definition links 616 * @throws SystemException if a system exception occurred 617 */ 618 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 619 int start, int end, 620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 621 throws com.liferay.portal.kernel.exception.SystemException { 622 return getPersistence().findAll(start, end, orderByComparator); 623 } 624 625 /** 626 * Removes all the workflow definition links where companyId = ? from the database. 627 * 628 * @param companyId the company ID 629 * @throws SystemException if a system exception occurred 630 */ 631 public static void removeByCompanyId(long companyId) 632 throws com.liferay.portal.kernel.exception.SystemException { 633 getPersistence().removeByCompanyId(companyId); 634 } 635 636 /** 637 * Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. 638 * 639 * @param companyId the company ID 640 * @param workflowDefinitionName the workflow definition name 641 * @param workflowDefinitionVersion the workflow definition version 642 * @throws SystemException if a system exception occurred 643 */ 644 public static void removeByC_W_W(long companyId, 645 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 getPersistence() 648 .removeByC_W_W(companyId, workflowDefinitionName, 649 workflowDefinitionVersion); 650 } 651 652 /** 653 * Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. 654 * 655 * @param groupId the group ID 656 * @param companyId the company ID 657 * @param classNameId the class name ID 658 * @param classPK the class p k 659 * @param typePK the type p k 660 * @return the workflow definition link that was removed 661 * @throws SystemException if a system exception occurred 662 */ 663 public static com.liferay.portal.model.WorkflowDefinitionLink removeByG_C_C_C_T( 664 long groupId, long companyId, long classNameId, long classPK, 665 long typePK) 666 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 667 com.liferay.portal.kernel.exception.SystemException { 668 return getPersistence() 669 .removeByG_C_C_C_T(groupId, companyId, classNameId, classPK, 670 typePK); 671 } 672 673 /** 674 * Removes all the workflow definition links from the database. 675 * 676 * @throws SystemException if a system exception occurred 677 */ 678 public static void removeAll() 679 throws com.liferay.portal.kernel.exception.SystemException { 680 getPersistence().removeAll(); 681 } 682 683 /** 684 * Returns the number of workflow definition links where companyId = ?. 685 * 686 * @param companyId the company ID 687 * @return the number of matching workflow definition links 688 * @throws SystemException if a system exception occurred 689 */ 690 public static int countByCompanyId(long companyId) 691 throws com.liferay.portal.kernel.exception.SystemException { 692 return getPersistence().countByCompanyId(companyId); 693 } 694 695 /** 696 * Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 697 * 698 * @param companyId the company ID 699 * @param workflowDefinitionName the workflow definition name 700 * @param workflowDefinitionVersion the workflow definition version 701 * @return the number of matching workflow definition links 702 * @throws SystemException if a system exception occurred 703 */ 704 public static int countByC_W_W(long companyId, 705 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence() 708 .countByC_W_W(companyId, workflowDefinitionName, 709 workflowDefinitionVersion); 710 } 711 712 /** 713 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. 714 * 715 * @param groupId the group ID 716 * @param companyId the company ID 717 * @param classNameId the class name ID 718 * @param classPK the class p k 719 * @param typePK the type p k 720 * @return the number of matching workflow definition links 721 * @throws SystemException if a system exception occurred 722 */ 723 public static int countByG_C_C_C_T(long groupId, long companyId, 724 long classNameId, long classPK, long typePK) 725 throws com.liferay.portal.kernel.exception.SystemException { 726 return getPersistence() 727 .countByG_C_C_C_T(groupId, companyId, classNameId, classPK, 728 typePK); 729 } 730 731 /** 732 * Returns the number of workflow definition links. 733 * 734 * @return the number of workflow definition links 735 * @throws SystemException if a system exception occurred 736 */ 737 public static int countAll() 738 throws com.liferay.portal.kernel.exception.SystemException { 739 return getPersistence().countAll(); 740 } 741 742 public static WorkflowDefinitionLinkPersistence getPersistence() { 743 if (_persistence == null) { 744 _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName()); 745 746 ReferenceRegistry.registerReference(WorkflowDefinitionLinkUtil.class, 747 "_persistence"); 748 } 749 750 return _persistence; 751 } 752 753 /** 754 * @deprecated 755 */ 756 public void setPersistence(WorkflowDefinitionLinkPersistence persistence) { 757 } 758 759 private static WorkflowDefinitionLinkPersistence _persistence; 760 }