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