1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.PluginSetting;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="PluginSettingUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       PluginSettingPersistence
34   * @see       PluginSettingPersistenceImpl
35   * @generated
36   */
37  public class PluginSettingUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static PluginSetting remove(PluginSetting pluginSetting)
65          throws SystemException {
66          return getPersistence().remove(pluginSetting);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static PluginSetting update(PluginSetting pluginSetting,
73          boolean merge) throws SystemException {
74          return getPersistence().update(pluginSetting, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portal.model.PluginSetting pluginSetting) {
79          getPersistence().cacheResult(pluginSetting);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portal.model.PluginSetting> pluginSettings) {
84          getPersistence().cacheResult(pluginSettings);
85      }
86  
87      public static com.liferay.portal.model.PluginSetting create(
88          long pluginSettingId) {
89          return getPersistence().create(pluginSettingId);
90      }
91  
92      public static com.liferay.portal.model.PluginSetting remove(
93          long pluginSettingId)
94          throws com.liferay.portal.NoSuchPluginSettingException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return getPersistence().remove(pluginSettingId);
97      }
98  
99      public static com.liferay.portal.model.PluginSetting updateImpl(
100         com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(pluginSetting, merge);
103     }
104 
105     public static com.liferay.portal.model.PluginSetting findByPrimaryKey(
106         long pluginSettingId)
107         throws com.liferay.portal.NoSuchPluginSettingException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getPersistence().findByPrimaryKey(pluginSettingId);
110     }
111 
112     public static com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
113         long pluginSettingId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(pluginSettingId);
116     }
117 
118     public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
119         long companyId)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().findByCompanyId(companyId);
122     }
123 
124     public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
125         long companyId, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException {
127         return getPersistence().findByCompanyId(companyId, start, end);
128     }
129 
130     public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
131         long companyId, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence()
135                    .findByCompanyId(companyId, start, end, orderByComparator);
136     }
137 
138     public static com.liferay.portal.model.PluginSetting findByCompanyId_First(
139         long companyId,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.NoSuchPluginSettingException,
142             com.liferay.portal.kernel.exception.SystemException {
143         return getPersistence()
144                    .findByCompanyId_First(companyId, orderByComparator);
145     }
146 
147     public static com.liferay.portal.model.PluginSetting findByCompanyId_Last(
148         long companyId,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.NoSuchPluginSettingException,
151             com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByCompanyId_Last(companyId, orderByComparator);
154     }
155 
156     public static com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
157         long pluginSettingId, long companyId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.NoSuchPluginSettingException,
160             com.liferay.portal.kernel.exception.SystemException {
161         return getPersistence()
162                    .findByCompanyId_PrevAndNext(pluginSettingId, companyId,
163             orderByComparator);
164     }
165 
166     public static com.liferay.portal.model.PluginSetting findByC_I_T(
167         long companyId, java.lang.String pluginId, java.lang.String pluginType)
168         throws com.liferay.portal.NoSuchPluginSettingException,
169             com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().findByC_I_T(companyId, pluginId, pluginType);
171     }
172 
173     public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
174         long companyId, java.lang.String pluginId, java.lang.String pluginType)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         return getPersistence().fetchByC_I_T(companyId, pluginId, pluginType);
177     }
178 
179     public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
180         long companyId, java.lang.String pluginId, java.lang.String pluginType,
181         boolean retrieveFromCache)
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence()
184                    .fetchByC_I_T(companyId, pluginId, pluginType,
185             retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll()
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().findAll();
191     }
192 
193     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
194         int start, int end)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().findAll(start, end);
197     }
198 
199     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
200         int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         return getPersistence().findAll(start, end, orderByComparator);
204     }
205 
206     public static void removeByCompanyId(long companyId)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         getPersistence().removeByCompanyId(companyId);
209     }
210 
211     public static void removeByC_I_T(long companyId, java.lang.String pluginId,
212         java.lang.String pluginType)
213         throws com.liferay.portal.NoSuchPluginSettingException,
214             com.liferay.portal.kernel.exception.SystemException {
215         getPersistence().removeByC_I_T(companyId, pluginId, pluginType);
216     }
217 
218     public static void removeAll()
219         throws com.liferay.portal.kernel.exception.SystemException {
220         getPersistence().removeAll();
221     }
222 
223     public static int countByCompanyId(long companyId)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getPersistence().countByCompanyId(companyId);
226     }
227 
228     public static int countByC_I_T(long companyId, java.lang.String pluginId,
229         java.lang.String pluginType)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().countByC_I_T(companyId, pluginId, pluginType);
232     }
233 
234     public static int countAll()
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence().countAll();
237     }
238 
239     public static PluginSettingPersistence getPersistence() {
240         if (_persistence == null) {
241             _persistence = (PluginSettingPersistence)PortalBeanLocatorUtil.locate(PluginSettingPersistence.class.getName());
242         }
243 
244         return _persistence;
245     }
246 
247     public void setPersistence(PluginSettingPersistence persistence) {
248         _persistence = persistence;
249     }
250 
251     private static PluginSettingPersistence _persistence;
252 }