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