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