1
22
23 package com.liferay.portal.service.persistence;
24
25
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 }