1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="CompanyUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class CompanyUtil {
32      public static com.liferay.portal.model.Company create(long companyId) {
33          return getPersistence().create(companyId);
34      }
35  
36      public static com.liferay.portal.model.Company remove(long companyId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portal.NoSuchCompanyException {
39          return getPersistence().remove(companyId);
40      }
41  
42      public static com.liferay.portal.model.Company remove(
43          com.liferay.portal.model.Company company)
44          throws com.liferay.portal.SystemException {
45          return getPersistence().remove(company);
46      }
47  
48      public static com.liferay.portal.model.Company update(
49          com.liferay.portal.model.Company company)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(company);
52      }
53  
54      public static com.liferay.portal.model.Company update(
55          com.liferay.portal.model.Company company, boolean merge)
56          throws com.liferay.portal.SystemException {
57          return getPersistence().update(company, merge);
58      }
59  
60      public static com.liferay.portal.model.Company updateImpl(
61          com.liferay.portal.model.Company company, boolean merge)
62          throws com.liferay.portal.SystemException {
63          return getPersistence().updateImpl(company, merge);
64      }
65  
66      public static com.liferay.portal.model.Company findByPrimaryKey(
67          long companyId)
68          throws com.liferay.portal.SystemException, 
69              com.liferay.portal.NoSuchCompanyException {
70          return getPersistence().findByPrimaryKey(companyId);
71      }
72  
73      public static com.liferay.portal.model.Company fetchByPrimaryKey(
74          long companyId) throws com.liferay.portal.SystemException {
75          return getPersistence().fetchByPrimaryKey(companyId);
76      }
77  
78      public static com.liferay.portal.model.Company findByWebId(
79          java.lang.String webId)
80          throws com.liferay.portal.SystemException, 
81              com.liferay.portal.NoSuchCompanyException {
82          return getPersistence().findByWebId(webId);
83      }
84  
85      public static com.liferay.portal.model.Company fetchByWebId(
86          java.lang.String webId) throws com.liferay.portal.SystemException {
87          return getPersistence().fetchByWebId(webId);
88      }
89  
90      public static com.liferay.portal.model.Company findByVirtualHost(
91          java.lang.String virtualHost)
92          throws com.liferay.portal.SystemException, 
93              com.liferay.portal.NoSuchCompanyException {
94          return getPersistence().findByVirtualHost(virtualHost);
95      }
96  
97      public static com.liferay.portal.model.Company fetchByVirtualHost(
98          java.lang.String virtualHost) throws com.liferay.portal.SystemException {
99          return getPersistence().fetchByVirtualHost(virtualHost);
100     }
101 
102     public static com.liferay.portal.model.Company findByMx(java.lang.String mx)
103         throws com.liferay.portal.SystemException, 
104             com.liferay.portal.NoSuchCompanyException {
105         return getPersistence().findByMx(mx);
106     }
107 
108     public static com.liferay.portal.model.Company fetchByMx(
109         java.lang.String mx) throws com.liferay.portal.SystemException {
110         return getPersistence().fetchByMx(mx);
111     }
112 
113     public static com.liferay.portal.model.Company findByLogoId(long logoId)
114         throws com.liferay.portal.SystemException, 
115             com.liferay.portal.NoSuchCompanyException {
116         return getPersistence().findByLogoId(logoId);
117     }
118 
119     public static com.liferay.portal.model.Company fetchByLogoId(long logoId)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().fetchByLogoId(logoId);
122     }
123 
124     public static java.util.List findWithDynamicQuery(
125         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
126         throws com.liferay.portal.SystemException {
127         return getPersistence().findWithDynamicQuery(queryInitializer);
128     }
129 
130     public static java.util.List findWithDynamicQuery(
131         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
132         int begin, int end) throws com.liferay.portal.SystemException {
133         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
134             end);
135     }
136 
137     public static java.util.List findAll()
138         throws com.liferay.portal.SystemException {
139         return getPersistence().findAll();
140     }
141 
142     public static java.util.List findAll(int begin, int end)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findAll(begin, end);
145     }
146 
147     public static java.util.List findAll(int begin, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findAll(begin, end, obc);
151     }
152 
153     public static void removeByWebId(java.lang.String webId)
154         throws com.liferay.portal.SystemException, 
155             com.liferay.portal.NoSuchCompanyException {
156         getPersistence().removeByWebId(webId);
157     }
158 
159     public static void removeByVirtualHost(java.lang.String virtualHost)
160         throws com.liferay.portal.SystemException, 
161             com.liferay.portal.NoSuchCompanyException {
162         getPersistence().removeByVirtualHost(virtualHost);
163     }
164 
165     public static void removeByMx(java.lang.String mx)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portal.NoSuchCompanyException {
168         getPersistence().removeByMx(mx);
169     }
170 
171     public static void removeByLogoId(long logoId)
172         throws com.liferay.portal.SystemException, 
173             com.liferay.portal.NoSuchCompanyException {
174         getPersistence().removeByLogoId(logoId);
175     }
176 
177     public static void removeAll() throws com.liferay.portal.SystemException {
178         getPersistence().removeAll();
179     }
180 
181     public static int countByWebId(java.lang.String webId)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().countByWebId(webId);
184     }
185 
186     public static int countByVirtualHost(java.lang.String virtualHost)
187         throws com.liferay.portal.SystemException {
188         return getPersistence().countByVirtualHost(virtualHost);
189     }
190 
191     public static int countByMx(java.lang.String mx)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().countByMx(mx);
194     }
195 
196     public static int countByLogoId(long logoId)
197         throws com.liferay.portal.SystemException {
198         return getPersistence().countByLogoId(logoId);
199     }
200 
201     public static int countAll() throws com.liferay.portal.SystemException {
202         return getPersistence().countAll();
203     }
204 
205     public static CompanyPersistence getPersistence() {
206         return _getUtil()._persistence;
207     }
208 
209     public void setPersistence(CompanyPersistence persistence) {
210         _persistence = persistence;
211     }
212 
213     private static CompanyUtil _getUtil() {
214         if (_util == null) {
215             _util = (CompanyUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
216         }
217 
218         return _util;
219     }
220 
221     private static final String _UTIL = CompanyUtil.class.getName();
222     private static CompanyUtil _util;
223     private CompanyPersistence _persistence;
224 }