001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.WorkflowDefinitionLink; 018 019 /** 020 * The persistence interface for the workflow definition link service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see WorkflowDefinitionLinkPersistenceImpl 028 * @see WorkflowDefinitionLinkUtil 029 * @generated 030 */ 031 public interface WorkflowDefinitionLinkPersistence extends BasePersistence<WorkflowDefinitionLink> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link WorkflowDefinitionLinkUtil} to access the workflow definition link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Returns all the workflow definition links where companyId = ?. 040 * 041 * @param companyId the company ID 042 * @return the matching workflow definition links 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 046 long companyId) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the workflow definition links where companyId = ?. 051 * 052 * <p> 053 * 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. 054 * </p> 055 * 056 * @param companyId the company ID 057 * @param start the lower bound of the range of workflow definition links 058 * @param end the upper bound of the range of workflow definition links (not inclusive) 059 * @return the range of matching workflow definition links 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 063 long companyId, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the workflow definition links where companyId = ?. 068 * 069 * <p> 070 * 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. 071 * </p> 072 * 073 * @param companyId the company ID 074 * @param start the lower bound of the range of workflow definition links 075 * @param end the upper bound of the range of workflow definition links (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching workflow definition links 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 081 long companyId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first workflow definition link in the ordered set where companyId = ?. 087 * 088 * @param companyId the company ID 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching workflow definition link 091 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First( 095 long companyId, 096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 097 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 098 com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Returns the first workflow definition link in the ordered set where companyId = ?. 102 * 103 * @param companyId the company ID 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 106 * @throws SystemException if a system exception occurred 107 */ 108 public com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_First( 109 long companyId, 110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Returns the last workflow definition link in the ordered set where companyId = ?. 115 * 116 * @param companyId the company ID 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the last matching workflow definition link 119 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 120 * @throws SystemException if a system exception occurred 121 */ 122 public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last( 123 long companyId, 124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 125 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 126 com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Returns the last workflow definition link in the ordered set where companyId = ?. 130 * 131 * @param companyId the company ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 134 * @throws SystemException if a system exception occurred 135 */ 136 public com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_Last( 137 long companyId, 138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 139 throws com.liferay.portal.kernel.exception.SystemException; 140 141 /** 142 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. 143 * 144 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 145 * @param companyId the company ID 146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 147 * @return the previous, current, and next workflow definition link 148 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext( 152 long workflowDefinitionLinkId, long companyId, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 155 com.liferay.portal.kernel.exception.SystemException; 156 157 /** 158 * Removes all the workflow definition links where companyId = ? from the database. 159 * 160 * @param companyId the company ID 161 * @throws SystemException if a system exception occurred 162 */ 163 public void removeByCompanyId(long companyId) 164 throws com.liferay.portal.kernel.exception.SystemException; 165 166 /** 167 * Returns the number of workflow definition links where companyId = ?. 168 * 169 * @param companyId the company ID 170 * @return the number of matching workflow definition links 171 * @throws SystemException if a system exception occurred 172 */ 173 public int countByCompanyId(long companyId) 174 throws com.liferay.portal.kernel.exception.SystemException; 175 176 /** 177 * Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 178 * 179 * @param companyId the company ID 180 * @param workflowDefinitionName the workflow definition name 181 * @param workflowDefinitionVersion the workflow definition version 182 * @return the matching workflow definition links 183 * @throws SystemException if a system exception occurred 184 */ 185 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 186 long companyId, java.lang.String workflowDefinitionName, 187 int workflowDefinitionVersion) 188 throws com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param companyId the company ID 198 * @param workflowDefinitionName the workflow definition name 199 * @param workflowDefinitionVersion the workflow definition version 200 * @param start the lower bound of the range of workflow definition links 201 * @param end the upper bound of the range of workflow definition links (not inclusive) 202 * @return the range of matching workflow definition links 203 * @throws SystemException if a system exception occurred 204 */ 205 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 206 long companyId, java.lang.String workflowDefinitionName, 207 int workflowDefinitionVersion, int start, int end) 208 throws com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 212 * 213 * <p> 214 * 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. 215 * </p> 216 * 217 * @param companyId the company ID 218 * @param workflowDefinitionName the workflow definition name 219 * @param workflowDefinitionVersion the workflow definition version 220 * @param start the lower bound of the range of workflow definition links 221 * @param end the upper bound of the range of workflow definition links (not inclusive) 222 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 223 * @return the ordered range of matching workflow definition links 224 * @throws SystemException if a system exception occurred 225 */ 226 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 227 long companyId, java.lang.String workflowDefinitionName, 228 int workflowDefinitionVersion, int start, int end, 229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 230 throws com.liferay.portal.kernel.exception.SystemException; 231 232 /** 233 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 234 * 235 * @param companyId the company ID 236 * @param workflowDefinitionName the workflow definition name 237 * @param workflowDefinitionVersion the workflow definition version 238 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 239 * @return the first matching workflow definition link 240 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 241 * @throws SystemException if a system exception occurred 242 */ 243 public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First( 244 long companyId, java.lang.String workflowDefinitionName, 245 int workflowDefinitionVersion, 246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 247 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 248 com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 252 * 253 * @param companyId the company ID 254 * @param workflowDefinitionName the workflow definition name 255 * @param workflowDefinitionVersion the workflow definition version 256 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 257 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_First( 261 long companyId, java.lang.String workflowDefinitionName, 262 int workflowDefinitionVersion, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException; 265 266 /** 267 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 268 * 269 * @param companyId the company ID 270 * @param workflowDefinitionName the workflow definition name 271 * @param workflowDefinitionVersion the workflow definition version 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 273 * @return the last matching workflow definition link 274 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 275 * @throws SystemException if a system exception occurred 276 */ 277 public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last( 278 long companyId, java.lang.String workflowDefinitionName, 279 int workflowDefinitionVersion, 280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 281 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 282 com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 286 * 287 * @param companyId the company ID 288 * @param workflowDefinitionName the workflow definition name 289 * @param workflowDefinitionVersion the workflow definition version 290 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 291 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_Last( 295 long companyId, java.lang.String workflowDefinitionName, 296 int workflowDefinitionVersion, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 302 * 303 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 304 * @param companyId the company ID 305 * @param workflowDefinitionName the workflow definition name 306 * @param workflowDefinitionVersion the workflow definition version 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the previous, current, and next workflow definition link 309 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext( 313 long workflowDefinitionLinkId, long companyId, 314 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 316 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 317 com.liferay.portal.kernel.exception.SystemException; 318 319 /** 320 * Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. 321 * 322 * @param companyId the company ID 323 * @param workflowDefinitionName the workflow definition name 324 * @param workflowDefinitionVersion the workflow definition version 325 * @throws SystemException if a system exception occurred 326 */ 327 public void removeByC_W_W(long companyId, 328 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 329 throws com.liferay.portal.kernel.exception.SystemException; 330 331 /** 332 * Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 333 * 334 * @param companyId the company ID 335 * @param workflowDefinitionName the workflow definition name 336 * @param workflowDefinitionVersion the workflow definition version 337 * @return the number of matching workflow definition links 338 * @throws SystemException if a system exception occurred 339 */ 340 public int countByC_W_W(long companyId, 341 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * 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. 346 * 347 * @param groupId the group ID 348 * @param companyId the company ID 349 * @param classNameId the class name ID 350 * @param classPK the class p k 351 * @param typePK the type p k 352 * @return the matching workflow definition link 353 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 354 * @throws SystemException if a system exception occurred 355 */ 356 public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_C_T( 357 long groupId, long companyId, long classNameId, long classPK, 358 long typePK) 359 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 360 com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * 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. 364 * 365 * @param groupId the group ID 366 * @param companyId the company ID 367 * @param classNameId the class name ID 368 * @param classPK the class p k 369 * @param typePK the type p k 370 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 371 * @throws SystemException if a system exception occurred 372 */ 373 public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 374 long groupId, long companyId, long classNameId, long classPK, 375 long typePK) throws com.liferay.portal.kernel.exception.SystemException; 376 377 /** 378 * 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. 379 * 380 * @param groupId the group ID 381 * @param companyId the company ID 382 * @param classNameId the class name ID 383 * @param classPK the class p k 384 * @param typePK the type p k 385 * @param retrieveFromCache whether to use the finder cache 386 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 390 long groupId, long companyId, long classNameId, long classPK, 391 long typePK, boolean retrieveFromCache) 392 throws com.liferay.portal.kernel.exception.SystemException; 393 394 /** 395 * Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. 396 * 397 * @param groupId the group ID 398 * @param companyId the company ID 399 * @param classNameId the class name ID 400 * @param classPK the class p k 401 * @param typePK the type p k 402 * @return the workflow definition link that was removed 403 * @throws SystemException if a system exception occurred 404 */ 405 public com.liferay.portal.model.WorkflowDefinitionLink removeByG_C_C_C_T( 406 long groupId, long companyId, long classNameId, long classPK, 407 long typePK) 408 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 409 com.liferay.portal.kernel.exception.SystemException; 410 411 /** 412 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. 413 * 414 * @param groupId the group ID 415 * @param companyId the company ID 416 * @param classNameId the class name ID 417 * @param classPK the class p k 418 * @param typePK the type p k 419 * @return the number of matching workflow definition links 420 * @throws SystemException if a system exception occurred 421 */ 422 public int countByG_C_C_C_T(long groupId, long companyId, long classNameId, 423 long classPK, long typePK) 424 throws com.liferay.portal.kernel.exception.SystemException; 425 426 /** 427 * Caches the workflow definition link in the entity cache if it is enabled. 428 * 429 * @param workflowDefinitionLink the workflow definition link 430 */ 431 public void cacheResult( 432 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink); 433 434 /** 435 * Caches the workflow definition links in the entity cache if it is enabled. 436 * 437 * @param workflowDefinitionLinks the workflow definition links 438 */ 439 public void cacheResult( 440 java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks); 441 442 /** 443 * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database. 444 * 445 * @param workflowDefinitionLinkId the primary key for the new workflow definition link 446 * @return the new workflow definition link 447 */ 448 public com.liferay.portal.model.WorkflowDefinitionLink create( 449 long workflowDefinitionLinkId); 450 451 /** 452 * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners. 453 * 454 * @param workflowDefinitionLinkId the primary key of the workflow definition link 455 * @return the workflow definition link that was removed 456 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portal.model.WorkflowDefinitionLink remove( 460 long workflowDefinitionLinkId) 461 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 462 com.liferay.portal.kernel.exception.SystemException; 463 464 public com.liferay.portal.model.WorkflowDefinitionLink updateImpl( 465 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) 466 throws com.liferay.portal.kernel.exception.SystemException; 467 468 /** 469 * Returns the workflow definition link with the primary key or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found. 470 * 471 * @param workflowDefinitionLinkId the primary key of the workflow definition link 472 * @return the workflow definition link 473 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey( 477 long workflowDefinitionLinkId) 478 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException, 479 com.liferay.portal.kernel.exception.SystemException; 480 481 /** 482 * Returns the workflow definition link with the primary key or returns <code>null</code> if it could not be found. 483 * 484 * @param workflowDefinitionLinkId the primary key of the workflow definition link 485 * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found 486 * @throws SystemException if a system exception occurred 487 */ 488 public com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey( 489 long workflowDefinitionLinkId) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns all the workflow definition links. 494 * 495 * @return the workflow definition links 496 * @throws SystemException if a system exception occurred 497 */ 498 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll() 499 throws com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Returns a range of all the workflow definition links. 503 * 504 * <p> 505 * 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. 506 * </p> 507 * 508 * @param start the lower bound of the range of workflow definition links 509 * @param end the upper bound of the range of workflow definition links (not inclusive) 510 * @return the range of workflow definition links 511 * @throws SystemException if a system exception occurred 512 */ 513 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 514 int start, int end) 515 throws com.liferay.portal.kernel.exception.SystemException; 516 517 /** 518 * Returns an ordered range of all the workflow definition links. 519 * 520 * <p> 521 * 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. 522 * </p> 523 * 524 * @param start the lower bound of the range of workflow definition links 525 * @param end the upper bound of the range of workflow definition links (not inclusive) 526 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 527 * @return the ordered range of workflow definition links 528 * @throws SystemException if a system exception occurred 529 */ 530 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 531 int start, int end, 532 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Removes all the workflow definition links from the database. 537 * 538 * @throws SystemException if a system exception occurred 539 */ 540 public void removeAll() 541 throws com.liferay.portal.kernel.exception.SystemException; 542 543 /** 544 * Returns the number of workflow definition links. 545 * 546 * @return the number of workflow definition links 547 * @throws SystemException if a system exception occurred 548 */ 549 public int countAll() 550 throws com.liferay.portal.kernel.exception.SystemException; 551 }