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