1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.model.PluginSetting;
21
22 import java.util.List;
23
24
37 public class PluginSettingUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
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
64 public static PluginSetting remove(PluginSetting pluginSetting)
65 throws SystemException {
66 return getPersistence().remove(pluginSetting);
67 }
68
69
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.SystemException {
96 return getPersistence().remove(pluginSettingId);
97 }
98
99
102 public static com.liferay.portal.model.PluginSetting update(
103 com.liferay.portal.model.PluginSetting pluginSetting)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().update(pluginSetting);
106 }
107
108 public static com.liferay.portal.model.PluginSetting updateImpl(
109 com.liferay.portal.model.PluginSetting pluginSetting, boolean merge)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().updateImpl(pluginSetting, merge);
112 }
113
114 public static com.liferay.portal.model.PluginSetting findByPrimaryKey(
115 long pluginSettingId)
116 throws com.liferay.portal.NoSuchPluginSettingException,
117 com.liferay.portal.SystemException {
118 return getPersistence().findByPrimaryKey(pluginSettingId);
119 }
120
121 public static com.liferay.portal.model.PluginSetting fetchByPrimaryKey(
122 long pluginSettingId) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByPrimaryKey(pluginSettingId);
124 }
125
126 public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
127 long companyId) throws com.liferay.portal.SystemException {
128 return getPersistence().findByCompanyId(companyId);
129 }
130
131 public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
132 long companyId, int start, int end)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findByCompanyId(companyId, start, end);
135 }
136
137 public static java.util.List<com.liferay.portal.model.PluginSetting> findByCompanyId(
138 long companyId, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.SystemException {
141 return getPersistence()
142 .findByCompanyId(companyId, start, end, orderByComparator);
143 }
144
145 public static com.liferay.portal.model.PluginSetting findByCompanyId_First(
146 long companyId,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.NoSuchPluginSettingException,
149 com.liferay.portal.SystemException {
150 return getPersistence()
151 .findByCompanyId_First(companyId, orderByComparator);
152 }
153
154 public static com.liferay.portal.model.PluginSetting findByCompanyId_Last(
155 long companyId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.NoSuchPluginSettingException,
158 com.liferay.portal.SystemException {
159 return getPersistence()
160 .findByCompanyId_Last(companyId, orderByComparator);
161 }
162
163 public static com.liferay.portal.model.PluginSetting[] findByCompanyId_PrevAndNext(
164 long pluginSettingId, long companyId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.NoSuchPluginSettingException,
167 com.liferay.portal.SystemException {
168 return getPersistence()
169 .findByCompanyId_PrevAndNext(pluginSettingId, companyId,
170 orderByComparator);
171 }
172
173 public static com.liferay.portal.model.PluginSetting findByC_I_T(
174 long companyId, java.lang.String pluginId, java.lang.String pluginType)
175 throws com.liferay.portal.NoSuchPluginSettingException,
176 com.liferay.portal.SystemException {
177 return getPersistence().findByC_I_T(companyId, pluginId, pluginType);
178 }
179
180 public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
181 long companyId, java.lang.String pluginId, java.lang.String pluginType)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().fetchByC_I_T(companyId, pluginId, pluginType);
184 }
185
186 public static com.liferay.portal.model.PluginSetting fetchByC_I_T(
187 long companyId, java.lang.String pluginId, java.lang.String pluginType,
188 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
189 return getPersistence()
190 .fetchByC_I_T(companyId, pluginId, pluginType,
191 retrieveFromCache);
192 }
193
194 public static java.util.List<com.liferay.portal.model.PluginSetting> findAll()
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findAll();
197 }
198
199 public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
200 int start, int end) throws com.liferay.portal.SystemException {
201 return getPersistence().findAll(start, end);
202 }
203
204 public static java.util.List<com.liferay.portal.model.PluginSetting> findAll(
205 int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().findAll(start, end, orderByComparator);
209 }
210
211 public static void removeByCompanyId(long companyId)
212 throws com.liferay.portal.SystemException {
213 getPersistence().removeByCompanyId(companyId);
214 }
215
216 public static void removeByC_I_T(long companyId, java.lang.String pluginId,
217 java.lang.String pluginType)
218 throws com.liferay.portal.NoSuchPluginSettingException,
219 com.liferay.portal.SystemException {
220 getPersistence().removeByC_I_T(companyId, pluginId, pluginType);
221 }
222
223 public static void removeAll() throws com.liferay.portal.SystemException {
224 getPersistence().removeAll();
225 }
226
227 public static int countByCompanyId(long companyId)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().countByCompanyId(companyId);
230 }
231
232 public static int countByC_I_T(long companyId, java.lang.String pluginId,
233 java.lang.String pluginType) throws com.liferay.portal.SystemException {
234 return getPersistence().countByC_I_T(companyId, pluginId, pluginType);
235 }
236
237 public static int countAll() throws com.liferay.portal.SystemException {
238 return getPersistence().countAll();
239 }
240
241 public static PluginSettingPersistence getPersistence() {
242 if (_persistence == null) {
243 _persistence = (PluginSettingPersistence)PortalBeanLocatorUtil.locate(PluginSettingPersistence.class.getName());
244 }
245
246 return _persistence;
247 }
248
249 public void setPersistence(PluginSettingPersistence persistence) {
250 _persistence = persistence;
251 }
252
253 private static PluginSettingPersistence _persistence;
254 }