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