1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.tags.model.TagsProperty;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="TagsPropertyUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       TagsPropertyPersistence
43   * @see       TagsPropertyPersistenceImpl
44   * @generated
45   */
46  public class TagsPropertyUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static TagsProperty remove(TagsProperty tagsProperty)
74          throws SystemException {
75          return getPersistence().remove(tagsProperty);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static TagsProperty update(TagsProperty tagsProperty, boolean merge)
82          throws SystemException {
83          return getPersistence().update(tagsProperty, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.tags.model.TagsProperty tagsProperty) {
88          getPersistence().cacheResult(tagsProperty);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.tags.model.TagsProperty> tagsProperties) {
93          getPersistence().cacheResult(tagsProperties);
94      }
95  
96      public static com.liferay.portlet.tags.model.TagsProperty create(
97          long propertyId) {
98          return getPersistence().create(propertyId);
99      }
100 
101     public static com.liferay.portlet.tags.model.TagsProperty remove(
102         long propertyId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.tags.NoSuchPropertyException {
105         return getPersistence().remove(propertyId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.tags.model.TagsProperty update(
112         com.liferay.portlet.tags.model.TagsProperty tagsProperty)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(tagsProperty);
115     }
116 
117     public static com.liferay.portlet.tags.model.TagsProperty updateImpl(
118         com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
119         throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(tagsProperty, merge);
121     }
122 
123     public static com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
124         long propertyId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.tags.NoSuchPropertyException {
127         return getPersistence().findByPrimaryKey(propertyId);
128     }
129 
130     public static com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
131         long propertyId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(propertyId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
136         long companyId) throws com.liferay.portal.SystemException {
137         return getPersistence().findByCompanyId(companyId);
138     }
139 
140     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByCompanyId(companyId, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
147         long companyId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByCompanyId(companyId, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
154         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.tags.NoSuchPropertyException {
157         return getPersistence().findByCompanyId_First(companyId, obc);
158     }
159 
160     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
161         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tags.NoSuchPropertyException {
164         return getPersistence().findByCompanyId_Last(companyId, obc);
165     }
166 
167     public static com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
168         long propertyId, long companyId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.tags.NoSuchPropertyException {
172         return getPersistence()
173                    .findByCompanyId_PrevAndNext(propertyId, companyId, obc);
174     }
175 
176     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
177         long entryId) throws com.liferay.portal.SystemException {
178         return getPersistence().findByEntryId(entryId);
179     }
180 
181     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
182         long entryId, int start, int end)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByEntryId(entryId, start, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
188         long entryId, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException {
191         return getPersistence().findByEntryId(entryId, start, end, obc);
192     }
193 
194     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
195         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.tags.NoSuchPropertyException {
198         return getPersistence().findByEntryId_First(entryId, obc);
199     }
200 
201     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
202         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.tags.NoSuchPropertyException {
205         return getPersistence().findByEntryId_Last(entryId, obc);
206     }
207 
208     public static com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
209         long propertyId, long entryId,
210         com.liferay.portal.kernel.util.OrderByComparator obc)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.tags.NoSuchPropertyException {
213         return getPersistence()
214                    .findByEntryId_PrevAndNext(propertyId, entryId, obc);
215     }
216 
217     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
218         long companyId, java.lang.String key)
219         throws com.liferay.portal.SystemException {
220         return getPersistence().findByC_K(companyId, key);
221     }
222 
223     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
224         long companyId, java.lang.String key, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByC_K(companyId, key, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
230         long companyId, java.lang.String key, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findByC_K(companyId, key, start, end, obc);
234     }
235 
236     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
237         long companyId, java.lang.String key,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.tags.NoSuchPropertyException {
241         return getPersistence().findByC_K_First(companyId, key, obc);
242     }
243 
244     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
245         long companyId, java.lang.String key,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.tags.NoSuchPropertyException {
249         return getPersistence().findByC_K_Last(companyId, key, obc);
250     }
251 
252     public static com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
253         long propertyId, long companyId, java.lang.String key,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.tags.NoSuchPropertyException {
257         return getPersistence()
258                    .findByC_K_PrevAndNext(propertyId, companyId, key, obc);
259     }
260 
261     public static com.liferay.portlet.tags.model.TagsProperty findByE_K(
262         long entryId, java.lang.String key)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.tags.NoSuchPropertyException {
265         return getPersistence().findByE_K(entryId, key);
266     }
267 
268     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
269         long entryId, java.lang.String key)
270         throws com.liferay.portal.SystemException {
271         return getPersistence().fetchByE_K(entryId, key);
272     }
273 
274     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
275         long entryId, java.lang.String key, boolean retrieveFromCache)
276         throws com.liferay.portal.SystemException {
277         return getPersistence().fetchByE_K(entryId, key, retrieveFromCache);
278     }
279 
280     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll()
281         throws com.liferay.portal.SystemException {
282         return getPersistence().findAll();
283     }
284 
285     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
286         int start, int end) throws com.liferay.portal.SystemException {
287         return getPersistence().findAll(start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
291         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException {
293         return getPersistence().findAll(start, end, obc);
294     }
295 
296     public static void removeByCompanyId(long companyId)
297         throws com.liferay.portal.SystemException {
298         getPersistence().removeByCompanyId(companyId);
299     }
300 
301     public static void removeByEntryId(long entryId)
302         throws com.liferay.portal.SystemException {
303         getPersistence().removeByEntryId(entryId);
304     }
305 
306     public static void removeByC_K(long companyId, java.lang.String key)
307         throws com.liferay.portal.SystemException {
308         getPersistence().removeByC_K(companyId, key);
309     }
310 
311     public static void removeByE_K(long entryId, java.lang.String key)
312         throws com.liferay.portal.SystemException,
313             com.liferay.portlet.tags.NoSuchPropertyException {
314         getPersistence().removeByE_K(entryId, key);
315     }
316 
317     public static void removeAll() throws com.liferay.portal.SystemException {
318         getPersistence().removeAll();
319     }
320 
321     public static int countByCompanyId(long companyId)
322         throws com.liferay.portal.SystemException {
323         return getPersistence().countByCompanyId(companyId);
324     }
325 
326     public static int countByEntryId(long entryId)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().countByEntryId(entryId);
329     }
330 
331     public static int countByC_K(long companyId, java.lang.String key)
332         throws com.liferay.portal.SystemException {
333         return getPersistence().countByC_K(companyId, key);
334     }
335 
336     public static int countByE_K(long entryId, java.lang.String key)
337         throws com.liferay.portal.SystemException {
338         return getPersistence().countByE_K(entryId, key);
339     }
340 
341     public static int countAll() throws com.liferay.portal.SystemException {
342         return getPersistence().countAll();
343     }
344 
345     public static TagsPropertyPersistence getPersistence() {
346         if (_persistence == null) {
347             _persistence = (TagsPropertyPersistence)PortalBeanLocatorUtil.locate(TagsPropertyPersistence.class.getName());
348         }
349 
350         return _persistence;
351     }
352 
353     public void setPersistence(TagsPropertyPersistence persistence) {
354         _persistence = persistence;
355     }
356 
357     private static TagsPropertyPersistence _persistence;
358 }