1
22
23 package com.liferay.portlet.documentlibrary.service.persistence;
24
25
26
39 public class DLFileRankUtil {
40 public static void cacheResult(
41 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
42 getPersistence().cacheResult(dlFileRank);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) {
47 getPersistence().cacheResult(dlFileRanks);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portlet.documentlibrary.model.DLFileRank create(
55 long fileRankId) {
56 return getPersistence().create(fileRankId);
57 }
58
59 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
60 long fileRankId)
61 throws com.liferay.portal.SystemException,
62 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
63 return getPersistence().remove(fileRankId);
64 }
65
66 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
67 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(dlFileRank);
70 }
71
72
75 public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
76 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(dlFileRank);
79 }
80
81
93 public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
94 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
95 boolean merge) throws com.liferay.portal.SystemException {
96 return getPersistence().update(dlFileRank, merge);
97 }
98
99 public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
100 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
101 boolean merge) throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(dlFileRank, merge);
103 }
104
105 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
106 long fileRankId)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
109 return getPersistence().findByPrimaryKey(fileRankId);
110 }
111
112 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
113 long fileRankId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(fileRankId);
115 }
116
117 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
118 long userId) throws com.liferay.portal.SystemException {
119 return getPersistence().findByUserId(userId);
120 }
121
122 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
123 long userId, int start, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByUserId(userId, start, end);
126 }
127
128 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
129 long userId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByUserId(userId, start, end, obc);
133 }
134
135 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
136 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
139 return getPersistence().findByUserId_First(userId, obc);
140 }
141
142 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
143 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
146 return getPersistence().findByUserId_Last(userId, obc);
147 }
148
149 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
150 long fileRankId, long userId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
154 return getPersistence().findByUserId_PrevAndNext(fileRankId, userId, obc);
155 }
156
157 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
158 long groupId, long userId) throws com.liferay.portal.SystemException {
159 return getPersistence().findByG_U(groupId, userId);
160 }
161
162 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
163 long groupId, long userId, int start, int end)
164 throws com.liferay.portal.SystemException {
165 return getPersistence().findByG_U(groupId, userId, start, end);
166 }
167
168 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
169 long groupId, long userId, int start, int end,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException {
172 return getPersistence().findByG_U(groupId, userId, start, end, obc);
173 }
174
175 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
176 long groupId, long userId,
177 com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
180 return getPersistence().findByG_U_First(groupId, userId, obc);
181 }
182
183 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
184 long groupId, long userId,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
188 return getPersistence().findByG_U_Last(groupId, userId, obc);
189 }
190
191 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
192 long fileRankId, long groupId, long userId,
193 com.liferay.portal.kernel.util.OrderByComparator obc)
194 throws com.liferay.portal.SystemException,
195 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
196 return getPersistence()
197 .findByG_U_PrevAndNext(fileRankId, groupId, userId, obc);
198 }
199
200 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
201 long folderId, java.lang.String name)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().findByF_N(folderId, name);
204 }
205
206 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
207 long folderId, java.lang.String name, int start, int end)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().findByF_N(folderId, name, start, end);
210 }
211
212 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
213 long folderId, java.lang.String name, int start, int end,
214 com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findByF_N(folderId, name, start, end, obc);
217 }
218
219 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
220 long folderId, java.lang.String name,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
224 return getPersistence().findByF_N_First(folderId, name, obc);
225 }
226
227 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
228 long folderId, java.lang.String name,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
232 return getPersistence().findByF_N_Last(folderId, name, obc);
233 }
234
235 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
236 long fileRankId, long folderId, java.lang.String name,
237 com.liferay.portal.kernel.util.OrderByComparator obc)
238 throws com.liferay.portal.SystemException,
239 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
240 return getPersistence()
241 .findByF_N_PrevAndNext(fileRankId, folderId, name, obc);
242 }
243
244 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
245 long companyId, long userId, long folderId, java.lang.String name)
246 throws com.liferay.portal.SystemException,
247 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
248 return getPersistence().findByC_U_F_N(companyId, userId, folderId, name);
249 }
250
251 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
252 long companyId, long userId, long folderId, java.lang.String name)
253 throws com.liferay.portal.SystemException {
254 return getPersistence().fetchByC_U_F_N(companyId, userId, folderId, name);
255 }
256
257 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
258 long companyId, long userId, long folderId, java.lang.String name,
259 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
260 return getPersistence()
261 .fetchByC_U_F_N(companyId, userId, folderId, name,
262 retrieveFromCache);
263 }
264
265 public static java.util.List<Object> findWithDynamicQuery(
266 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
267 throws com.liferay.portal.SystemException {
268 return getPersistence().findWithDynamicQuery(dynamicQuery);
269 }
270
271 public static java.util.List<Object> findWithDynamicQuery(
272 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
273 int end) throws com.liferay.portal.SystemException {
274 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
275 }
276
277 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
278 throws com.liferay.portal.SystemException {
279 return getPersistence().findAll();
280 }
281
282 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
283 int start, int end) throws com.liferay.portal.SystemException {
284 return getPersistence().findAll(start, end);
285 }
286
287 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
288 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
289 throws com.liferay.portal.SystemException {
290 return getPersistence().findAll(start, end, obc);
291 }
292
293 public static void removeByUserId(long userId)
294 throws com.liferay.portal.SystemException {
295 getPersistence().removeByUserId(userId);
296 }
297
298 public static void removeByG_U(long groupId, long userId)
299 throws com.liferay.portal.SystemException {
300 getPersistence().removeByG_U(groupId, userId);
301 }
302
303 public static void removeByF_N(long folderId, java.lang.String name)
304 throws com.liferay.portal.SystemException {
305 getPersistence().removeByF_N(folderId, name);
306 }
307
308 public static void removeByC_U_F_N(long companyId, long userId,
309 long folderId, java.lang.String name)
310 throws com.liferay.portal.SystemException,
311 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
312 getPersistence().removeByC_U_F_N(companyId, userId, folderId, name);
313 }
314
315 public static void removeAll() throws com.liferay.portal.SystemException {
316 getPersistence().removeAll();
317 }
318
319 public static int countByUserId(long userId)
320 throws com.liferay.portal.SystemException {
321 return getPersistence().countByUserId(userId);
322 }
323
324 public static int countByG_U(long groupId, long userId)
325 throws com.liferay.portal.SystemException {
326 return getPersistence().countByG_U(groupId, userId);
327 }
328
329 public static int countByF_N(long folderId, java.lang.String name)
330 throws com.liferay.portal.SystemException {
331 return getPersistence().countByF_N(folderId, name);
332 }
333
334 public static int countByC_U_F_N(long companyId, long userId,
335 long folderId, java.lang.String name)
336 throws com.liferay.portal.SystemException {
337 return getPersistence().countByC_U_F_N(companyId, userId, folderId, name);
338 }
339
340 public static int countAll() throws com.liferay.portal.SystemException {
341 return getPersistence().countAll();
342 }
343
344 public static DLFileRankPersistence getPersistence() {
345 return _persistence;
346 }
347
348 public void setPersistence(DLFileRankPersistence persistence) {
349 _persistence = persistence;
350 }
351
352 private static DLFileRankPersistence _persistence;
353 }