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 obc)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findByF_N(folderId, name, start, end, obc);
144 }
145
146 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
147 long folderId, java.lang.String name,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
151 return getPersistence().findByF_N_First(folderId, name, obc);
152 }
153
154 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
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_Last(folderId, name, obc);
160 }
161
162 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
163 long fileVersionId, 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()
168 .findByF_N_PrevAndNext(fileVersionId, folderId, name, obc);
169 }
170
171 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
172 long folderId, java.lang.String name, double version)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
175 return getPersistence().findByF_N_V(folderId, name, version);
176 }
177
178 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
179 long folderId, java.lang.String name, double version)
180 throws com.liferay.portal.SystemException {
181 return getPersistence().fetchByF_N_V(folderId, name, version);
182 }
183
184 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
185 long folderId, java.lang.String name, double version,
186 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
187 return getPersistence()
188 .fetchByF_N_V(folderId, name, version, retrieveFromCache);
189 }
190
191 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findAll();
194 }
195
196 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
197 int start, int end) throws com.liferay.portal.SystemException {
198 return getPersistence().findAll(start, end);
199 }
200
201 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
202 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findAll(start, end, obc);
205 }
206
207 public static void removeByF_N(long folderId, java.lang.String name)
208 throws com.liferay.portal.SystemException {
209 getPersistence().removeByF_N(folderId, name);
210 }
211
212 public static void removeByF_N_V(long folderId, java.lang.String name,
213 double version)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
216 getPersistence().removeByF_N_V(folderId, name, version);
217 }
218
219 public static void removeAll() throws com.liferay.portal.SystemException {
220 getPersistence().removeAll();
221 }
222
223 public static int countByF_N(long folderId, java.lang.String name)
224 throws com.liferay.portal.SystemException {
225 return getPersistence().countByF_N(folderId, name);
226 }
227
228 public static int countByF_N_V(long folderId, java.lang.String name,
229 double version) throws com.liferay.portal.SystemException {
230 return getPersistence().countByF_N_V(folderId, name, version);
231 }
232
233 public static int countAll() throws com.liferay.portal.SystemException {
234 return getPersistence().countAll();
235 }
236
237 public static DLFileVersionPersistence getPersistence() {
238 if (_persistence == null) {
239 _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
240 }
241
242 return _persistence;
243 }
244
245 public void setPersistence(DLFileVersionPersistence persistence) {
246 _persistence = persistence;
247 }
248
249 private static DLFileVersionPersistence _persistence;
250 }