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 obc)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence().findByCompanyId(companyId, start, end, obc);
135     }
136 
137     public static com.liferay.portal.model.PluginSetting findByCompanyId_First(
138         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.NoSuchPluginSettingException,
140             com.liferay.portal.kernel.exception.SystemException {
141         return getPersistence().findByCompanyId_First(companyId, obc);
142     }
143 
144     public static com.liferay.portal.model.PluginSetting findByCompanyId_Last(
145         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.NoSuchPluginSettingException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return getPersistence().findByCompanyId_Last(companyId, obc);
149     }
150 
151     public static com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
152         long pluginSettingId, long companyId,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.NoSuchPluginSettingException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return getPersistence()
157                    .findByCompanyId_PrevAndNext(pluginSettingId, companyId, obc);
158     }
159 
160     public static com.liferay.portal.model.PluginSetting findByC_I_T(
161         long companyId, java.lang.String pluginId, java.lang.String pluginType)
162         throws com.liferay.portal.NoSuchPluginSettingException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence().findByC_I_T(companyId, pluginId, pluginType);
165     }
166 
167     public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
168         long companyId, java.lang.String pluginId, java.lang.String pluginType)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().fetchByC_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         boolean retrieveFromCache)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence()
178                    .fetchByC_I_T(companyId, pluginId, pluginType,
179             retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll()
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getPersistence().findAll();
185     }
186 
187     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
188         int start, int end)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().findAll(start, end);
191     }
192 
193     public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
194         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().findAll(start, end, obc);
197     }
198 
199     public static void removeByCompanyId(long companyId)
200         throws com.liferay.portal.kernel.exception.SystemException {
201         getPersistence().removeByCompanyId(companyId);
202     }
203 
204     public static void removeByC_I_T(long companyId, java.lang.String pluginId,
205         java.lang.String pluginType)
206         throws com.liferay.portal.NoSuchPluginSettingException,
207             com.liferay.portal.kernel.exception.SystemException {
208         getPersistence().removeByC_I_T(companyId, pluginId, pluginType);
209     }
210 
211     public static void removeAll()
212         throws com.liferay.portal.kernel.exception.SystemException {
213         getPersistence().removeAll();
214     }
215 
216     public static int countByCompanyId(long companyId)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().countByCompanyId(companyId);
219     }
220 
221     public static int countByC_I_T(long companyId, java.lang.String pluginId,
222         java.lang.String pluginType)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         return getPersistence().countByC_I_T(companyId, pluginId, pluginType);
225     }
226 
227     public static int countAll()
228         throws com.liferay.portal.kernel.exception.SystemException {
229         return getPersistence().countAll();
230     }
231 
232     public static PluginSettingPersistence getPersistence() {
233         if (_persistence == null) {
234             _persistence = (PluginSettingPersistence)PortalBeanLocatorUtil.locate(PluginSettingPersistence.class.getName());
235         }
236 
237         return _persistence;
238     }
239 
240     public void setPersistence(PluginSettingPersistence persistence) {
241         _persistence = persistence;
242     }
243 
244     private static PluginSettingPersistence _persistence;
245 }