1
14
15 package com.liferay.portlet.tasks.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.tasks.model.TasksReview;
20
21
34 public interface TasksReviewPersistence extends BasePersistence<TasksReview> {
35 public void cacheResult(
36 com.liferay.portlet.tasks.model.TasksReview tasksReview);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews);
40
41 public com.liferay.portlet.tasks.model.TasksReview create(long reviewId);
42
43 public com.liferay.portlet.tasks.model.TasksReview remove(long reviewId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.tasks.NoSuchReviewException;
46
47
50 public com.liferay.portlet.tasks.model.TasksReview update(
51 com.liferay.portlet.tasks.model.TasksReview tasksReview)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.tasks.model.TasksReview updateImpl(
55 com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
59 long reviewId)
60 throws com.liferay.portal.SystemException,
61 com.liferay.portlet.tasks.NoSuchReviewException;
62
63 public com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
64 long reviewId) throws com.liferay.portal.SystemException;
65
66 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
67 long userId) throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
70 long userId, int start, int end)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
74 long userId, int start, int end,
75 com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
79 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.tasks.NoSuchReviewException;
82
83 public com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
84 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.SystemException,
86 com.liferay.portlet.tasks.NoSuchReviewException;
87
88 public com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
89 long reviewId, long userId,
90 com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.SystemException,
92 com.liferay.portlet.tasks.NoSuchReviewException;
93
94 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
95 long proposalId) throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
98 long proposalId, int start, int end)
99 throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
102 long proposalId, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
107 long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portlet.tasks.NoSuchReviewException;
110
111 public com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
112 long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.tasks.NoSuchReviewException;
115
116 public com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
117 long reviewId, long proposalId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.tasks.NoSuchReviewException;
121
122 public com.liferay.portlet.tasks.model.TasksReview findByU_P(long userId,
123 long proposalId)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.tasks.NoSuchReviewException;
126
127 public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
128 long proposalId) throws com.liferay.portal.SystemException;
129
130 public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
131 long proposalId, boolean retrieveFromCache)
132 throws com.liferay.portal.SystemException;
133
134 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
135 long proposalId, int stage) throws com.liferay.portal.SystemException;
136
137 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
138 long proposalId, int stage, int start, int end)
139 throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
142 long proposalId, int stage, int start, int end,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException;
145
146 public com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
147 long proposalId, int stage,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.tasks.NoSuchReviewException;
151
152 public com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
153 long proposalId, int stage,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.tasks.NoSuchReviewException;
157
158 public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
159 long reviewId, long proposalId, int stage,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.tasks.NoSuchReviewException;
163
164 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
165 long proposalId, int stage, boolean completed)
166 throws com.liferay.portal.SystemException;
167
168 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
169 long proposalId, int stage, boolean completed, int start, int end)
170 throws com.liferay.portal.SystemException;
171
172 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
173 long proposalId, int stage, boolean completed, int start, int end,
174 com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.SystemException;
176
177 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
178 long proposalId, int stage, boolean completed,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.tasks.NoSuchReviewException;
182
183 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
184 long proposalId, int stage, boolean completed,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.tasks.NoSuchReviewException;
188
189 public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
190 long reviewId, long proposalId, int stage, boolean completed,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.tasks.NoSuchReviewException;
194
195 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
196 long proposalId, int stage, boolean completed, boolean rejected)
197 throws com.liferay.portal.SystemException;
198
199 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
200 long proposalId, int stage, boolean completed, boolean rejected,
201 int start, int end) throws com.liferay.portal.SystemException;
202
203 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
204 long proposalId, int stage, boolean completed, boolean rejected,
205 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException;
207
208 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
209 long proposalId, int stage, boolean completed, boolean rejected,
210 com.liferay.portal.kernel.util.OrderByComparator obc)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.tasks.NoSuchReviewException;
213
214 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
215 long proposalId, int stage, boolean completed, boolean rejected,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portlet.tasks.NoSuchReviewException;
219
220 public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
221 long reviewId, long proposalId, int stage, boolean completed,
222 boolean rejected, com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.tasks.NoSuchReviewException;
225
226 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
227 throws com.liferay.portal.SystemException;
228
229 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
230 int start, int end) throws com.liferay.portal.SystemException;
231
232 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
233 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.SystemException;
235
236 public void removeByUserId(long userId)
237 throws com.liferay.portal.SystemException;
238
239 public void removeByProposalId(long proposalId)
240 throws com.liferay.portal.SystemException;
241
242 public void removeByU_P(long userId, long proposalId)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.tasks.NoSuchReviewException;
245
246 public void removeByP_S(long proposalId, int stage)
247 throws com.liferay.portal.SystemException;
248
249 public void removeByP_S_C(long proposalId, int stage, boolean completed)
250 throws com.liferay.portal.SystemException;
251
252 public void removeByP_S_C_R(long proposalId, int stage, boolean completed,
253 boolean rejected) throws com.liferay.portal.SystemException;
254
255 public void removeAll() throws com.liferay.portal.SystemException;
256
257 public int countByUserId(long userId)
258 throws com.liferay.portal.SystemException;
259
260 public int countByProposalId(long proposalId)
261 throws com.liferay.portal.SystemException;
262
263 public int countByU_P(long userId, long proposalId)
264 throws com.liferay.portal.SystemException;
265
266 public int countByP_S(long proposalId, int stage)
267 throws com.liferay.portal.SystemException;
268
269 public int countByP_S_C(long proposalId, int stage, boolean completed)
270 throws com.liferay.portal.SystemException;
271
272 public int countByP_S_C_R(long proposalId, int stage, boolean completed,
273 boolean rejected) throws com.liferay.portal.SystemException;
274
275 public int countAll() throws com.liferay.portal.SystemException;
276 }