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 static 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) 098 */ 099 public static WorkflowDefinitionLink update( 100 WorkflowDefinitionLink workflowDefinitionLink) 101 throws SystemException { 102 return getPersistence().update(workflowDefinitionLink); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static WorkflowDefinitionLink update( 109 WorkflowDefinitionLink workflowDefinitionLink, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(workflowDefinitionLink, serviceContext); 112 } 113 114 /** 115 * Returns all the workflow definition links where companyId = ?. 116 * 117 * @param companyId the company ID 118 * @return the matching workflow definition links 119 * @throws SystemException if a system exception occurred 120 */ 121 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 122 long companyId) 123 throws com.liferay.portal.kernel.exception.SystemException { 124 return getPersistence().findByCompanyId(companyId); 125 } 126 127 /** 128 * Returns a range of all the workflow definition links where companyId = ?. 129 * 130 * <p> 131 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WorkflowDefinitionLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 132 * </p> 133 * 134 * @param companyId the company ID 135 * @param start the lower bound of the range of workflow definition links 136 * @param end the upper bound of the range of workflow definition links (not inclusive) 137 * @return the range of matching workflow definition links 138 * @throws SystemException if a system exception occurred 139 */ 140 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 141 long companyId, int start, int end) 142 throws com.liferay.portal.kernel.exception.SystemException { 143 return getPersistence().findByCompanyId(companyId, start, end); 144 } 145 146 /** 147 * Returns an ordered range of all the workflow definition links where companyId = ?. 148 * 149 * <p> 150 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WorkflowDefinitionLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 151 * </p> 152 * 153 * @param companyId the company ID 154 * @param start the lower bound of the range of workflow definition links 155 * @param end the upper bound of the range of workflow definition links (not inclusive) 156 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 157 * @return the ordered range of matching workflow definition links 158 * @throws SystemException if a system exception occurred 159 */ 160 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 161 long companyId, int start, int end, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence() 165 .findByCompanyId(companyId, start, end, orderByComparator); 166 } 167 168 /** 169 * Returns the first workflow definition link in the ordered set where companyId = ?. 170 * 171 * @param companyId the company ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching workflow definition link 174 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First( 178 long companyId, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 181 com.liferay.portal.kernel.exception.SystemException { 182 return getPersistence() 183 .findByCompanyId_First(companyId, orderByComparator); 184 } 185 186 /** 187 * Returns the first workflow definition link in the ordered set where companyId = ?. 188 * 189 * @param companyId the company ID 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_First( 195 long companyId, 196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 197 throws com.liferay.portal.kernel.exception.SystemException { 198 return getPersistence() 199 .fetchByCompanyId_First(companyId, orderByComparator); 200 } 201 202 /** 203 * Returns the last workflow definition link in the ordered set where companyId = ?. 204 * 205 * @param companyId the company ID 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the last matching workflow definition link 208 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 209 * @throws SystemException if a system exception occurred 210 */ 211 public static com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last( 212 long companyId, 213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 214 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 215 com.liferay.portal.kernel.exception.SystemException { 216 return getPersistence() 217 .findByCompanyId_Last(companyId, orderByComparator); 218 } 219 220 /** 221 * Returns the last workflow definition link in the ordered set where companyId = ?. 222 * 223 * @param companyId the company ID 224 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 225 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 226 * @throws SystemException if a system exception occurred 227 */ 228 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_Last( 229 long companyId, 230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 231 throws com.liferay.portal.kernel.exception.SystemException { 232 return getPersistence() 233 .fetchByCompanyId_Last(companyId, orderByComparator); 234 } 235 236 /** 237 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. 238 * 239 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 240 * @param companyId the company ID 241 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 242 * @return the previous, current, and next workflow definition link 243 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 244 * @throws SystemException if a system exception occurred 245 */ 246 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext( 247 long workflowDefinitionLinkId, long companyId, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 250 com.liferay.portal.kernel.exception.SystemException { 251 return getPersistence() 252 .findByCompanyId_PrevAndNext(workflowDefinitionLinkId, 253 companyId, orderByComparator); 254 } 255 256 /** 257 * Removes all the workflow definition links where companyId = ? from the database. 258 * 259 * @param companyId the company ID 260 * @throws SystemException if a system exception occurred 261 */ 262 public static void removeByCompanyId(long companyId) 263 throws com.liferay.portal.kernel.exception.SystemException { 264 getPersistence().removeByCompanyId(companyId); 265 } 266 267 /** 268 * Returns the number of workflow definition links where companyId = ?. 269 * 270 * @param companyId the company ID 271 * @return the number of matching workflow definition links 272 * @throws SystemException if a system exception occurred 273 */ 274 public static int countByCompanyId(long companyId) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().countByCompanyId(companyId); 277 } 278 279 /** 280 * Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 281 * 282 * @param companyId the company ID 283 * @param workflowDefinitionName the workflow definition name 284 * @param workflowDefinitionVersion the workflow definition version 285 * @return the matching workflow definition links 286 * @throws SystemException if a system exception occurred 287 */ 288 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 289 long companyId, java.lang.String workflowDefinitionName, 290 int workflowDefinitionVersion) 291 throws com.liferay.portal.kernel.exception.SystemException { 292 return getPersistence() 293 .findByC_W_W(companyId, workflowDefinitionName, 294 workflowDefinitionVersion); 295 } 296 297 /** 298 * Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 299 * 300 * <p> 301 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WorkflowDefinitionLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 302 * </p> 303 * 304 * @param companyId the company ID 305 * @param workflowDefinitionName the workflow definition name 306 * @param workflowDefinitionVersion the workflow definition version 307 * @param start the lower bound of the range of workflow definition links 308 * @param end the upper bound of the range of workflow definition links (not inclusive) 309 * @return the range of matching workflow definition links 310 * @throws SystemException if a system exception occurred 311 */ 312 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 313 long companyId, java.lang.String workflowDefinitionName, 314 int workflowDefinitionVersion, int start, int end) 315 throws com.liferay.portal.kernel.exception.SystemException { 316 return getPersistence() 317 .findByC_W_W(companyId, workflowDefinitionName, 318 workflowDefinitionVersion, start, end); 319 } 320 321 /** 322 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 323 * 324 * <p> 325 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WorkflowDefinitionLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 326 * </p> 327 * 328 * @param companyId the company ID 329 * @param workflowDefinitionName the workflow definition name 330 * @param workflowDefinitionVersion the workflow definition version 331 * @param start the lower bound of the range of workflow definition links 332 * @param end the upper bound of the range of workflow definition links (not inclusive) 333 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 334 * @return the ordered range of matching workflow definition links 335 * @throws SystemException if a system exception occurred 336 */ 337 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 338 long companyId, java.lang.String workflowDefinitionName, 339 int workflowDefinitionVersion, int start, int end, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.kernel.exception.SystemException { 342 return getPersistence() 343 .findByC_W_W(companyId, workflowDefinitionName, 344 workflowDefinitionVersion, start, end, orderByComparator); 345 } 346 347 /** 348 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 349 * 350 * @param companyId the company ID 351 * @param workflowDefinitionName the workflow definition name 352 * @param workflowDefinitionVersion the workflow definition version 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the first matching workflow definition link 355 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 356 * @throws SystemException if a system exception occurred 357 */ 358 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First( 359 long companyId, java.lang.String workflowDefinitionName, 360 int workflowDefinitionVersion, 361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 362 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 363 com.liferay.portal.kernel.exception.SystemException { 364 return getPersistence() 365 .findByC_W_W_First(companyId, workflowDefinitionName, 366 workflowDefinitionVersion, orderByComparator); 367 } 368 369 /** 370 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 371 * 372 * @param companyId the company ID 373 * @param workflowDefinitionName the workflow definition name 374 * @param workflowDefinitionVersion the workflow definition version 375 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 376 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_First( 380 long companyId, java.lang.String workflowDefinitionName, 381 int workflowDefinitionVersion, 382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 383 throws com.liferay.portal.kernel.exception.SystemException { 384 return getPersistence() 385 .fetchByC_W_W_First(companyId, workflowDefinitionName, 386 workflowDefinitionVersion, orderByComparator); 387 } 388 389 /** 390 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 391 * 392 * @param companyId the company ID 393 * @param workflowDefinitionName the workflow definition name 394 * @param workflowDefinitionVersion the workflow definition version 395 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 396 * @return the last matching workflow definition link 397 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 398 * @throws SystemException if a system exception occurred 399 */ 400 public static com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last( 401 long companyId, java.lang.String workflowDefinitionName, 402 int workflowDefinitionVersion, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 405 com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence() 407 .findByC_W_W_Last(companyId, workflowDefinitionName, 408 workflowDefinitionVersion, orderByComparator); 409 } 410 411 /** 412 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 413 * 414 * @param companyId the company ID 415 * @param workflowDefinitionName the workflow definition name 416 * @param workflowDefinitionVersion the workflow definition version 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 419 * @throws SystemException if a system exception occurred 420 */ 421 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_Last( 422 long companyId, java.lang.String workflowDefinitionName, 423 int workflowDefinitionVersion, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.kernel.exception.SystemException { 426 return getPersistence() 427 .fetchByC_W_W_Last(companyId, workflowDefinitionName, 428 workflowDefinitionVersion, orderByComparator); 429 } 430 431 /** 432 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 433 * 434 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 435 * @param companyId the company ID 436 * @param workflowDefinitionName the workflow definition name 437 * @param workflowDefinitionVersion the workflow definition version 438 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 439 * @return the previous, current, and next workflow definition link 440 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 441 * @throws SystemException if a system exception occurred 442 */ 443 public static com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext( 444 long workflowDefinitionLinkId, long companyId, 445 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 448 com.liferay.portal.kernel.exception.SystemException { 449 return getPersistence() 450 .findByC_W_W_PrevAndNext(workflowDefinitionLinkId, 451 companyId, workflowDefinitionName, workflowDefinitionVersion, 452 orderByComparator); 453 } 454 455 /** 456 * Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. 457 * 458 * @param companyId the company ID 459 * @param workflowDefinitionName the workflow definition name 460 * @param workflowDefinitionVersion the workflow definition version 461 * @throws SystemException if a system exception occurred 462 */ 463 public static void removeByC_W_W(long companyId, 464 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 465 throws com.liferay.portal.kernel.exception.SystemException { 466 getPersistence() 467 .removeByC_W_W(companyId, workflowDefinitionName, 468 workflowDefinitionVersion); 469 } 470 471 /** 472 * Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 473 * 474 * @param companyId the company ID 475 * @param workflowDefinitionName the workflow definition name 476 * @param workflowDefinitionVersion the workflow definition version 477 * @return the number of matching workflow definition links 478 * @throws SystemException if a system exception occurred 479 */ 480 public static int countByC_W_W(long companyId, 481 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 482 throws com.liferay.portal.kernel.exception.SystemException { 483 return getPersistence() 484 .countByC_W_W(companyId, workflowDefinitionName, 485 workflowDefinitionVersion); 486 } 487 488 /** 489 * 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. 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 497 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 498 * @throws SystemException if a system exception occurred 499 */ 500 public static com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_C_T( 501 long groupId, long companyId, long classNameId, long classPK, 502 long typePK) 503 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 504 com.liferay.portal.kernel.exception.SystemException { 505 return getPersistence() 506 .findByG_C_C_C_T(groupId, companyId, classNameId, classPK, 507 typePK); 508 } 509 510 /** 511 * 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. 512 * 513 * @param groupId the group ID 514 * @param companyId the company ID 515 * @param classNameId the class name ID 516 * @param classPK the class p k 517 * @param typePK the type p k 518 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 519 * @throws SystemException if a system exception occurred 520 */ 521 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 522 long groupId, long companyId, long classNameId, long classPK, 523 long typePK) throws com.liferay.portal.kernel.exception.SystemException { 524 return getPersistence() 525 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 526 typePK); 527 } 528 529 /** 530 * 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. 531 * 532 * @param groupId the group ID 533 * @param companyId the company ID 534 * @param classNameId the class name ID 535 * @param classPK the class p k 536 * @param typePK the type p k 537 * @param retrieveFromCache whether to use the finder cache 538 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 539 * @throws SystemException if a system exception occurred 540 */ 541 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 542 long groupId, long companyId, long classNameId, long classPK, 543 long typePK, boolean retrieveFromCache) 544 throws com.liferay.portal.kernel.exception.SystemException { 545 return getPersistence() 546 .fetchByG_C_C_C_T(groupId, companyId, classNameId, classPK, 547 typePK, retrieveFromCache); 548 } 549 550 /** 551 * Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. 552 * 553 * @param groupId the group ID 554 * @param companyId the company ID 555 * @param classNameId the class name ID 556 * @param classPK the class p k 557 * @param typePK the type p k 558 * @return the workflow definition link that was removed 559 * @throws SystemException if a system exception occurred 560 */ 561 public static com.liferay.portal.model.WorkflowDefinitionLink removeByG_C_C_C_T( 562 long groupId, long companyId, long classNameId, long classPK, 563 long typePK) 564 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 565 com.liferay.portal.kernel.exception.SystemException { 566 return getPersistence() 567 .removeByG_C_C_C_T(groupId, companyId, classNameId, classPK, 568 typePK); 569 } 570 571 /** 572 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. 573 * 574 * @param groupId the group ID 575 * @param companyId the company ID 576 * @param classNameId the class name ID 577 * @param classPK the class p k 578 * @param typePK the type p k 579 * @return the number of matching workflow definition links 580 * @throws SystemException if a system exception occurred 581 */ 582 public static int countByG_C_C_C_T(long groupId, long companyId, 583 long classNameId, long classPK, long typePK) 584 throws com.liferay.portal.kernel.exception.SystemException { 585 return getPersistence() 586 .countByG_C_C_C_T(groupId, companyId, classNameId, classPK, 587 typePK); 588 } 589 590 /** 591 * Caches the workflow definition link in the entity cache if it is enabled. 592 * 593 * @param workflowDefinitionLink the workflow definition link 594 */ 595 public static void cacheResult( 596 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) { 597 getPersistence().cacheResult(workflowDefinitionLink); 598 } 599 600 /** 601 * Caches the workflow definition links in the entity cache if it is enabled. 602 * 603 * @param workflowDefinitionLinks the workflow definition links 604 */ 605 public static void cacheResult( 606 java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks) { 607 getPersistence().cacheResult(workflowDefinitionLinks); 608 } 609 610 /** 611 * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database. 612 * 613 * @param workflowDefinitionLinkId the primary key for the new workflow definition link 614 * @return the new workflow definition link 615 */ 616 public static com.liferay.portal.model.WorkflowDefinitionLink create( 617 long workflowDefinitionLinkId) { 618 return getPersistence().create(workflowDefinitionLinkId); 619 } 620 621 /** 622 * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners. 623 * 624 * @param workflowDefinitionLinkId the primary key of the workflow definition link 625 * @return the workflow definition link that was removed 626 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 627 * @throws SystemException if a system exception occurred 628 */ 629 public static com.liferay.portal.model.WorkflowDefinitionLink remove( 630 long workflowDefinitionLinkId) 631 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 632 com.liferay.portal.kernel.exception.SystemException { 633 return getPersistence().remove(workflowDefinitionLinkId); 634 } 635 636 public static com.liferay.portal.model.WorkflowDefinitionLink updateImpl( 637 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence().updateImpl(workflowDefinitionLink); 640 } 641 642 /** 643 * Returns the workflow definition link with the primary key or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found. 644 * 645 * @param workflowDefinitionLinkId the primary key of the workflow definition link 646 * @return the workflow definition link 647 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 648 * @throws SystemException if a system exception occurred 649 */ 650 public static com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey( 651 long workflowDefinitionLinkId) 652 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 653 com.liferay.portal.kernel.exception.SystemException { 654 return getPersistence().findByPrimaryKey(workflowDefinitionLinkId); 655 } 656 657 /** 658 * Returns the workflow definition link with the primary key or returns <code>null</code> if it could not be found. 659 * 660 * @param workflowDefinitionLinkId the primary key of the workflow definition link 661 * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found 662 * @throws SystemException if a system exception occurred 663 */ 664 public static com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey( 665 long workflowDefinitionLinkId) 666 throws com.liferay.portal.kernel.exception.SystemException { 667 return getPersistence().fetchByPrimaryKey(workflowDefinitionLinkId); 668 } 669 670 /** 671 * Returns all the workflow definition links. 672 * 673 * @return the workflow definition links 674 * @throws SystemException if a system exception occurred 675 */ 676 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll() 677 throws com.liferay.portal.kernel.exception.SystemException { 678 return getPersistence().findAll(); 679 } 680 681 /** 682 * Returns a range of all the workflow definition links. 683 * 684 * <p> 685 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WorkflowDefinitionLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 686 * </p> 687 * 688 * @param start the lower bound of the range of workflow definition links 689 * @param end the upper bound of the range of workflow definition links (not inclusive) 690 * @return the range of workflow definition links 691 * @throws SystemException if a system exception occurred 692 */ 693 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 694 int start, int end) 695 throws com.liferay.portal.kernel.exception.SystemException { 696 return getPersistence().findAll(start, end); 697 } 698 699 /** 700 * Returns an ordered range of all the workflow definition links. 701 * 702 * <p> 703 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WorkflowDefinitionLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 704 * </p> 705 * 706 * @param start the lower bound of the range of workflow definition links 707 * @param end the upper bound of the range of workflow definition links (not inclusive) 708 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 709 * @return the ordered range of workflow definition links 710 * @throws SystemException if a system exception occurred 711 */ 712 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 713 int start, int end, 714 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 715 throws com.liferay.portal.kernel.exception.SystemException { 716 return getPersistence().findAll(start, end, orderByComparator); 717 } 718 719 /** 720 * Removes all the workflow definition links from the database. 721 * 722 * @throws SystemException if a system exception occurred 723 */ 724 public static void removeAll() 725 throws com.liferay.portal.kernel.exception.SystemException { 726 getPersistence().removeAll(); 727 } 728 729 /** 730 * Returns the number of workflow definition links. 731 * 732 * @return the number of workflow definition links 733 * @throws SystemException if a system exception occurred 734 */ 735 public static int countAll() 736 throws com.liferay.portal.kernel.exception.SystemException { 737 return getPersistence().countAll(); 738 } 739 740 public static WorkflowDefinitionLinkPersistence getPersistence() { 741 if (_persistence == null) { 742 _persistence = (WorkflowDefinitionLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkPersistence.class.getName()); 743 744 ReferenceRegistry.registerReference(WorkflowDefinitionLinkUtil.class, 745 "_persistence"); 746 } 747 748 return _persistence; 749 } 750 751 /** 752 * @deprecated As of 6.2.0 753 */ 754 public void setPersistence(WorkflowDefinitionLinkPersistence persistence) { 755 } 756 757 private static WorkflowDefinitionLinkPersistence _persistence; 758 }