1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.WorkflowDefinitionLink;
18  
19  /**
20   * <a href="WorkflowDefinitionLinkPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       WorkflowDefinitionLinkPersistenceImpl
29   * @see       WorkflowDefinitionLinkUtil
30   * @generated
31   */
32  public interface WorkflowDefinitionLinkPersistence extends BasePersistence<WorkflowDefinitionLink> {
33      public void cacheResult(
34          com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> workflowDefinitionLinks);
38  
39      public com.liferay.portal.model.WorkflowDefinitionLink create(
40          long workflowDefinitionLinkId);
41  
42      public com.liferay.portal.model.WorkflowDefinitionLink remove(
43          long workflowDefinitionLinkId)
44          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.WorkflowDefinitionLink updateImpl(
48          com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.WorkflowDefinitionLink findByPrimaryKey(
53          long workflowDefinitionLinkId)
54          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
55              com.liferay.portal.kernel.exception.SystemException;
56  
57      public com.liferay.portal.model.WorkflowDefinitionLink fetchByPrimaryKey(
58          long workflowDefinitionLinkId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
62          long companyId)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
66          long companyId, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByCompanyId(
70          long companyId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
75          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
80          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
85          long workflowDefinitionLinkId, long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
88              com.liferay.portal.kernel.exception.SystemException;
89  
90      public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
91          long groupId, long companyId, long classNameId)
92          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
93              com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
96          long groupId, long companyId, long classNameId)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
100         long groupId, long companyId, long classNameId,
101         boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
112         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public void removeByCompanyId(long companyId)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public void removeByG_C_C(long groupId, long companyId, long classNameId)
119         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public void removeAll()
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public int countByCompanyId(long companyId)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public int countByG_C_C(long groupId, long companyId, long classNameId)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public int countAll()
132         throws com.liferay.portal.kernel.exception.SystemException;
133 }