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.NoSuchCompanyException,
38 com.liferay.portal.SystemException {
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
51 public static com.liferay.portal.model.Company update(
52 com.liferay.portal.model.Company company)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(company);
55 }
56
57
70 public static com.liferay.portal.model.Company update(
71 com.liferay.portal.model.Company company, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(company, merge);
74 }
75
76 public static com.liferay.portal.model.Company updateImpl(
77 com.liferay.portal.model.Company company, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(company, merge);
80 }
81
82 public static com.liferay.portal.model.Company findByPrimaryKey(
83 long companyId)
84 throws com.liferay.portal.NoSuchCompanyException,
85 com.liferay.portal.SystemException {
86 return getPersistence().findByPrimaryKey(companyId);
87 }
88
89 public static com.liferay.portal.model.Company fetchByPrimaryKey(
90 long companyId) throws com.liferay.portal.SystemException {
91 return getPersistence().fetchByPrimaryKey(companyId);
92 }
93
94 public static com.liferay.portal.model.Company findByWebId(
95 java.lang.String webId)
96 throws com.liferay.portal.NoSuchCompanyException,
97 com.liferay.portal.SystemException {
98 return getPersistence().findByWebId(webId);
99 }
100
101 public static com.liferay.portal.model.Company fetchByWebId(
102 java.lang.String webId) throws com.liferay.portal.SystemException {
103 return getPersistence().fetchByWebId(webId);
104 }
105
106 public static com.liferay.portal.model.Company findByVirtualHost(
107 java.lang.String virtualHost)
108 throws com.liferay.portal.NoSuchCompanyException,
109 com.liferay.portal.SystemException {
110 return getPersistence().findByVirtualHost(virtualHost);
111 }
112
113 public static com.liferay.portal.model.Company fetchByVirtualHost(
114 java.lang.String virtualHost) throws com.liferay.portal.SystemException {
115 return getPersistence().fetchByVirtualHost(virtualHost);
116 }
117
118 public static com.liferay.portal.model.Company findByMx(java.lang.String mx)
119 throws com.liferay.portal.NoSuchCompanyException,
120 com.liferay.portal.SystemException {
121 return getPersistence().findByMx(mx);
122 }
123
124 public static com.liferay.portal.model.Company fetchByMx(
125 java.lang.String mx) throws com.liferay.portal.SystemException {
126 return getPersistence().fetchByMx(mx);
127 }
128
129 public static com.liferay.portal.model.Company findByLogoId(long logoId)
130 throws com.liferay.portal.NoSuchCompanyException,
131 com.liferay.portal.SystemException {
132 return getPersistence().findByLogoId(logoId);
133 }
134
135 public static com.liferay.portal.model.Company fetchByLogoId(long logoId)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().fetchByLogoId(logoId);
138 }
139
140 public static java.util.List<Object> findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findWithDynamicQuery(dynamicQuery);
144 }
145
146 public static java.util.List<Object> findWithDynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end) throws com.liferay.portal.SystemException {
149 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
150 }
151
152 public static java.util.List<com.liferay.portal.model.Company> findAll()
153 throws com.liferay.portal.SystemException {
154 return getPersistence().findAll();
155 }
156
157 public static java.util.List<com.liferay.portal.model.Company> findAll(
158 int start, int end) throws com.liferay.portal.SystemException {
159 return getPersistence().findAll(start, end);
160 }
161
162 public static java.util.List<com.liferay.portal.model.Company> findAll(
163 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
164 throws com.liferay.portal.SystemException {
165 return getPersistence().findAll(start, end, obc);
166 }
167
168 public static void removeByWebId(java.lang.String webId)
169 throws com.liferay.portal.NoSuchCompanyException,
170 com.liferay.portal.SystemException {
171 getPersistence().removeByWebId(webId);
172 }
173
174 public static void removeByVirtualHost(java.lang.String virtualHost)
175 throws com.liferay.portal.NoSuchCompanyException,
176 com.liferay.portal.SystemException {
177 getPersistence().removeByVirtualHost(virtualHost);
178 }
179
180 public static void removeByMx(java.lang.String mx)
181 throws com.liferay.portal.NoSuchCompanyException,
182 com.liferay.portal.SystemException {
183 getPersistence().removeByMx(mx);
184 }
185
186 public static void removeByLogoId(long logoId)
187 throws com.liferay.portal.NoSuchCompanyException,
188 com.liferay.portal.SystemException {
189 getPersistence().removeByLogoId(logoId);
190 }
191
192 public static void removeAll() throws com.liferay.portal.SystemException {
193 getPersistence().removeAll();
194 }
195
196 public static int countByWebId(java.lang.String webId)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().countByWebId(webId);
199 }
200
201 public static int countByVirtualHost(java.lang.String virtualHost)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().countByVirtualHost(virtualHost);
204 }
205
206 public static int countByMx(java.lang.String mx)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().countByMx(mx);
209 }
210
211 public static int countByLogoId(long logoId)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().countByLogoId(logoId);
214 }
215
216 public static int countAll() throws com.liferay.portal.SystemException {
217 return getPersistence().countAll();
218 }
219
220 public static CompanyPersistence getPersistence() {
221 return _persistence;
222 }
223
224 public void setPersistence(CompanyPersistence persistence) {
225 _persistence = persistence;
226 }
227
228 private static CompanyPersistence _persistence;
229 }