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