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