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