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.kernel.util.ReferenceRegistry;
21 import com.liferay.portal.model.Company;
22
23 import java.util.List;
24
25
38 public class CompanyUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(Company company) {
50 getPersistence().clearCache(company);
51 }
52
53
56 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73 int start, int end) throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static Company remove(Company company) throws SystemException {
81 return getPersistence().remove(company);
82 }
83
84
87 public static Company update(Company company, boolean merge)
88 throws SystemException {
89 return getPersistence().update(company, merge);
90 }
91
92 public static void cacheResult(com.liferay.portal.model.Company company) {
93 getPersistence().cacheResult(company);
94 }
95
96 public static void cacheResult(
97 java.util.List<com.liferay.portal.model.Company> companies) {
98 getPersistence().cacheResult(companies);
99 }
100
101 public static com.liferay.portal.model.Company create(long companyId) {
102 return getPersistence().create(companyId);
103 }
104
105 public static com.liferay.portal.model.Company remove(long companyId)
106 throws com.liferay.portal.NoSuchCompanyException,
107 com.liferay.portal.SystemException {
108 return getPersistence().remove(companyId);
109 }
110
111
114 public static com.liferay.portal.model.Company update(
115 com.liferay.portal.model.Company company)
116 throws com.liferay.portal.SystemException {
117 return getPersistence().update(company);
118 }
119
120 public static com.liferay.portal.model.Company updateImpl(
121 com.liferay.portal.model.Company company, boolean merge)
122 throws com.liferay.portal.SystemException {
123 return getPersistence().updateImpl(company, merge);
124 }
125
126 public static com.liferay.portal.model.Company findByPrimaryKey(
127 long companyId)
128 throws com.liferay.portal.NoSuchCompanyException,
129 com.liferay.portal.SystemException {
130 return getPersistence().findByPrimaryKey(companyId);
131 }
132
133 public static com.liferay.portal.model.Company fetchByPrimaryKey(
134 long companyId) throws com.liferay.portal.SystemException {
135 return getPersistence().fetchByPrimaryKey(companyId);
136 }
137
138 public static com.liferay.portal.model.Company findByWebId(
139 java.lang.String webId)
140 throws com.liferay.portal.NoSuchCompanyException,
141 com.liferay.portal.SystemException {
142 return getPersistence().findByWebId(webId);
143 }
144
145 public static com.liferay.portal.model.Company fetchByWebId(
146 java.lang.String webId) throws com.liferay.portal.SystemException {
147 return getPersistence().fetchByWebId(webId);
148 }
149
150 public static com.liferay.portal.model.Company fetchByWebId(
151 java.lang.String webId, boolean retrieveFromCache)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().fetchByWebId(webId, retrieveFromCache);
154 }
155
156 public static com.liferay.portal.model.Company findByVirtualHost(
157 java.lang.String virtualHost)
158 throws com.liferay.portal.NoSuchCompanyException,
159 com.liferay.portal.SystemException {
160 return getPersistence().findByVirtualHost(virtualHost);
161 }
162
163 public static com.liferay.portal.model.Company fetchByVirtualHost(
164 java.lang.String virtualHost) throws com.liferay.portal.SystemException {
165 return getPersistence().fetchByVirtualHost(virtualHost);
166 }
167
168 public static com.liferay.portal.model.Company fetchByVirtualHost(
169 java.lang.String virtualHost, boolean retrieveFromCache)
170 throws com.liferay.portal.SystemException {
171 return getPersistence()
172 .fetchByVirtualHost(virtualHost, retrieveFromCache);
173 }
174
175 public static com.liferay.portal.model.Company findByMx(java.lang.String mx)
176 throws com.liferay.portal.NoSuchCompanyException,
177 com.liferay.portal.SystemException {
178 return getPersistence().findByMx(mx);
179 }
180
181 public static com.liferay.portal.model.Company fetchByMx(
182 java.lang.String mx) throws com.liferay.portal.SystemException {
183 return getPersistence().fetchByMx(mx);
184 }
185
186 public static com.liferay.portal.model.Company fetchByMx(
187 java.lang.String mx, boolean retrieveFromCache)
188 throws com.liferay.portal.SystemException {
189 return getPersistence().fetchByMx(mx, retrieveFromCache);
190 }
191
192 public static com.liferay.portal.model.Company findByLogoId(long logoId)
193 throws com.liferay.portal.NoSuchCompanyException,
194 com.liferay.portal.SystemException {
195 return getPersistence().findByLogoId(logoId);
196 }
197
198 public static com.liferay.portal.model.Company fetchByLogoId(long logoId)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().fetchByLogoId(logoId);
201 }
202
203 public static com.liferay.portal.model.Company fetchByLogoId(long logoId,
204 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
205 return getPersistence().fetchByLogoId(logoId, retrieveFromCache);
206 }
207
208 public static java.util.List<com.liferay.portal.model.Company> findBySystem(
209 boolean system) throws com.liferay.portal.SystemException {
210 return getPersistence().findBySystem(system);
211 }
212
213 public static java.util.List<com.liferay.portal.model.Company> findBySystem(
214 boolean system, int start, int end)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findBySystem(system, start, end);
217 }
218
219 public static java.util.List<com.liferay.portal.model.Company> findBySystem(
220 boolean system, int start, int end,
221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222 throws com.liferay.portal.SystemException {
223 return getPersistence()
224 .findBySystem(system, start, end, orderByComparator);
225 }
226
227 public static com.liferay.portal.model.Company findBySystem_First(
228 boolean system,
229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230 throws com.liferay.portal.NoSuchCompanyException,
231 com.liferay.portal.SystemException {
232 return getPersistence().findBySystem_First(system, orderByComparator);
233 }
234
235 public static com.liferay.portal.model.Company findBySystem_Last(
236 boolean system,
237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238 throws com.liferay.portal.NoSuchCompanyException,
239 com.liferay.portal.SystemException {
240 return getPersistence().findBySystem_Last(system, orderByComparator);
241 }
242
243 public static com.liferay.portal.model.Company[] findBySystem_PrevAndNext(
244 long companyId, boolean system,
245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246 throws com.liferay.portal.NoSuchCompanyException,
247 com.liferay.portal.SystemException {
248 return getPersistence()
249 .findBySystem_PrevAndNext(companyId, system,
250 orderByComparator);
251 }
252
253 public static java.util.List<com.liferay.portal.model.Company> findAll()
254 throws com.liferay.portal.SystemException {
255 return getPersistence().findAll();
256 }
257
258 public static java.util.List<com.liferay.portal.model.Company> findAll(
259 int start, int end) throws com.liferay.portal.SystemException {
260 return getPersistence().findAll(start, end);
261 }
262
263 public static java.util.List<com.liferay.portal.model.Company> findAll(
264 int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266 throws com.liferay.portal.SystemException {
267 return getPersistence().findAll(start, end, orderByComparator);
268 }
269
270 public static void removeByWebId(java.lang.String webId)
271 throws com.liferay.portal.NoSuchCompanyException,
272 com.liferay.portal.SystemException {
273 getPersistence().removeByWebId(webId);
274 }
275
276 public static void removeByVirtualHost(java.lang.String virtualHost)
277 throws com.liferay.portal.NoSuchCompanyException,
278 com.liferay.portal.SystemException {
279 getPersistence().removeByVirtualHost(virtualHost);
280 }
281
282 public static void removeByMx(java.lang.String mx)
283 throws com.liferay.portal.NoSuchCompanyException,
284 com.liferay.portal.SystemException {
285 getPersistence().removeByMx(mx);
286 }
287
288 public static void removeByLogoId(long logoId)
289 throws com.liferay.portal.NoSuchCompanyException,
290 com.liferay.portal.SystemException {
291 getPersistence().removeByLogoId(logoId);
292 }
293
294 public static void removeBySystem(boolean system)
295 throws com.liferay.portal.SystemException {
296 getPersistence().removeBySystem(system);
297 }
298
299 public static void removeAll() throws com.liferay.portal.SystemException {
300 getPersistence().removeAll();
301 }
302
303 public static int countByWebId(java.lang.String webId)
304 throws com.liferay.portal.SystemException {
305 return getPersistence().countByWebId(webId);
306 }
307
308 public static int countByVirtualHost(java.lang.String virtualHost)
309 throws com.liferay.portal.SystemException {
310 return getPersistence().countByVirtualHost(virtualHost);
311 }
312
313 public static int countByMx(java.lang.String mx)
314 throws com.liferay.portal.SystemException {
315 return getPersistence().countByMx(mx);
316 }
317
318 public static int countByLogoId(long logoId)
319 throws com.liferay.portal.SystemException {
320 return getPersistence().countByLogoId(logoId);
321 }
322
323 public static int countBySystem(boolean system)
324 throws com.liferay.portal.SystemException {
325 return getPersistence().countBySystem(system);
326 }
327
328 public static int countAll() throws com.liferay.portal.SystemException {
329 return getPersistence().countAll();
330 }
331
332 public static CompanyPersistence getPersistence() {
333 if (_persistence == null) {
334 _persistence = (CompanyPersistence)PortalBeanLocatorUtil.locate(CompanyPersistence.class.getName());
335
336 ReferenceRegistry.registerReference(CompanyUtil.class,
337 "_persistence");
338 }
339
340 return _persistence;
341 }
342
343 public void setPersistence(CompanyPersistence persistence) {
344 _persistence = persistence;
345
346 ReferenceRegistry.registerReference(CompanyUtil.class, "_persistence");
347 }
348
349 private static CompanyPersistence _persistence;
350 }