1
19
20 package com.liferay.portlet.documentlibrary.service.persistence;
21
22
28 public class DLFileRankUtil {
29 public static com.liferay.portlet.documentlibrary.model.DLFileRank create(
30 long fileRankId) {
31 return getPersistence().create(fileRankId);
32 }
33
34 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
35 long fileRankId)
36 throws com.liferay.portal.SystemException,
37 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
38 return getPersistence().remove(fileRankId);
39 }
40
41 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
42 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
43 throws com.liferay.portal.SystemException {
44 return getPersistence().remove(dlFileRank);
45 }
46
47
50 public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
51 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(dlFileRank);
54 }
55
56
69 public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
70 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
71 boolean merge) throws com.liferay.portal.SystemException {
72 return getPersistence().update(dlFileRank, merge);
73 }
74
75 public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
76 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
77 boolean merge) throws com.liferay.portal.SystemException {
78 return getPersistence().updateImpl(dlFileRank, merge);
79 }
80
81 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
82 long fileRankId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
85 return getPersistence().findByPrimaryKey(fileRankId);
86 }
87
88 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
89 long fileRankId) throws com.liferay.portal.SystemException {
90 return getPersistence().fetchByPrimaryKey(fileRankId);
91 }
92
93 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
94 long userId) throws com.liferay.portal.SystemException {
95 return getPersistence().findByUserId(userId);
96 }
97
98 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
99 long userId, int start, int end)
100 throws com.liferay.portal.SystemException {
101 return getPersistence().findByUserId(userId, start, end);
102 }
103
104 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
105 long userId, int start, int end,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException {
108 return getPersistence().findByUserId(userId, start, end, obc);
109 }
110
111 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
112 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
115 return getPersistence().findByUserId_First(userId, obc);
116 }
117
118 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
119 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
122 return getPersistence().findByUserId_Last(userId, obc);
123 }
124
125 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
126 long fileRankId, long userId,
127 com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
130 return getPersistence().findByUserId_PrevAndNext(fileRankId, userId, obc);
131 }
132
133 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
134 long folderId, java.lang.String name)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findByF_N(folderId, name);
137 }
138
139 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
140 long folderId, java.lang.String name, int start, int end)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByF_N(folderId, name, start, end);
143 }
144
145 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N(
146 long folderId, java.lang.String name, int start, int end,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException {
149 return getPersistence().findByF_N(folderId, name, start, end, obc);
150 }
151
152 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
153 long folderId, java.lang.String name,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
157 return getPersistence().findByF_N_First(folderId, name, obc);
158 }
159
160 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
161 long folderId, java.lang.String name,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
165 return getPersistence().findByF_N_Last(folderId, name, obc);
166 }
167
168 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
169 long fileRankId, long folderId, java.lang.String name,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
173 return getPersistence()
174 .findByF_N_PrevAndNext(fileRankId, folderId, name, obc);
175 }
176
177 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
178 long companyId, long userId, long folderId, java.lang.String name)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
181 return getPersistence().findByC_U_F_N(companyId, userId, folderId, name);
182 }
183
184 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
185 long companyId, long userId, long folderId, java.lang.String name)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().fetchByC_U_F_N(companyId, userId, folderId, name);
188 }
189
190 public static java.util.List<Object> findWithDynamicQuery(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findWithDynamicQuery(dynamicQuery);
194 }
195
196 public static java.util.List<Object> findWithDynamicQuery(
197 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
198 int end) throws com.liferay.portal.SystemException {
199 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findAll();
205 }
206
207 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
208 int start, int end) throws com.liferay.portal.SystemException {
209 return getPersistence().findAll(start, end);
210 }
211
212 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
213 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException {
215 return getPersistence().findAll(start, end, obc);
216 }
217
218 public static void removeByUserId(long userId)
219 throws com.liferay.portal.SystemException {
220 getPersistence().removeByUserId(userId);
221 }
222
223 public static void removeByF_N(long folderId, java.lang.String name)
224 throws com.liferay.portal.SystemException {
225 getPersistence().removeByF_N(folderId, name);
226 }
227
228 public static void removeByC_U_F_N(long companyId, long userId,
229 long folderId, java.lang.String name)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.documentlibrary.NoSuchFileRankException {
232 getPersistence().removeByC_U_F_N(companyId, userId, folderId, name);
233 }
234
235 public static void removeAll() throws com.liferay.portal.SystemException {
236 getPersistence().removeAll();
237 }
238
239 public static int countByUserId(long userId)
240 throws com.liferay.portal.SystemException {
241 return getPersistence().countByUserId(userId);
242 }
243
244 public static int countByF_N(long folderId, java.lang.String name)
245 throws com.liferay.portal.SystemException {
246 return getPersistence().countByF_N(folderId, name);
247 }
248
249 public static int countByC_U_F_N(long companyId, long userId,
250 long folderId, java.lang.String name)
251 throws com.liferay.portal.SystemException {
252 return getPersistence().countByC_U_F_N(companyId, userId, folderId, name);
253 }
254
255 public static int countAll() throws com.liferay.portal.SystemException {
256 return getPersistence().countAll();
257 }
258
259 public static DLFileRankPersistence getPersistence() {
260 return _persistence;
261 }
262
263 public void setPersistence(DLFileRankPersistence persistence) {
264 _persistence = persistence;
265 }
266
267 private static DLFileRankPersistence _persistence;
268 }