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