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 orderByComparator)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_First(
75          long companyId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.WorkflowDefinitionLink findByCompanyId_Last(
81          long companyId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public com.liferay.portal.model.WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(
87          long workflowDefinitionLinkId, long companyId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
90              com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portal.model.WorkflowDefinitionLink findByG_C_C(
93          long groupId, long companyId, long classNameId)
94          throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
95              com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
98          long groupId, long companyId, long classNameId)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.WorkflowDefinitionLink fetchByG_C_C(
102         long groupId, long companyId, long classNameId,
103         boolean retrieveFromCache)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
107         long companyId, java.lang.String workflowDefinitionName,
108         int workflowDefinitionVersion)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
112         long companyId, java.lang.String workflowDefinitionName,
113         int workflowDefinitionVersion, int start, int end)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findByC_W_W(
117         long companyId, java.lang.String workflowDefinitionName,
118         int workflowDefinitionVersion, int start, int end,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_First(
123         long companyId, java.lang.String workflowDefinitionName,
124         int workflowDefinitionVersion,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
127             com.liferay.portal.kernel.exception.SystemException;
128 
129     public com.liferay.portal.model.WorkflowDefinitionLink findByC_W_W_Last(
130         long companyId, java.lang.String workflowDefinitionName,
131         int workflowDefinitionVersion,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
134             com.liferay.portal.kernel.exception.SystemException;
135 
136     public com.liferay.portal.model.WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(
137         long workflowDefinitionLinkId, long companyId,
138         java.lang.String workflowDefinitionName, int workflowDefinitionVersion,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll()
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
147         int start, int end)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> findAll(
151         int start, int end,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public void removeByCompanyId(long companyId)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public void removeByG_C_C(long groupId, long companyId, long classNameId)
159         throws com.liferay.portal.NoSuchWorkflowDefinitionLinkException,
160             com.liferay.portal.kernel.exception.SystemException;
161 
162     public void removeByC_W_W(long companyId,
163         java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public void removeAll()
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public int countByCompanyId(long companyId)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public int countByG_C_C(long groupId, long companyId, long classNameId)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public int countByC_W_W(long companyId,
176         java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public int countAll()
180         throws com.liferay.portal.kernel.exception.SystemException;
181 }