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