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