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