1
14
15 package com.liferay.portlet.documentlibrary.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20
21 import com.liferay.portlet.documentlibrary.model.DLFileVersion;
22
23 import java.util.List;
24
25
38 public class DLFileVersionUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static DLFileVersion remove(DLFileVersion dlFileVersion)
66 throws SystemException {
67 return getPersistence().remove(dlFileVersion);
68 }
69
70
73 public static DLFileVersion update(DLFileVersion dlFileVersion,
74 boolean merge) throws SystemException {
75 return getPersistence().update(dlFileVersion, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
80 getPersistence().cacheResult(dlFileVersion);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) {
85 getPersistence().cacheResult(dlFileVersions);
86 }
87
88 public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
89 long fileVersionId) {
90 return getPersistence().create(fileVersionId);
91 }
92
93 public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
94 long fileVersionId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
97 return getPersistence().remove(fileVersionId);
98 }
99
100
103 public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(
104 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(dlFileVersion);
107 }
108
109 public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
110 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(dlFileVersion, merge);
113 }
114
115 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
116 long fileVersionId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
119 return getPersistence().findByPrimaryKey(fileVersionId);
120 }
121
122 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
123 long fileVersionId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(fileVersionId);
125 }
126
127 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
128 long folderId, java.lang.String name)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findByF_N(folderId, name);
131 }
132
133 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
134 long folderId, java.lang.String name, int start, int end)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findByF_N(folderId, name, start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
140 long folderId, java.lang.String name, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.SystemException {
143 return getPersistence()
144 .findByF_N(folderId, name, start, end, orderByComparator);
145 }
146
147 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
148 long folderId, java.lang.String name,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
152 return getPersistence()
153 .findByF_N_First(folderId, name, orderByComparator);
154 }
155
156 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
157 long folderId, java.lang.String name,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
161 return getPersistence().findByF_N_Last(folderId, name, orderByComparator);
162 }
163
164 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
165 long fileVersionId, long folderId, java.lang.String name,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.SystemException,
168 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
169 return getPersistence()
170 .findByF_N_PrevAndNext(fileVersionId, folderId, name,
171 orderByComparator);
172 }
173
174 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
175 long folderId, java.lang.String name, double version)
176 throws com.liferay.portal.SystemException,
177 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
178 return getPersistence().findByF_N_V(folderId, name, version);
179 }
180
181 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
182 long folderId, java.lang.String name, double version)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().fetchByF_N_V(folderId, name, version);
185 }
186
187 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
188 long folderId, java.lang.String name, double version,
189 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
190 return getPersistence()
191 .fetchByF_N_V(folderId, name, version, retrieveFromCache);
192 }
193
194 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findAll();
197 }
198
199 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
200 int start, int end) throws com.liferay.portal.SystemException {
201 return getPersistence().findAll(start, end);
202 }
203
204 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
205 int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().findAll(start, end, orderByComparator);
209 }
210
211 public static void removeByF_N(long folderId, java.lang.String name)
212 throws com.liferay.portal.SystemException {
213 getPersistence().removeByF_N(folderId, name);
214 }
215
216 public static void removeByF_N_V(long folderId, java.lang.String name,
217 double version)
218 throws com.liferay.portal.SystemException,
219 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
220 getPersistence().removeByF_N_V(folderId, name, version);
221 }
222
223 public static void removeAll() throws com.liferay.portal.SystemException {
224 getPersistence().removeAll();
225 }
226
227 public static int countByF_N(long folderId, java.lang.String name)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().countByF_N(folderId, name);
230 }
231
232 public static int countByF_N_V(long folderId, java.lang.String name,
233 double version) throws com.liferay.portal.SystemException {
234 return getPersistence().countByF_N_V(folderId, name, version);
235 }
236
237 public static int countAll() throws com.liferay.portal.SystemException {
238 return getPersistence().countAll();
239 }
240
241 public static DLFileVersionPersistence getPersistence() {
242 if (_persistence == null) {
243 _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
244 }
245
246 return _persistence;
247 }
248
249 public void setPersistence(DLFileVersionPersistence persistence) {
250 _persistence = persistence;
251 }
252
253 private static DLFileVersionPersistence _persistence;
254 }