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