1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service.persistence;
24  
25  /**
26   * <a href="TagsPropertyUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class TagsPropertyUtil {
32      public static com.liferay.portlet.tags.model.TagsProperty create(
33          long propertyId) {
34          return getPersistence().create(propertyId);
35      }
36  
37      public static com.liferay.portlet.tags.model.TagsProperty remove(
38          long propertyId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.tags.NoSuchPropertyException {
41          return getPersistence().remove(propertyId);
42      }
43  
44      public static com.liferay.portlet.tags.model.TagsProperty remove(
45          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(tagsProperty);
48      }
49  
50      public static com.liferay.portlet.tags.model.TagsProperty update(
51          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(tagsProperty);
54      }
55  
56      public static com.liferay.portlet.tags.model.TagsProperty update(
57          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
58          throws com.liferay.portal.SystemException {
59          return getPersistence().update(tagsProperty, merge);
60      }
61  
62      public static com.liferay.portlet.tags.model.TagsProperty updateImpl(
63          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
64          throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(tagsProperty, merge);
66      }
67  
68      public static com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
69          long propertyId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.tags.NoSuchPropertyException {
72          return getPersistence().findByPrimaryKey(propertyId);
73      }
74  
75      public static com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
76          long propertyId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(propertyId);
78      }
79  
80      public static java.util.List findByCompanyId(long companyId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByCompanyId(companyId);
83      }
84  
85      public static java.util.List findByCompanyId(long companyId, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByCompanyId(companyId, begin, end);
88      }
89  
90      public static java.util.List findByCompanyId(long companyId, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByCompanyId(companyId, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
97          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portlet.tags.NoSuchPropertyException {
100         return getPersistence().findByCompanyId_First(companyId, obc);
101     }
102 
103     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
104         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portlet.tags.NoSuchPropertyException {
107         return getPersistence().findByCompanyId_Last(companyId, obc);
108     }
109 
110     public static com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
111         long propertyId, long companyId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.tags.NoSuchPropertyException {
115         return getPersistence().findByCompanyId_PrevAndNext(propertyId,
116             companyId, obc);
117     }
118 
119     public static java.util.List findByEntryId(long entryId)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().findByEntryId(entryId);
122     }
123 
124     public static java.util.List findByEntryId(long entryId, int begin, int end)
125         throws com.liferay.portal.SystemException {
126         return getPersistence().findByEntryId(entryId, begin, end);
127     }
128 
129     public static java.util.List findByEntryId(long entryId, int begin,
130         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByEntryId(entryId, begin, end, obc);
133     }
134 
135     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
136         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.tags.NoSuchPropertyException {
139         return getPersistence().findByEntryId_First(entryId, obc);
140     }
141 
142     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
143         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portlet.tags.NoSuchPropertyException {
146         return getPersistence().findByEntryId_Last(entryId, obc);
147     }
148 
149     public static com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
150         long propertyId, long entryId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portlet.tags.NoSuchPropertyException {
154         return getPersistence().findByEntryId_PrevAndNext(propertyId, entryId,
155             obc);
156     }
157 
158     public static java.util.List findByC_K(long companyId, java.lang.String key)
159         throws com.liferay.portal.SystemException {
160         return getPersistence().findByC_K(companyId, key);
161     }
162 
163     public static java.util.List findByC_K(long companyId,
164         java.lang.String key, int begin, int end)
165         throws com.liferay.portal.SystemException {
166         return getPersistence().findByC_K(companyId, key, begin, end);
167     }
168 
169     public static java.util.List findByC_K(long companyId,
170         java.lang.String key, int begin, int end,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException {
173         return getPersistence().findByC_K(companyId, key, begin, end, obc);
174     }
175 
176     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
177         long companyId, java.lang.String key,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException, 
180             com.liferay.portlet.tags.NoSuchPropertyException {
181         return getPersistence().findByC_K_First(companyId, key, obc);
182     }
183 
184     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
185         long companyId, java.lang.String key,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException, 
188             com.liferay.portlet.tags.NoSuchPropertyException {
189         return getPersistence().findByC_K_Last(companyId, key, obc);
190     }
191 
192     public static com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
193         long propertyId, long companyId, java.lang.String key,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException, 
196             com.liferay.portlet.tags.NoSuchPropertyException {
197         return getPersistence().findByC_K_PrevAndNext(propertyId, companyId,
198             key, obc);
199     }
200 
201     public static com.liferay.portlet.tags.model.TagsProperty findByE_K(
202         long entryId, java.lang.String key)
203         throws com.liferay.portal.SystemException, 
204             com.liferay.portlet.tags.NoSuchPropertyException {
205         return getPersistence().findByE_K(entryId, key);
206     }
207 
208     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
209         long entryId, java.lang.String key)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().fetchByE_K(entryId, key);
212     }
213 
214     public static java.util.List findWithDynamicQuery(
215         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
216         throws com.liferay.portal.SystemException {
217         return getPersistence().findWithDynamicQuery(queryInitializer);
218     }
219 
220     public static java.util.List findWithDynamicQuery(
221         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
222         int begin, int end) throws com.liferay.portal.SystemException {
223         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
224             end);
225     }
226 
227     public static java.util.List findAll()
228         throws com.liferay.portal.SystemException {
229         return getPersistence().findAll();
230     }
231 
232     public static java.util.List findAll(int begin, int end)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findAll(begin, end);
235     }
236 
237     public static java.util.List findAll(int begin, int end,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException {
240         return getPersistence().findAll(begin, end, obc);
241     }
242 
243     public static void removeByCompanyId(long companyId)
244         throws com.liferay.portal.SystemException {
245         getPersistence().removeByCompanyId(companyId);
246     }
247 
248     public static void removeByEntryId(long entryId)
249         throws com.liferay.portal.SystemException {
250         getPersistence().removeByEntryId(entryId);
251     }
252 
253     public static void removeByC_K(long companyId, java.lang.String key)
254         throws com.liferay.portal.SystemException {
255         getPersistence().removeByC_K(companyId, key);
256     }
257 
258     public static void removeByE_K(long entryId, java.lang.String key)
259         throws com.liferay.portal.SystemException, 
260             com.liferay.portlet.tags.NoSuchPropertyException {
261         getPersistence().removeByE_K(entryId, key);
262     }
263 
264     public static void removeAll() throws com.liferay.portal.SystemException {
265         getPersistence().removeAll();
266     }
267 
268     public static int countByCompanyId(long companyId)
269         throws com.liferay.portal.SystemException {
270         return getPersistence().countByCompanyId(companyId);
271     }
272 
273     public static int countByEntryId(long entryId)
274         throws com.liferay.portal.SystemException {
275         return getPersistence().countByEntryId(entryId);
276     }
277 
278     public static int countByC_K(long companyId, java.lang.String key)
279         throws com.liferay.portal.SystemException {
280         return getPersistence().countByC_K(companyId, key);
281     }
282 
283     public static int countByE_K(long entryId, java.lang.String key)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().countByE_K(entryId, key);
286     }
287 
288     public static int countAll() throws com.liferay.portal.SystemException {
289         return getPersistence().countAll();
290     }
291 
292     public static TagsPropertyPersistence getPersistence() {
293         return _getUtil()._persistence;
294     }
295 
296     public void setPersistence(TagsPropertyPersistence persistence) {
297         _persistence = persistence;
298     }
299 
300     private static TagsPropertyUtil _getUtil() {
301         if (_util == null) {
302             _util = (TagsPropertyUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
303         }
304 
305         return _util;
306     }
307 
308     private static final String _UTIL = TagsPropertyUtil.class.getName();
309     private static TagsPropertyUtil _util;
310     private TagsPropertyPersistence _persistence;
311 }