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.portlet.documentlibrary.NoSuchFileVersionException,
40 com.liferay.portal.SystemException {
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 public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(
51 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(dlFileVersion);
54 }
55
56 public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(
57 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(dlFileVersion, merge);
60 }
61
62 public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
63 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(dlFileVersion, merge);
66 }
67
68 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
69 long fileVersionId)
70 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
71 com.liferay.portal.SystemException {
72 return getPersistence().findByPrimaryKey(fileVersionId);
73 }
74
75 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
76 long fileVersionId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(fileVersionId);
78 }
79
80 public static java.util.List findByF_N(long folderId, java.lang.String name)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByF_N(folderId, name);
83 }
84
85 public static java.util.List findByF_N(long folderId,
86 java.lang.String name, int begin, int end)
87 throws com.liferay.portal.SystemException {
88 return getPersistence().findByF_N(folderId, name, begin, end);
89 }
90
91 public static java.util.List findByF_N(long folderId,
92 java.lang.String name, int begin, int end,
93 com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.SystemException {
95 return getPersistence().findByF_N(folderId, name, begin, end, obc);
96 }
97
98 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
99 long folderId, java.lang.String name,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
102 com.liferay.portal.SystemException {
103 return getPersistence().findByF_N_First(folderId, name, obc);
104 }
105
106 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
107 long folderId, java.lang.String name,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
110 com.liferay.portal.SystemException {
111 return getPersistence().findByF_N_Last(folderId, name, obc);
112 }
113
114 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
115 long fileVersionId, long folderId, java.lang.String name,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
118 com.liferay.portal.SystemException {
119 return getPersistence().findByF_N_PrevAndNext(fileVersionId, folderId,
120 name, obc);
121 }
122
123 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
124 long folderId, java.lang.String name, double version)
125 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
126 com.liferay.portal.SystemException {
127 return getPersistence().findByF_N_V(folderId, name, version);
128 }
129
130 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
131 long folderId, java.lang.String name, double version)
132 throws com.liferay.portal.SystemException {
133 return getPersistence().fetchByF_N_V(folderId, name, version);
134 }
135
136 public static java.util.List findWithDynamicQuery(
137 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
138 throws com.liferay.portal.SystemException {
139 return getPersistence().findWithDynamicQuery(queryInitializer);
140 }
141
142 public static java.util.List findWithDynamicQuery(
143 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
144 int begin, int end) throws com.liferay.portal.SystemException {
145 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
146 end);
147 }
148
149 public static java.util.List findAll()
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findAll();
152 }
153
154 public static java.util.List findAll(int begin, int end)
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findAll(begin, end);
157 }
158
159 public static java.util.List findAll(int begin, int end,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findAll(begin, end, obc);
163 }
164
165 public static void removeByF_N(long folderId, java.lang.String name)
166 throws com.liferay.portal.SystemException {
167 getPersistence().removeByF_N(folderId, name);
168 }
169
170 public static void removeByF_N_V(long folderId, java.lang.String name,
171 double version)
172 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
173 com.liferay.portal.SystemException {
174 getPersistence().removeByF_N_V(folderId, name, version);
175 }
176
177 public static void removeAll() throws com.liferay.portal.SystemException {
178 getPersistence().removeAll();
179 }
180
181 public static int countByF_N(long folderId, java.lang.String name)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().countByF_N(folderId, name);
184 }
185
186 public static int countByF_N_V(long folderId, java.lang.String name,
187 double version) throws com.liferay.portal.SystemException {
188 return getPersistence().countByF_N_V(folderId, name, version);
189 }
190
191 public static int countAll() throws com.liferay.portal.SystemException {
192 return getPersistence().countAll();
193 }
194
195 public static DLFileVersionPersistence getPersistence() {
196 return _getUtil()._persistence;
197 }
198
199 public void setPersistence(DLFileVersionPersistence persistence) {
200 _persistence = persistence;
201 }
202
203 private static DLFileVersionUtil _getUtil() {
204 if (_util == null) {
205 _util = (DLFileVersionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
206 }
207
208 return _util;
209 }
210
211 private static final String _UTIL = DLFileVersionUtil.class.getName();
212 private static DLFileVersionUtil _util;
213 private DLFileVersionPersistence _persistence;
214 }