001 /** 002 * Copyright (c) 2000-2012 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 * <p> 254 * 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. 255 * </p> 256 * 257 * @param companyId the company ID 258 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 259 * @return the first matching workflow definition link 260 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 261 * @throws SystemException if a system exception occurred 262 */ 263 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First( 264 long companyId, 265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 266 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 267 com.liferay.portal.kernel.exception.SystemException { 268 return getPersistence() 269 .findByCompanyId_First(companyId, orderByComparator); 270 } 271 272 /** 273 * Returns the last workflow definition link in the ordered set where companyId = ?. 274 * 275 * <p> 276 * 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. 277 * </p> 278 * 279 * @param companyId the company ID 280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 281 * @return the last matching workflow definition link 282 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 283 * @throws SystemException if a system exception occurred 284 */ 285 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last( 286 long companyId, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 289 com.liferay.portal.kernel.exception.SystemException { 290 return getPersistence() 291 .findByCompanyId_Last(companyId, orderByComparator); 292 } 293 294 /** 295 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. 296 * 297 * <p> 298 * 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. 299 * </p> 300 * 301 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 302 * @param companyId the company ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the previous, current, and next workflow definition link 305 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext( 309 long workflowDefinitionLinkId, long companyId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 312 com.liferay.portal.kernel.exception.SystemException { 313 return getPersistence() 314 .findByCompanyId_PrevAndNext(workflowDefinitionLinkId, 315 companyId, orderByComparator); 316 } 317 318 /** 319 * Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 320 * 321 * @param companyId the company ID 322 * @param workflowDefinitionName the workflow definition name 323 * @param workflowDefinitionVersion the workflow definition version 324 * @return the matching workflow definition links 325 * @throws SystemException if a system exception occurred 326 */ 327 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 328 long companyId, java.lang.String workflowDefinitionName, 329 int workflowDefinitionVersion) 330 throws com.liferay.portal.kernel.exception.SystemException { 331 return getPersistence() 332 .findByC_W_W(companyId, workflowDefinitionName, 333 workflowDefinitionVersion); 334 } 335 336 /** 337 * Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 338 * 339 * <p> 340 * 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. 341 * </p> 342 * 343 * @param companyId the company ID 344 * @param workflowDefinitionName the workflow definition name 345 * @param workflowDefinitionVersion the workflow definition version 346 * @param start the lower bound of the range of workflow definition links 347 * @param end the upper bound of the range of workflow definition links (not inclusive) 348 * @return the range of matching workflow definition links 349 * @throws SystemException if a system exception occurred 350 */ 351 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 352 long companyId, java.lang.String workflowDefinitionName, 353 int workflowDefinitionVersion, int start, int end) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence() 356 .findByC_W_W(companyId, workflowDefinitionName, 357 workflowDefinitionVersion, start, end); 358 } 359 360 /** 361 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 362 * 363 * <p> 364 * 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. 365 * </p> 366 * 367 * @param companyId the company ID 368 * @param workflowDefinitionName the workflow definition name 369 * @param workflowDefinitionVersion the workflow definition version 370 * @param start the lower bound of the range of workflow definition links 371 * @param end the upper bound of the range of workflow definition links (not inclusive) 372 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 373 * @return the ordered range of matching workflow definition links 374 * @throws SystemException if a system exception occurred 375 */ 376 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 377 long companyId, java.lang.String workflowDefinitionName, 378 int workflowDefinitionVersion, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence() 382 .findByC_W_W(companyId, workflowDefinitionName, 383 workflowDefinitionVersion, start, end, orderByComparator); 384 } 385 386 /** 387 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param companyId the company ID 394 * @param workflowDefinitionName the workflow definition name 395 * @param workflowDefinitionVersion the workflow definition version 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the first matching workflow definition link 398 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First( 402 long companyId, java.lang.String workflowDefinitionName, 403 int workflowDefinitionVersion, 404 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 405 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 406 com.liferay.portal.kernel.exception.SystemException { 407 return getPersistence() 408 .findByC_W_W_First(companyId, workflowDefinitionName, 409 workflowDefinitionVersion, orderByComparator); 410 } 411 412 /** 413 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param companyId the company ID 420 * @param workflowDefinitionName the workflow definition name 421 * @param workflowDefinitionVersion the workflow definition version 422 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 423 * @return the last matching workflow definition link 424 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last( 428 long companyId, java.lang.String workflowDefinitionName, 429 int workflowDefinitionVersion, 430 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 431 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 432 com.liferay.portal.kernel.exception.SystemException { 433 return getPersistence() 434 .findByC_W_W_Last(companyId, workflowDefinitionName, 435 workflowDefinitionVersion, orderByComparator); 436 } 437 438 /** 439 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 440 * 441 * <p> 442 * 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. 443 * </p> 444 * 445 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 446 * @param companyId the company ID 447 * @param workflowDefinitionName the workflow definition name 448 * @param workflowDefinitionVersion the workflow definition version 449 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 450 * @return the previous, current, and next workflow definition link 451 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext( 455 long workflowDefinitionLinkId, long companyId, 456 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 458 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 459 com.liferay.portal.kernel.exception.SystemException { 460 return getPersistence() 461 .findByC_W_W_PrevAndNext(workflowDefinitionLinkId, 462 companyId, workflowDefinitionName, workflowDefinitionVersion, 463 orderByComparator); 464 } 465 466 /** 467 * 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. 468 * 469 * @param groupId the group ID 470 * @param companyId the company ID 471 * @param classNameId the class name ID 472 * @param classPK the class p k 473 * @param typePK the type p k 474 * @return the matching workflow definition link 475 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 476 * @throws SystemException if a system exception occurred 477 */ 478 public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_C_T( 479 long groupId, long companyId, long classNameId, long classPK, 480 long typePK) 481 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 482 com.liferay.portal.kernel.exception.SystemException { 483 return getPersistence() 484 .findByG_C_C_C_T(groupId, companyId, classNameId, classPK, 485 typePK); 486 } 487 488 /** 489 * 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. 490 * 491 * @param groupId the group ID 492 * @param companyId the company ID 493 * @param classNameId the class name ID 494 * @param classPK the class p k 495 * @param typePK the type p k 496 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 497 * @throws SystemException if a system exception occurred 498 */ 499 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 500 long groupId, long companyId, long classNameId, long classPK, 501 long typePK) throws com.liferay.portal.kernel.exception.SystemException { 502 return getPersistence() 503 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 504 typePK); 505 } 506 507 /** 508 * 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. 509 * 510 * @param groupId the group ID 511 * @param companyId the company ID 512 * @param classNameId the class name ID 513 * @param classPK the class p k 514 * @param typePK the type p k 515 * @param retrieveFromCache whether to use the finder cache 516 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 517 * @throws SystemException if a system exception occurred 518 */ 519 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 520 long groupId, long companyId, long classNameId, long classPK, 521 long typePK, boolean retrieveFromCache) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence() 524 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 525 typePK, retrieveFromCache); 526 } 527 528 /** 529 * Returns all the workflow definition links. 530 * 531 * @return the workflow definition links 532 * @throws SystemException if a system exception occurred 533 */ 534 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll() 535 throws com.liferay.portal.kernel.exception.SystemException { 536 return getPersistence().findAll(); 537 } 538 539 /** 540 * Returns a range of all the workflow definition links. 541 * 542 * <p> 543 * 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. 544 * </p> 545 * 546 * @param start the lower bound of the range of workflow definition links 547 * @param end the upper bound of the range of workflow definition links (not inclusive) 548 * @return the range of workflow definition links 549 * @throws SystemException if a system exception occurred 550 */ 551 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 552 int start, int end) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence().findAll(start, end); 555 } 556 557 /** 558 * Returns an ordered range of all the workflow definition links. 559 * 560 * <p> 561 * 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. 562 * </p> 563 * 564 * @param start the lower bound of the range of workflow definition links 565 * @param end the upper bound of the range of workflow definition links (not inclusive) 566 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 567 * @return the ordered range of workflow definition links 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 571 int start, int end, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return getPersistence().findAll(start, end, orderByComparator); 575 } 576 577 /** 578 * Removes all the workflow definition links where companyId = ? from the database. 579 * 580 * @param companyId the company ID 581 * @throws SystemException if a system exception occurred 582 */ 583 public static void removeByCompanyId(long companyId) 584 throws com.liferay.portal.kernel.exception.SystemException { 585 getPersistence().removeByCompanyId(companyId); 586 } 587 588 /** 589 * Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. 590 * 591 * @param companyId the company ID 592 * @param workflowDefinitionName the workflow definition name 593 * @param workflowDefinitionVersion the workflow definition version 594 * @throws SystemException if a system exception occurred 595 */ 596 public static void removeByC_W_W(long companyId, 597 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 598 throws com.liferay.portal.kernel.exception.SystemException { 599 getPersistence() 600 .removeByC_W_W(companyId, workflowDefinitionName, 601 workflowDefinitionVersion); 602 } 603 604 /** 605 * Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. 606 * 607 * @param groupId the group ID 608 * @param companyId the company ID 609 * @param classNameId the class name ID 610 * @param classPK the class p k 611 * @param typePK the type p k 612 * @throws SystemException if a system exception occurred 613 */ 614 public static void removeByG_C_C_C_T(long groupId, long companyId, 615 long classNameId, long classPK, long typePK) 616 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 617 com.liferay.portal.kernel.exception.SystemException { 618 getPersistence() 619 .removeByG_C_C_C_T(groupId, companyId, classNameId, classPK, typePK); 620 } 621 622 /** 623 * Removes all the workflow definition links from the database. 624 * 625 * @throws SystemException if a system exception occurred 626 */ 627 public static void removeAll() 628 throws com.liferay.portal.kernel.exception.SystemException { 629 getPersistence().removeAll(); 630 } 631 632 /** 633 * Returns the number of workflow definition links where companyId = ?. 634 * 635 * @param companyId the company ID 636 * @return the number of matching workflow definition links 637 * @throws SystemException if a system exception occurred 638 */ 639 public static int countByCompanyId(long companyId) 640 throws com.liferay.portal.kernel.exception.SystemException { 641 return getPersistence().countByCompanyId(companyId); 642 } 643 644 /** 645 * Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 646 * 647 * @param companyId the company ID 648 * @param workflowDefinitionName the workflow definition name 649 * @param workflowDefinitionVersion the workflow definition version 650 * @return the number of matching workflow definition links 651 * @throws SystemException if a system exception occurred 652 */ 653 public static int countByC_W_W(long companyId, 654 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 655 throws com.liferay.portal.kernel.exception.SystemException { 656 return getPersistence() 657 .countByC_W_W(companyId, workflowDefinitionName, 658 workflowDefinitionVersion); 659 } 660 661 /** 662 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. 663 * 664 * @param groupId the group ID 665 * @param companyId the company ID 666 * @param classNameId the class name ID 667 * @param classPK the class p k 668 * @param typePK the type p k 669 * @return the number of matching workflow definition links 670 * @throws SystemException if a system exception occurred 671 */ 672 public static int countByG_C_C_C_T(long groupId, long companyId, 673 long classNameId, long classPK, long typePK) 674 throws com.liferay.portal.kernel.exception.SystemException { 675 return getPersistence() 676 .countByG_C_C_C_T(groupId, companyId, classNameId, classPK, 677 typePK); 678 } 679 680 /** 681 * Returns the number of workflow definition links. 682 * 683 * @return the number of workflow definition links 684 * @throws SystemException if a system exception occurred 685 */ 686 public static int countAll() 687 throws com.liferay.portal.kernel.exception.SystemException { 688 return getPersistence().countAll(); 689 } 690 691 public static WorkflowDefinitionLinkPersistence getPersistence() { 692 if (_persistence == null) { 693 _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName()); 694 695 ReferenceRegistry.registerReference(WorkflowDefinitionLinkUtil.class, 696 "_persistence"); 697 } 698 699 return _persistence; 700 } 701 702 public void setPersistence(WorkflowDefinitionLinkPersistence persistence) { 703 _persistence = persistence; 704 705 ReferenceRegistry.registerReference(WorkflowDefinitionLinkUtil.class, 706 "_persistence"); 707 } 708 709 private static WorkflowDefinitionLinkPersistence _persistence; 710 }