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