1
22
23 package com.liferay.portlet.tags.service.persistence;
24
25
31 public class TagsAssetUtil {
32 public static com.liferay.portlet.tags.model.TagsAsset create(long assetId) {
33 return getPersistence().create(assetId);
34 }
35
36 public static com.liferay.portlet.tags.model.TagsAsset remove(long assetId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.tags.NoSuchAssetException {
39 return getPersistence().remove(assetId);
40 }
41
42 public static com.liferay.portlet.tags.model.TagsAsset remove(
43 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(tagsAsset);
46 }
47
48
51 public static com.liferay.portlet.tags.model.TagsAsset update(
52 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(tagsAsset);
55 }
56
57
70 public static com.liferay.portlet.tags.model.TagsAsset update(
71 com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(tagsAsset, merge);
74 }
75
76 public static com.liferay.portlet.tags.model.TagsAsset updateImpl(
77 com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(tagsAsset, merge);
80 }
81
82 public static com.liferay.portlet.tags.model.TagsAsset findByPrimaryKey(
83 long assetId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portlet.tags.NoSuchAssetException {
86 return getPersistence().findByPrimaryKey(assetId);
87 }
88
89 public static com.liferay.portlet.tags.model.TagsAsset fetchByPrimaryKey(
90 long assetId) throws com.liferay.portal.SystemException {
91 return getPersistence().fetchByPrimaryKey(assetId);
92 }
93
94 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
95 long companyId) throws com.liferay.portal.SystemException {
96 return getPersistence().findByCompanyId(companyId);
97 }
98
99 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
100 long companyId, int begin, int end)
101 throws com.liferay.portal.SystemException {
102 return getPersistence().findByCompanyId(companyId, begin, end);
103 }
104
105 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
106 long companyId, int begin, int end,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException {
109 return getPersistence().findByCompanyId(companyId, begin, end, obc);
110 }
111
112 public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
113 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portlet.tags.NoSuchAssetException {
116 return getPersistence().findByCompanyId_First(companyId, obc);
117 }
118
119 public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
120 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.tags.NoSuchAssetException {
123 return getPersistence().findByCompanyId_Last(companyId, obc);
124 }
125
126 public static com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
127 long assetId, long companyId,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portlet.tags.NoSuchAssetException {
131 return getPersistence()
132 .findByCompanyId_PrevAndNext(assetId, companyId, obc);
133 }
134
135 public static com.liferay.portlet.tags.model.TagsAsset findByC_C(
136 long classNameId, long classPK)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.tags.NoSuchAssetException {
139 return getPersistence().findByC_C(classNameId, classPK);
140 }
141
142 public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
143 long classNameId, long classPK)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().fetchByC_C(classNameId, classPK);
146 }
147
148 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findWithDynamicQuery(
149 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findWithDynamicQuery(queryInitializer);
152 }
153
154 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findWithDynamicQuery(
155 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
156 int begin, int end) throws com.liferay.portal.SystemException {
157 return getPersistence()
158 .findWithDynamicQuery(queryInitializer, begin, end);
159 }
160
161 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
162 throws com.liferay.portal.SystemException {
163 return getPersistence().findAll();
164 }
165
166 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
167 int begin, int end) throws com.liferay.portal.SystemException {
168 return getPersistence().findAll(begin, end);
169 }
170
171 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
172 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException {
174 return getPersistence().findAll(begin, end, obc);
175 }
176
177 public static void removeByCompanyId(long companyId)
178 throws com.liferay.portal.SystemException {
179 getPersistence().removeByCompanyId(companyId);
180 }
181
182 public static void removeByC_C(long classNameId, long classPK)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portlet.tags.NoSuchAssetException {
185 getPersistence().removeByC_C(classNameId, classPK);
186 }
187
188 public static void removeAll() throws com.liferay.portal.SystemException {
189 getPersistence().removeAll();
190 }
191
192 public static int countByCompanyId(long companyId)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().countByCompanyId(companyId);
195 }
196
197 public static int countByC_C(long classNameId, long classPK)
198 throws com.liferay.portal.SystemException {
199 return getPersistence().countByC_C(classNameId, classPK);
200 }
201
202 public static int countAll() throws com.liferay.portal.SystemException {
203 return getPersistence().countAll();
204 }
205
206 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
207 long pk)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.tags.NoSuchAssetException {
210 return getPersistence().getTagsEntries(pk);
211 }
212
213 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
214 long pk, int begin, int end)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portlet.tags.NoSuchAssetException {
217 return getPersistence().getTagsEntries(pk, begin, end);
218 }
219
220 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
221 long pk, int begin, int end,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.tags.NoSuchAssetException {
225 return getPersistence().getTagsEntries(pk, begin, end, obc);
226 }
227
228 public static int getTagsEntriesSize(long pk)
229 throws com.liferay.portal.SystemException {
230 return getPersistence().getTagsEntriesSize(pk);
231 }
232
233 public static boolean containsTagsEntry(long pk, long tagsEntryPK)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().containsTagsEntry(pk, tagsEntryPK);
236 }
237
238 public static boolean containsTagsEntries(long pk)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().containsTagsEntries(pk);
241 }
242
243 public static void addTagsEntry(long pk, long tagsEntryPK)
244 throws com.liferay.portal.SystemException,
245 com.liferay.portlet.tags.NoSuchAssetException,
246 com.liferay.portlet.tags.NoSuchEntryException {
247 getPersistence().addTagsEntry(pk, tagsEntryPK);
248 }
249
250 public static void addTagsEntry(long pk,
251 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
252 throws com.liferay.portal.SystemException,
253 com.liferay.portlet.tags.NoSuchAssetException,
254 com.liferay.portlet.tags.NoSuchEntryException {
255 getPersistence().addTagsEntry(pk, tagsEntry);
256 }
257
258 public static void addTagsEntries(long pk, long[] tagsEntryPKs)
259 throws com.liferay.portal.SystemException,
260 com.liferay.portlet.tags.NoSuchAssetException,
261 com.liferay.portlet.tags.NoSuchEntryException {
262 getPersistence().addTagsEntries(pk, tagsEntryPKs);
263 }
264
265 public static void addTagsEntries(long pk,
266 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.tags.NoSuchAssetException,
269 com.liferay.portlet.tags.NoSuchEntryException {
270 getPersistence().addTagsEntries(pk, tagsEntries);
271 }
272
273 public static void clearTagsEntries(long pk)
274 throws com.liferay.portal.SystemException,
275 com.liferay.portlet.tags.NoSuchAssetException {
276 getPersistence().clearTagsEntries(pk);
277 }
278
279 public static void removeTagsEntry(long pk, long tagsEntryPK)
280 throws com.liferay.portal.SystemException,
281 com.liferay.portlet.tags.NoSuchAssetException,
282 com.liferay.portlet.tags.NoSuchEntryException {
283 getPersistence().removeTagsEntry(pk, tagsEntryPK);
284 }
285
286 public static void removeTagsEntry(long pk,
287 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
288 throws com.liferay.portal.SystemException,
289 com.liferay.portlet.tags.NoSuchAssetException,
290 com.liferay.portlet.tags.NoSuchEntryException {
291 getPersistence().removeTagsEntry(pk, tagsEntry);
292 }
293
294 public static void removeTagsEntries(long pk, long[] tagsEntryPKs)
295 throws com.liferay.portal.SystemException,
296 com.liferay.portlet.tags.NoSuchAssetException,
297 com.liferay.portlet.tags.NoSuchEntryException {
298 getPersistence().removeTagsEntries(pk, tagsEntryPKs);
299 }
300
301 public static void removeTagsEntries(long pk,
302 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
303 throws com.liferay.portal.SystemException,
304 com.liferay.portlet.tags.NoSuchAssetException,
305 com.liferay.portlet.tags.NoSuchEntryException {
306 getPersistence().removeTagsEntries(pk, tagsEntries);
307 }
308
309 public static void setTagsEntries(long pk, long[] tagsEntryPKs)
310 throws com.liferay.portal.SystemException,
311 com.liferay.portlet.tags.NoSuchAssetException,
312 com.liferay.portlet.tags.NoSuchEntryException {
313 getPersistence().setTagsEntries(pk, tagsEntryPKs);
314 }
315
316 public static void setTagsEntries(long pk,
317 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
318 throws com.liferay.portal.SystemException,
319 com.liferay.portlet.tags.NoSuchAssetException,
320 com.liferay.portlet.tags.NoSuchEntryException {
321 getPersistence().setTagsEntries(pk, tagsEntries);
322 }
323
324 public static TagsAssetPersistence getPersistence() {
325 return _getUtil()._persistence;
326 }
327
328 public void setPersistence(TagsAssetPersistence persistence) {
329 _persistence = persistence;
330 }
331
332 private static TagsAssetUtil _getUtil() {
333 if (_util == null) {
334 _util = (TagsAssetUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
335 }
336
337 return _util;
338 }
339
340 private static final String _UTIL = TagsAssetUtil.class.getName();
341 private static TagsAssetUtil _util;
342 private TagsAssetPersistence _persistence;
343 }