1
22
23 package com.liferay.portlet.documentlibrary.service.persistence;
24
25
31 public class DLFileVersionUtil {
32 public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
33 long fileVersionId) {
34 return getPersistence().create(fileVersionId);
35 }
36
37 public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
38 long fileVersionId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
41 return getPersistence().remove(fileVersionId);
42 }
43
44 public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
45 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(dlFileVersion);
48 }
49
50
53 public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(
54 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(dlFileVersion);
57 }
58
59
72 public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(
73 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(dlFileVersion, merge);
76 }
77
78 public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
79 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(dlFileVersion, merge);
82 }
83
84 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
85 long fileVersionId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
88 return getPersistence().findByPrimaryKey(fileVersionId);
89 }
90
91 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
92 long fileVersionId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(fileVersionId);
94 }
95
96 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
97 long folderId, java.lang.String name)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().findByF_N(folderId, name);
100 }
101
102 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
103 long folderId, java.lang.String name, int start, int end)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findByF_N(folderId, name, start, end);
106 }
107
108 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
109 long folderId, java.lang.String name, int start, int end,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().findByF_N(folderId, name, start, end, obc);
113 }
114
115 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
116 long folderId, java.lang.String name,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
120 return getPersistence().findByF_N_First(folderId, name, obc);
121 }
122
123 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
124 long folderId, java.lang.String name,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
128 return getPersistence().findByF_N_Last(folderId, name, obc);
129 }
130
131 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
132 long fileVersionId, long folderId, java.lang.String name,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
136 return getPersistence()
137 .findByF_N_PrevAndNext(fileVersionId, folderId, name, obc);
138 }
139
140 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
141 long folderId, java.lang.String name, double version)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
144 return getPersistence().findByF_N_V(folderId, name, version);
145 }
146
147 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
148 long folderId, java.lang.String name, double version)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().fetchByF_N_V(folderId, name, version);
151 }
152
153 public static java.util.List<Object> findWithDynamicQuery(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findWithDynamicQuery(dynamicQuery);
157 }
158
159 public static java.util.List<Object> findWithDynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end) throws com.liferay.portal.SystemException {
162 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
163 }
164
165 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
166 throws com.liferay.portal.SystemException {
167 return getPersistence().findAll();
168 }
169
170 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
171 int start, int end) throws com.liferay.portal.SystemException {
172 return getPersistence().findAll(start, end);
173 }
174
175 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
176 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findAll(start, end, obc);
179 }
180
181 public static void removeByF_N(long folderId, java.lang.String name)
182 throws com.liferay.portal.SystemException {
183 getPersistence().removeByF_N(folderId, name);
184 }
185
186 public static void removeByF_N_V(long folderId, java.lang.String name,
187 double version)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
190 getPersistence().removeByF_N_V(folderId, name, version);
191 }
192
193 public static void removeAll() throws com.liferay.portal.SystemException {
194 getPersistence().removeAll();
195 }
196
197 public static int countByF_N(long folderId, java.lang.String name)
198 throws com.liferay.portal.SystemException {
199 return getPersistence().countByF_N(folderId, name);
200 }
201
202 public static int countByF_N_V(long folderId, java.lang.String name,
203 double version) throws com.liferay.portal.SystemException {
204 return getPersistence().countByF_N_V(folderId, name, version);
205 }
206
207 public static int countAll() throws com.liferay.portal.SystemException {
208 return getPersistence().countAll();
209 }
210
211 public static void registerListener(
212 com.liferay.portal.model.ModelListener listener) {
213 getPersistence().registerListener(listener);
214 }
215
216 public static void unregisterListener(
217 com.liferay.portal.model.ModelListener listener) {
218 getPersistence().unregisterListener(listener);
219 }
220
221 public static DLFileVersionPersistence getPersistence() {
222 return _persistence;
223 }
224
225 public void setPersistence(DLFileVersionPersistence persistence) {
226 _persistence = persistence;
227 }
228
229 private static DLFileVersionPersistence _persistence;
230 }