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 orderByComparator)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence()
205 .findBySystem(system, start, end, orderByComparator);
206 }
207
208 public static com.liferay.portal.model.Company findBySystem_First(
209 boolean system,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.NoSuchCompanyException,
212 com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findBySystem_First(system, orderByComparator);
214 }
215
216 public static com.liferay.portal.model.Company findBySystem_Last(
217 boolean system,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.NoSuchCompanyException,
220 com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().findBySystem_Last(system, orderByComparator);
222 }
223
224 public static com.liferay.portal.model.Company[] findBySystem_PrevAndNext(
225 long companyId, boolean system,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.NoSuchCompanyException,
228 com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence()
230 .findBySystem_PrevAndNext(companyId, system,
231 orderByComparator);
232 }
233
234 public static java.util.List<com.liferay.portal.model.Company> findAll()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence().findAll();
237 }
238
239 public static java.util.List<com.liferay.portal.model.Company> findAll(
240 int start, int end)
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence().findAll(start, end);
243 }
244
245 public static java.util.List<com.liferay.portal.model.Company> findAll(
246 int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findAll(start, end, orderByComparator);
250 }
251
252 public static void removeByWebId(java.lang.String webId)
253 throws com.liferay.portal.NoSuchCompanyException,
254 com.liferay.portal.kernel.exception.SystemException {
255 getPersistence().removeByWebId(webId);
256 }
257
258 public static void removeByVirtualHost(java.lang.String virtualHost)
259 throws com.liferay.portal.NoSuchCompanyException,
260 com.liferay.portal.kernel.exception.SystemException {
261 getPersistence().removeByVirtualHost(virtualHost);
262 }
263
264 public static void removeByMx(java.lang.String mx)
265 throws com.liferay.portal.NoSuchCompanyException,
266 com.liferay.portal.kernel.exception.SystemException {
267 getPersistence().removeByMx(mx);
268 }
269
270 public static void removeByLogoId(long logoId)
271 throws com.liferay.portal.NoSuchCompanyException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getPersistence().removeByLogoId(logoId);
274 }
275
276 public static void removeBySystem(boolean system)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 getPersistence().removeBySystem(system);
279 }
280
281 public static void removeAll()
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getPersistence().removeAll();
284 }
285
286 public static int countByWebId(java.lang.String webId)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getPersistence().countByWebId(webId);
289 }
290
291 public static int countByVirtualHost(java.lang.String virtualHost)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence().countByVirtualHost(virtualHost);
294 }
295
296 public static int countByMx(java.lang.String mx)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence().countByMx(mx);
299 }
300
301 public static int countByLogoId(long logoId)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return getPersistence().countByLogoId(logoId);
304 }
305
306 public static int countBySystem(boolean system)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getPersistence().countBySystem(system);
309 }
310
311 public static int countAll()
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getPersistence().countAll();
314 }
315
316 public static CompanyPersistence getPersistence() {
317 if (_persistence == null) {
318 _persistence = (CompanyPersistence)PortalBeanLocatorUtil.locate(CompanyPersistence.class.getName());
319 }
320
321 return _persistence;
322 }
323
324 public void setPersistence(CompanyPersistence persistence) {
325 _persistence = persistence;
326 }
327
328 private static CompanyPersistence _persistence;
329 }