001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.PluginSetting;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class PluginSettingUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(PluginSetting pluginSetting) {
044 getPersistence().clearCache(pluginSetting);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<PluginSetting> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<PluginSetting> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<PluginSetting> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static PluginSetting remove(PluginSetting pluginSetting)
087 throws SystemException {
088 return getPersistence().remove(pluginSetting);
089 }
090
091
094 public static PluginSetting update(PluginSetting pluginSetting,
095 boolean merge) throws SystemException {
096 return getPersistence().update(pluginSetting, merge);
097 }
098
099
102 public static PluginSetting update(PluginSetting pluginSetting,
103 boolean merge, ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(pluginSetting, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portal.model.PluginSetting pluginSetting) {
109 getPersistence().cacheResult(pluginSetting);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portal.model.PluginSetting> pluginSettings) {
114 getPersistence().cacheResult(pluginSettings);
115 }
116
117 public static com.liferay.portal.model.PluginSetting create(
118 long pluginSettingId) {
119 return getPersistence().create(pluginSettingId);
120 }
121
122 public static com.liferay.portal.model.PluginSetting remove(
123 long pluginSettingId)
124 throws com.liferay.portal.NoSuchPluginSettingException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().remove(pluginSettingId);
127 }
128
129 public static com.liferay.portal.model.PluginSetting updateImpl(
130 com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(pluginSetting, merge);
133 }
134
135 public static com.liferay.portal.model.PluginSetting findByPrimaryKey(
136 long pluginSettingId)
137 throws com.liferay.portal.NoSuchPluginSettingException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByPrimaryKey(pluginSettingId);
140 }
141
142 public static com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
143 long pluginSettingId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(pluginSettingId);
146 }
147
148 public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
149 long companyId)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByCompanyId(companyId);
152 }
153
154 public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
155 long companyId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByCompanyId(companyId, start, end);
158 }
159
160 public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
161 long companyId, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence()
165 .findByCompanyId(companyId, start, end, orderByComparator);
166 }
167
168 public static com.liferay.portal.model.PluginSetting findByCompanyId_First(
169 long companyId,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.NoSuchPluginSettingException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence()
174 .findByCompanyId_First(companyId, orderByComparator);
175 }
176
177 public static com.liferay.portal.model.PluginSetting findByCompanyId_Last(
178 long companyId,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.NoSuchPluginSettingException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence()
183 .findByCompanyId_Last(companyId, orderByComparator);
184 }
185
186 public static com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
187 long pluginSettingId, long companyId,
188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189 throws com.liferay.portal.NoSuchPluginSettingException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence()
192 .findByCompanyId_PrevAndNext(pluginSettingId, companyId,
193 orderByComparator);
194 }
195
196 public static com.liferay.portal.model.PluginSetting findByC_I_T(
197 long companyId, java.lang.String pluginId, java.lang.String pluginType)
198 throws com.liferay.portal.NoSuchPluginSettingException,
199 com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findByC_I_T(companyId, pluginId, pluginType);
201 }
202
203 public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
204 long companyId, java.lang.String pluginId, java.lang.String pluginType)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().fetchByC_I_T(companyId, pluginId, pluginType);
207 }
208
209 public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
210 long companyId, java.lang.String pluginId, java.lang.String pluginType,
211 boolean retrieveFromCache)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence()
214 .fetchByC_I_T(companyId, pluginId, pluginType,
215 retrieveFromCache);
216 }
217
218 public static java.util.List<com.liferay.portal.model.PluginSetting> findAll()
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findAll();
221 }
222
223 public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().findAll(start, end);
227 }
228
229 public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
230 int start, int end,
231 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence().findAll(start, end, orderByComparator);
234 }
235
236 public static void removeByCompanyId(long companyId)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 getPersistence().removeByCompanyId(companyId);
239 }
240
241 public static void removeByC_I_T(long companyId, java.lang.String pluginId,
242 java.lang.String pluginType)
243 throws com.liferay.portal.NoSuchPluginSettingException,
244 com.liferay.portal.kernel.exception.SystemException {
245 getPersistence().removeByC_I_T(companyId, pluginId, pluginType);
246 }
247
248 public static void removeAll()
249 throws com.liferay.portal.kernel.exception.SystemException {
250 getPersistence().removeAll();
251 }
252
253 public static int countByCompanyId(long companyId)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().countByCompanyId(companyId);
256 }
257
258 public static int countByC_I_T(long companyId, java.lang.String pluginId,
259 java.lang.String pluginType)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence().countByC_I_T(companyId, pluginId, pluginType);
262 }
263
264 public static int countAll()
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().countAll();
267 }
268
269 public static PluginSettingPersistence getPersistence() {
270 if (_persistence == null) {
271 _persistence = (PluginSettingPersistence)PortalBeanLocatorUtil.locate(PluginSettingPersistence.class.getName());
272 }
273
274 return _persistence;
275 }
276
277 public void setPersistence(PluginSettingPersistence persistence) {
278 _persistence = persistence;
279 }
280
281 private static PluginSettingPersistence _persistence;
282 }