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