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