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.portal.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  import com.liferay.portal.model.PluginSetting;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="PluginSettingUtil.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       PluginSettingPersistence
42   * @see       PluginSettingPersistenceImpl
43   * @generated
44   */
45  public class PluginSettingUtil {
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
48       */
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65          int start, int end) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
71       */
72      public static PluginSetting remove(PluginSetting pluginSetting)
73          throws SystemException {
74          return getPersistence().remove(pluginSetting);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static PluginSetting update(PluginSetting pluginSetting,
81          boolean merge) throws SystemException {
82          return getPersistence().update(pluginSetting, merge);
83      }
84  
85      public static void cacheResult(
86          com.liferay.portal.model.PluginSetting pluginSetting) {
87          getPersistence().cacheResult(pluginSetting);
88      }
89  
90      public static void cacheResult(
91          java.util.List<com.liferay.portal.model.PluginSetting> pluginSettings) {
92          getPersistence().cacheResult(pluginSettings);
93      }
94  
95      public static com.liferay.portal.model.PluginSetting create(
96          long pluginSettingId) {
97          return getPersistence().create(pluginSettingId);
98      }
99  
100     public static com.liferay.portal.model.PluginSetting remove(
101         long pluginSettingId)
102         throws com.liferay.portal.NoSuchPluginSettingException,
103             com.liferay.portal.SystemException {
104         return getPersistence().remove(pluginSettingId);
105     }
106 
107     /**
108      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
109      */
110     public static com.liferay.portal.model.PluginSetting update(
111         com.liferay.portal.model.PluginSetting pluginSetting)
112         throws com.liferay.portal.SystemException {
113         return getPersistence().update(pluginSetting);
114     }
115 
116     public static com.liferay.portal.model.PluginSetting updateImpl(
117         com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().updateImpl(pluginSetting, merge);
120     }
121 
122     public static com.liferay.portal.model.PluginSetting findByPrimaryKey(
123         long pluginSettingId)
124         throws com.liferay.portal.NoSuchPluginSettingException,
125             com.liferay.portal.SystemException {
126         return getPersistence().findByPrimaryKey(pluginSettingId);
127     }
128 
129     public static com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
130         long pluginSettingId) throws com.liferay.portal.SystemException {
131         return getPersistence().fetchByPrimaryKey(pluginSettingId);
132     }
133 
134     public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
135         long companyId) throws com.liferay.portal.SystemException {
136         return getPersistence().findByCompanyId(companyId);
137     }
138 
139     public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
140         long companyId, int start, int end)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByCompanyId(companyId, start, end);
143     }
144 
145     public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
146         long companyId, int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException {
149         return getPersistence().findByCompanyId(companyId, start, end, obc);
150     }
151 
152     public static com.liferay.portal.model.PluginSetting findByCompanyId_First(
153         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.NoSuchPluginSettingException,
155             com.liferay.portal.SystemException {
156         return getPersistence().findByCompanyId_First(companyId, obc);
157     }
158 
159     public static com.liferay.portal.model.PluginSetting findByCompanyId_Last(
160         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.NoSuchPluginSettingException,
162             com.liferay.portal.SystemException {
163         return getPersistence().findByCompanyId_Last(companyId, obc);
164     }
165 
166     public static com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
167         long pluginSettingId, long companyId,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchPluginSettingException,
170             com.liferay.portal.SystemException {
171         return getPersistence()
172                    .findByCompanyId_PrevAndNext(pluginSettingId, companyId, obc);
173     }
174 
175     public static com.liferay.portal.model.PluginSetting findByC_I_T(
176         long companyId, java.lang.String pluginId, java.lang.String pluginType)
177         throws com.liferay.portal.NoSuchPluginSettingException,
178             com.liferay.portal.SystemException {
179         return getPersistence().findByC_I_T(companyId, pluginId, pluginType);
180     }
181 
182     public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
183         long companyId, java.lang.String pluginId, java.lang.String pluginType)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByC_I_T(companyId, pluginId, pluginType);
186     }
187 
188     public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
189         long companyId, java.lang.String pluginId, java.lang.String pluginType,
190         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
191         return getPersistence()
192                    .fetchByC_I_T(companyId, pluginId, pluginType,
193             retrieveFromCache);
194     }
195 
196     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll()
197         throws com.liferay.portal.SystemException {
198         return getPersistence().findAll();
199     }
200 
201     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
202         int start, int end) throws com.liferay.portal.SystemException {
203         return getPersistence().findAll(start, end);
204     }
205 
206     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
207         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException {
209         return getPersistence().findAll(start, end, obc);
210     }
211 
212     public static void removeByCompanyId(long companyId)
213         throws com.liferay.portal.SystemException {
214         getPersistence().removeByCompanyId(companyId);
215     }
216 
217     public static void removeByC_I_T(long companyId, java.lang.String pluginId,
218         java.lang.String pluginType)
219         throws com.liferay.portal.NoSuchPluginSettingException,
220             com.liferay.portal.SystemException {
221         getPersistence().removeByC_I_T(companyId, pluginId, pluginType);
222     }
223 
224     public static void removeAll() throws com.liferay.portal.SystemException {
225         getPersistence().removeAll();
226     }
227 
228     public static int countByCompanyId(long companyId)
229         throws com.liferay.portal.SystemException {
230         return getPersistence().countByCompanyId(companyId);
231     }
232 
233     public static int countByC_I_T(long companyId, java.lang.String pluginId,
234         java.lang.String pluginType) throws com.liferay.portal.SystemException {
235         return getPersistence().countByC_I_T(companyId, pluginId, pluginType);
236     }
237 
238     public static int countAll() throws com.liferay.portal.SystemException {
239         return getPersistence().countAll();
240     }
241 
242     public static PluginSettingPersistence getPersistence() {
243         if (_persistence == null) {
244             _persistence = (PluginSettingPersistence)PortalBeanLocatorUtil.locate(PluginSettingPersistence.class.getName());
245         }
246 
247         return _persistence;
248     }
249 
250     public void setPersistence(PluginSettingPersistence persistence) {
251         _persistence = persistence;
252     }
253 
254     private static PluginSettingPersistence _persistence;
255 }