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