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 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<com.liferay.portal.model.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 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. 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<com.liferay.portal.model.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 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. 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<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId( 079 long companyId, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 081 082 /** 083 * Returns the first workflow definition link in the ordered set where companyId = ?. 084 * 085 * @param companyId the company ID 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching workflow definition link 088 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 089 */ 090 public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First( 091 long companyId, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 093 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 094 095 /** 096 * Returns the first workflow definition link in the ordered set where companyId = ?. 097 * 098 * @param companyId the company ID 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 101 */ 102 public com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_First( 103 long companyId, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 105 106 /** 107 * Returns the last workflow definition link in the ordered set where companyId = ?. 108 * 109 * @param companyId the company ID 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching workflow definition link 112 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 113 */ 114 public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last( 115 long companyId, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 117 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 118 119 /** 120 * Returns the last workflow definition link in the ordered set where companyId = ?. 121 * 122 * @param companyId the company ID 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 125 */ 126 public com.liferay.portal.model.WorkflowDefinitionLink fetchByCompanyId_Last( 127 long companyId, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 129 130 /** 131 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. 132 * 133 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 134 * @param companyId the company ID 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the previous, current, and next workflow definition link 137 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 138 */ 139 public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext( 140 long workflowDefinitionLinkId, long companyId, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 142 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 143 144 /** 145 * Removes all the workflow definition links where companyId = ? from the database. 146 * 147 * @param companyId the company ID 148 */ 149 public void removeByCompanyId(long companyId); 150 151 /** 152 * Returns the number of workflow definition links where companyId = ?. 153 * 154 * @param companyId the company ID 155 * @return the number of matching workflow definition links 156 */ 157 public int countByCompanyId(long companyId); 158 159 /** 160 * Returns all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 161 * 162 * @param groupId the group ID 163 * @param companyId the company ID 164 * @param classNameId the class name ID 165 * @return the matching workflow definition links 166 */ 167 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByG_C_C( 168 long groupId, long companyId, long classNameId); 169 170 /** 171 * Returns a range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param groupId the group ID 178 * @param companyId the company ID 179 * @param classNameId the class name ID 180 * @param start the lower bound of the range of workflow definition links 181 * @param end the upper bound of the range of workflow definition links (not inclusive) 182 * @return the range of matching workflow definition links 183 */ 184 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByG_C_C( 185 long groupId, long companyId, long classNameId, int start, int end); 186 187 /** 188 * Returns an ordered range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 189 * 190 * <p> 191 * 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. 192 * </p> 193 * 194 * @param groupId the group ID 195 * @param companyId the company ID 196 * @param classNameId the class name ID 197 * @param start the lower bound of the range of workflow definition links 198 * @param end the upper bound of the range of workflow definition links (not inclusive) 199 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 200 * @return the ordered range of matching workflow definition links 201 */ 202 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByG_C_C( 203 long groupId, long companyId, long classNameId, int start, int end, 204 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 205 206 /** 207 * Returns the first workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 208 * 209 * @param groupId the group ID 210 * @param companyId the company ID 211 * @param classNameId the class name ID 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the first matching workflow definition link 214 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 215 */ 216 public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_First( 217 long groupId, long companyId, long classNameId, 218 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 219 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 220 221 /** 222 * Returns the first workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 223 * 224 * @param groupId the group ID 225 * @param companyId the company ID 226 * @param classNameId the class name ID 227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 228 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 229 */ 230 public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_First( 231 long groupId, long companyId, long classNameId, 232 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 233 234 /** 235 * Returns the last workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 236 * 237 * @param groupId the group ID 238 * @param companyId the company ID 239 * @param classNameId the class name ID 240 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 241 * @return the last matching workflow definition link 242 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 243 */ 244 public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_Last( 245 long groupId, long companyId, long classNameId, 246 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 247 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 248 249 /** 250 * Returns the last workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 251 * 252 * @param groupId the group ID 253 * @param companyId the company ID 254 * @param classNameId the class name ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 257 */ 258 public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_Last( 259 long groupId, long companyId, long classNameId, 260 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 261 262 /** 263 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?. 264 * 265 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 266 * @param groupId the group ID 267 * @param companyId the company ID 268 * @param classNameId the class name ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the previous, current, and next workflow definition link 271 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 272 */ 273 public com.liferay.portal.model.WorkflowDefinitionLink[] findByG_C_C_PrevAndNext( 274 long workflowDefinitionLinkId, long groupId, long companyId, 275 long classNameId, 276 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 277 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 278 279 /** 280 * Removes all the workflow definition links where groupId = ? and companyId = ? and classNameId = ? from the database. 281 * 282 * @param groupId the group ID 283 * @param companyId the company ID 284 * @param classNameId the class name ID 285 */ 286 public void removeByG_C_C(long groupId, long companyId, long classNameId); 287 288 /** 289 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ?. 290 * 291 * @param groupId the group ID 292 * @param companyId the company ID 293 * @param classNameId the class name ID 294 * @return the number of matching workflow definition links 295 */ 296 public int countByG_C_C(long groupId, long companyId, long classNameId); 297 298 /** 299 * Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 300 * 301 * @param companyId the company ID 302 * @param workflowDefinitionName the workflow definition name 303 * @param workflowDefinitionVersion the workflow definition version 304 * @return the matching workflow definition links 305 */ 306 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 307 long companyId, java.lang.String workflowDefinitionName, 308 int workflowDefinitionVersion); 309 310 /** 311 * Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 312 * 313 * <p> 314 * 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. 315 * </p> 316 * 317 * @param companyId the company ID 318 * @param workflowDefinitionName the workflow definition name 319 * @param workflowDefinitionVersion the workflow definition version 320 * @param start the lower bound of the range of workflow definition links 321 * @param end the upper bound of the range of workflow definition links (not inclusive) 322 * @return the range of matching workflow definition links 323 */ 324 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 325 long companyId, java.lang.String workflowDefinitionName, 326 int workflowDefinitionVersion, int start, int end); 327 328 /** 329 * Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 330 * 331 * <p> 332 * 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. 333 * </p> 334 * 335 * @param companyId the company ID 336 * @param workflowDefinitionName the workflow definition name 337 * @param workflowDefinitionVersion the workflow definition version 338 * @param start the lower bound of the range of workflow definition links 339 * @param end the upper bound of the range of workflow definition links (not inclusive) 340 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 341 * @return the ordered range of matching workflow definition links 342 */ 343 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W( 344 long companyId, java.lang.String workflowDefinitionName, 345 int workflowDefinitionVersion, int start, int end, 346 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 347 348 /** 349 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 350 * 351 * @param companyId the company ID 352 * @param workflowDefinitionName the workflow definition name 353 * @param workflowDefinitionVersion the workflow definition version 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the first matching workflow definition link 356 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 357 */ 358 public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First( 359 long companyId, java.lang.String workflowDefinitionName, 360 int workflowDefinitionVersion, 361 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 362 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 363 364 /** 365 * Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 366 * 367 * @param companyId the company ID 368 * @param workflowDefinitionName the workflow definition name 369 * @param workflowDefinitionVersion the workflow definition version 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 372 */ 373 public com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_First( 374 long companyId, java.lang.String workflowDefinitionName, 375 int workflowDefinitionVersion, 376 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 377 378 /** 379 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 380 * 381 * @param companyId the company ID 382 * @param workflowDefinitionName the workflow definition name 383 * @param workflowDefinitionVersion the workflow definition version 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the last matching workflow definition link 386 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 387 */ 388 public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last( 389 long companyId, java.lang.String workflowDefinitionName, 390 int workflowDefinitionVersion, 391 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 392 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 393 394 /** 395 * Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 396 * 397 * @param companyId the company ID 398 * @param workflowDefinitionName the workflow definition name 399 * @param workflowDefinitionVersion the workflow definition version 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the last matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 402 */ 403 public com.liferay.portal.model.WorkflowDefinitionLink fetchByC_W_W_Last( 404 long companyId, java.lang.String workflowDefinitionName, 405 int workflowDefinitionVersion, 406 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 407 408 /** 409 * Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 410 * 411 * @param workflowDefinitionLinkId the primary key of the current workflow definition link 412 * @param companyId the company ID 413 * @param workflowDefinitionName the workflow definition name 414 * @param workflowDefinitionVersion the workflow definition version 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the previous, current, and next workflow definition link 417 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 418 */ 419 public com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext( 420 long workflowDefinitionLinkId, long companyId, 421 java.lang.String workflowDefinitionName, int workflowDefinitionVersion, 422 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator) 423 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 424 425 /** 426 * Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. 427 * 428 * @param companyId the company ID 429 * @param workflowDefinitionName the workflow definition name 430 * @param workflowDefinitionVersion the workflow definition version 431 */ 432 public void removeByC_W_W(long companyId, 433 java.lang.String workflowDefinitionName, int workflowDefinitionVersion); 434 435 /** 436 * Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. 437 * 438 * @param companyId the company ID 439 * @param workflowDefinitionName the workflow definition name 440 * @param workflowDefinitionVersion the workflow definition version 441 * @return the number of matching workflow definition links 442 */ 443 public int countByC_W_W(long companyId, 444 java.lang.String workflowDefinitionName, int workflowDefinitionVersion); 445 446 /** 447 * 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. 448 * 449 * @param groupId the group ID 450 * @param companyId the company ID 451 * @param classNameId the class name ID 452 * @param classPK the class p k 453 * @param typePK the type p k 454 * @return the matching workflow definition link 455 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a matching workflow definition link could not be found 456 */ 457 public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C_C_T( 458 long groupId, long companyId, long classNameId, long classPK, 459 long typePK) 460 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 461 462 /** 463 * 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. 464 * 465 * @param groupId the group ID 466 * @param companyId the company ID 467 * @param classNameId the class name ID 468 * @param classPK the class p k 469 * @param typePK the type p k 470 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 471 */ 472 public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 473 long groupId, long companyId, long classNameId, long classPK, 474 long typePK); 475 476 /** 477 * 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. 478 * 479 * @param groupId the group ID 480 * @param companyId the company ID 481 * @param classNameId the class name ID 482 * @param classPK the class p k 483 * @param typePK the type p k 484 * @param retrieveFromCache whether to use the finder cache 485 * @return the matching workflow definition link, or <code>null</code> if a matching workflow definition link could not be found 486 */ 487 public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C_C_T( 488 long groupId, long companyId, long classNameId, long classPK, 489 long typePK, boolean retrieveFromCache); 490 491 /** 492 * Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. 493 * 494 * @param groupId the group ID 495 * @param companyId the company ID 496 * @param classNameId the class name ID 497 * @param classPK the class p k 498 * @param typePK the type p k 499 * @return the workflow definition link that was removed 500 */ 501 public com.liferay.portal.model.WorkflowDefinitionLink removeByG_C_C_C_T( 502 long groupId, long companyId, long classNameId, long classPK, 503 long typePK) 504 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 505 506 /** 507 * Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. 508 * 509 * @param groupId the group ID 510 * @param companyId the company ID 511 * @param classNameId the class name ID 512 * @param classPK the class p k 513 * @param typePK the type p k 514 * @return the number of matching workflow definition links 515 */ 516 public int countByG_C_C_C_T(long groupId, long companyId, long classNameId, 517 long classPK, long typePK); 518 519 /** 520 * Caches the workflow definition link in the entity cache if it is enabled. 521 * 522 * @param workflowDefinitionLink the workflow definition link 523 */ 524 public void cacheResult( 525 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink); 526 527 /** 528 * Caches the workflow definition links in the entity cache if it is enabled. 529 * 530 * @param workflowDefinitionLinks the workflow definition links 531 */ 532 public void cacheResult( 533 java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks); 534 535 /** 536 * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database. 537 * 538 * @param workflowDefinitionLinkId the primary key for the new workflow definition link 539 * @return the new workflow definition link 540 */ 541 public com.liferay.portal.model.WorkflowDefinitionLink create( 542 long workflowDefinitionLinkId); 543 544 /** 545 * Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners. 546 * 547 * @param workflowDefinitionLinkId the primary key of the workflow definition link 548 * @return the workflow definition link that was removed 549 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 550 */ 551 public com.liferay.portal.model.WorkflowDefinitionLink remove( 552 long workflowDefinitionLinkId) 553 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 554 555 public com.liferay.portal.model.WorkflowDefinitionLink updateImpl( 556 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink); 557 558 /** 559 * Returns the workflow definition link with the primary key or throws a {@link com.liferay.portal.NoSuchWorkflowDefinitionLinkException} if it could not be found. 560 * 561 * @param workflowDefinitionLinkId the primary key of the workflow definition link 562 * @return the workflow definition link 563 * @throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException if a workflow definition link with the primary key could not be found 564 */ 565 public com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey( 566 long workflowDefinitionLinkId) 567 throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException; 568 569 /** 570 * Returns the workflow definition link with the primary key or returns <code>null</code> if it could not be found. 571 * 572 * @param workflowDefinitionLinkId the primary key of the workflow definition link 573 * @return the workflow definition link, or <code>null</code> if a workflow definition link with the primary key could not be found 574 */ 575 public com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey( 576 long workflowDefinitionLinkId); 577 578 @Override 579 public java.util.Map<java.io.Serializable, com.liferay.portal.model.WorkflowDefinitionLink> fetchByPrimaryKeys( 580 java.util.Set<java.io.Serializable> primaryKeys); 581 582 /** 583 * Returns all the workflow definition links. 584 * 585 * @return the workflow definition links 586 */ 587 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(); 588 589 /** 590 * Returns a range of all the workflow definition links. 591 * 592 * <p> 593 * 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. 594 * </p> 595 * 596 * @param start the lower bound of the range of workflow definition links 597 * @param end the upper bound of the range of workflow definition links (not inclusive) 598 * @return the range of workflow definition links 599 */ 600 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 601 int start, int end); 602 603 /** 604 * Returns an ordered range of all the workflow definition links. 605 * 606 * <p> 607 * 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. 608 * </p> 609 * 610 * @param start the lower bound of the range of workflow definition links 611 * @param end the upper bound of the range of workflow definition links (not inclusive) 612 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 613 * @return the ordered range of workflow definition links 614 */ 615 public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll( 616 int start, int end, 617 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WorkflowDefinitionLink> orderByComparator); 618 619 /** 620 * Removes all the workflow definition links from the database. 621 */ 622 public void removeAll(); 623 624 /** 625 * Returns the number of workflow definition links. 626 * 627 * @return the number of workflow definition links 628 */ 629 public int countAll(); 630 }