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.TagsEntry;
22
23 import java.util.List;
24
25
38 public class TagsEntryUtil {
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 TagsEntry remove(TagsEntry tagsEntry)
66 throws SystemException {
67 return getPersistence().remove(tagsEntry);
68 }
69
70
73 public static TagsEntry update(TagsEntry tagsEntry, boolean merge)
74 throws SystemException {
75 return getPersistence().update(tagsEntry, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.tags.model.TagsEntry tagsEntry) {
80 getPersistence().cacheResult(tagsEntry);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries) {
85 getPersistence().cacheResult(tagsEntries);
86 }
87
88 public static com.liferay.portlet.tags.model.TagsEntry create(long entryId) {
89 return getPersistence().create(entryId);
90 }
91
92 public static com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.tags.NoSuchEntryException {
95 return getPersistence().remove(entryId);
96 }
97
98
101 public static com.liferay.portlet.tags.model.TagsEntry update(
102 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().update(tagsEntry);
105 }
106
107 public static com.liferay.portlet.tags.model.TagsEntry updateImpl(
108 com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
109 throws com.liferay.portal.SystemException {
110 return getPersistence().updateImpl(tagsEntry, merge);
111 }
112
113 public static com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
114 long entryId)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.tags.NoSuchEntryException {
117 return getPersistence().findByPrimaryKey(entryId);
118 }
119
120 public static com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
121 long entryId) throws com.liferay.portal.SystemException {
122 return getPersistence().fetchByPrimaryKey(entryId);
123 }
124
125 public static com.liferay.portlet.tags.model.TagsEntry findByC_N(
126 long companyId, java.lang.String name)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.tags.NoSuchEntryException {
129 return getPersistence().findByC_N(companyId, name);
130 }
131
132 public static com.liferay.portlet.tags.model.TagsEntry fetchByC_N(
133 long companyId, java.lang.String name)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().fetchByC_N(companyId, name);
136 }
137
138 public static com.liferay.portlet.tags.model.TagsEntry fetchByC_N(
139 long companyId, java.lang.String name, boolean retrieveFromCache)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().fetchByC_N(companyId, name, retrieveFromCache);
142 }
143
144 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findAll();
147 }
148
149 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
150 int start, int end) throws com.liferay.portal.SystemException {
151 return getPersistence().findAll(start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
155 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll(start, end, obc);
158 }
159
160 public static void removeByC_N(long companyId, java.lang.String name)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.tags.NoSuchEntryException {
163 getPersistence().removeByC_N(companyId, name);
164 }
165
166 public static void removeAll() throws com.liferay.portal.SystemException {
167 getPersistence().removeAll();
168 }
169
170 public static int countByC_N(long companyId, java.lang.String name)
171 throws com.liferay.portal.SystemException {
172 return getPersistence().countByC_N(companyId, name);
173 }
174
175 public static int countAll() throws com.liferay.portal.SystemException {
176 return getPersistence().countAll();
177 }
178
179 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
180 long pk) throws com.liferay.portal.SystemException {
181 return getPersistence().getTagsAssets(pk);
182 }
183
184 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
185 long pk, int start, int end) throws com.liferay.portal.SystemException {
186 return getPersistence().getTagsAssets(pk, start, end);
187 }
188
189 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
190 long pk, int start, int end,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().getTagsAssets(pk, start, end, obc);
194 }
195
196 public static int getTagsAssetsSize(long pk)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().getTagsAssetsSize(pk);
199 }
200
201 public static boolean containsTagsAsset(long pk, long tagsAssetPK)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().containsTagsAsset(pk, tagsAssetPK);
204 }
205
206 public static boolean containsTagsAssets(long pk)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().containsTagsAssets(pk);
209 }
210
211 public static void addTagsAsset(long pk, long tagsAssetPK)
212 throws com.liferay.portal.SystemException {
213 getPersistence().addTagsAsset(pk, tagsAssetPK);
214 }
215
216 public static void addTagsAsset(long pk,
217 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
218 throws com.liferay.portal.SystemException {
219 getPersistence().addTagsAsset(pk, tagsAsset);
220 }
221
222 public static void addTagsAssets(long pk, long[] tagsAssetPKs)
223 throws com.liferay.portal.SystemException {
224 getPersistence().addTagsAssets(pk, tagsAssetPKs);
225 }
226
227 public static void addTagsAssets(long pk,
228 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
229 throws com.liferay.portal.SystemException {
230 getPersistence().addTagsAssets(pk, tagsAssets);
231 }
232
233 public static void clearTagsAssets(long pk)
234 throws com.liferay.portal.SystemException {
235 getPersistence().clearTagsAssets(pk);
236 }
237
238 public static void removeTagsAsset(long pk, long tagsAssetPK)
239 throws com.liferay.portal.SystemException {
240 getPersistence().removeTagsAsset(pk, tagsAssetPK);
241 }
242
243 public static void removeTagsAsset(long pk,
244 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
245 throws com.liferay.portal.SystemException {
246 getPersistence().removeTagsAsset(pk, tagsAsset);
247 }
248
249 public static void removeTagsAssets(long pk, long[] tagsAssetPKs)
250 throws com.liferay.portal.SystemException {
251 getPersistence().removeTagsAssets(pk, tagsAssetPKs);
252 }
253
254 public static void removeTagsAssets(long pk,
255 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
256 throws com.liferay.portal.SystemException {
257 getPersistence().removeTagsAssets(pk, tagsAssets);
258 }
259
260 public static void setTagsAssets(long pk, long[] tagsAssetPKs)
261 throws com.liferay.portal.SystemException {
262 getPersistence().setTagsAssets(pk, tagsAssetPKs);
263 }
264
265 public static void setTagsAssets(long pk,
266 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
267 throws com.liferay.portal.SystemException {
268 getPersistence().setTagsAssets(pk, tagsAssets);
269 }
270
271 public static TagsEntryPersistence getPersistence() {
272 if (_persistence == null) {
273 _persistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName());
274 }
275
276 return _persistence;
277 }
278
279 public void setPersistence(TagsEntryPersistence persistence) {
280 _persistence = persistence;
281 }
282
283 private static TagsEntryPersistence _persistence;
284 }