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