001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="CompanyUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class CompanyUtil {
030: public static com.liferay.portal.model.Company create(long companyId) {
031: return getPersistence().create(companyId);
032: }
033:
034: public static com.liferay.portal.model.Company remove(long companyId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchCompanyException {
037: return getPersistence().remove(companyId);
038: }
039:
040: public static com.liferay.portal.model.Company remove(
041: com.liferay.portal.model.Company company)
042: throws com.liferay.portal.SystemException {
043: return getPersistence().remove(company);
044: }
045:
046: public static com.liferay.portal.model.Company update(
047: com.liferay.portal.model.Company company)
048: throws com.liferay.portal.SystemException {
049: return getPersistence().update(company);
050: }
051:
052: public static com.liferay.portal.model.Company update(
053: com.liferay.portal.model.Company company, boolean merge)
054: throws com.liferay.portal.SystemException {
055: return getPersistence().update(company, merge);
056: }
057:
058: public static com.liferay.portal.model.Company updateImpl(
059: com.liferay.portal.model.Company company, boolean merge)
060: throws com.liferay.portal.SystemException {
061: return getPersistence().updateImpl(company, merge);
062: }
063:
064: public static com.liferay.portal.model.Company findByPrimaryKey(
065: long companyId) throws com.liferay.portal.SystemException,
066: com.liferay.portal.NoSuchCompanyException {
067: return getPersistence().findByPrimaryKey(companyId);
068: }
069:
070: public static com.liferay.portal.model.Company fetchByPrimaryKey(
071: long companyId) throws com.liferay.portal.SystemException {
072: return getPersistence().fetchByPrimaryKey(companyId);
073: }
074:
075: public static com.liferay.portal.model.Company findByWebId(
076: java.lang.String webId)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchCompanyException {
079: return getPersistence().findByWebId(webId);
080: }
081:
082: public static com.liferay.portal.model.Company fetchByWebId(
083: java.lang.String webId)
084: throws com.liferay.portal.SystemException {
085: return getPersistence().fetchByWebId(webId);
086: }
087:
088: public static com.liferay.portal.model.Company findByVirtualHost(
089: java.lang.String virtualHost)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portal.NoSuchCompanyException {
092: return getPersistence().findByVirtualHost(virtualHost);
093: }
094:
095: public static com.liferay.portal.model.Company fetchByVirtualHost(
096: java.lang.String virtualHost)
097: throws com.liferay.portal.SystemException {
098: return getPersistence().fetchByVirtualHost(virtualHost);
099: }
100:
101: public static com.liferay.portal.model.Company findByMx(
102: 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)
110: throws com.liferay.portal.SystemException {
111: return getPersistence().fetchByMx(mx);
112: }
113:
114: public static com.liferay.portal.model.Company findByLogoId(
115: long logoId) throws com.liferay.portal.SystemException,
116: com.liferay.portal.NoSuchCompanyException {
117: return getPersistence().findByLogoId(logoId);
118: }
119:
120: public static com.liferay.portal.model.Company fetchByLogoId(
121: long logoId) throws com.liferay.portal.SystemException {
122: return getPersistence().fetchByLogoId(logoId);
123: }
124:
125: public static java.util.List findWithDynamicQuery(
126: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().findWithDynamicQuery(queryInitializer);
129: }
130:
131: public static java.util.List findWithDynamicQuery(
132: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
133: int begin, int end)
134: throws com.liferay.portal.SystemException {
135: return getPersistence().findWithDynamicQuery(queryInitializer,
136: begin, end);
137: }
138:
139: public static java.util.List findAll()
140: throws com.liferay.portal.SystemException {
141: return getPersistence().findAll();
142: }
143:
144: public static java.util.List findAll(int begin, int end)
145: throws com.liferay.portal.SystemException {
146: return getPersistence().findAll(begin, end);
147: }
148:
149: public static java.util.List findAll(int begin, int end,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException {
152: return getPersistence().findAll(begin, end, obc);
153: }
154:
155: public static void removeByWebId(java.lang.String webId)
156: throws com.liferay.portal.SystemException,
157: com.liferay.portal.NoSuchCompanyException {
158: getPersistence().removeByWebId(webId);
159: }
160:
161: public static void removeByVirtualHost(java.lang.String virtualHost)
162: throws com.liferay.portal.SystemException,
163: com.liferay.portal.NoSuchCompanyException {
164: getPersistence().removeByVirtualHost(virtualHost);
165: }
166:
167: public static void removeByMx(java.lang.String mx)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portal.NoSuchCompanyException {
170: getPersistence().removeByMx(mx);
171: }
172:
173: public static void removeByLogoId(long logoId)
174: throws com.liferay.portal.SystemException,
175: com.liferay.portal.NoSuchCompanyException {
176: getPersistence().removeByLogoId(logoId);
177: }
178:
179: public static void removeAll()
180: throws com.liferay.portal.SystemException {
181: getPersistence().removeAll();
182: }
183:
184: public static int countByWebId(java.lang.String webId)
185: throws com.liferay.portal.SystemException {
186: return getPersistence().countByWebId(webId);
187: }
188:
189: public static int countByVirtualHost(java.lang.String virtualHost)
190: throws com.liferay.portal.SystemException {
191: return getPersistence().countByVirtualHost(virtualHost);
192: }
193:
194: public static int countByMx(java.lang.String mx)
195: throws com.liferay.portal.SystemException {
196: return getPersistence().countByMx(mx);
197: }
198:
199: public static int countByLogoId(long logoId)
200: throws com.liferay.portal.SystemException {
201: return getPersistence().countByLogoId(logoId);
202: }
203:
204: public static int countAll()
205: throws com.liferay.portal.SystemException {
206: return getPersistence().countAll();
207: }
208:
209: public static CompanyPersistence getPersistence() {
210: return _getUtil()._persistence;
211: }
212:
213: public void setPersistence(CompanyPersistence persistence) {
214: _persistence = persistence;
215: }
216:
217: private static CompanyUtil _getUtil() {
218: if (_util == null) {
219: _util = (CompanyUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
220: .locate(_UTIL);
221: }
222:
223: return _util;
224: }
225:
226: private static final String _UTIL = CompanyUtil.class.getName();
227: private static CompanyUtil _util;
228: private CompanyPersistence _persistence;
229: }
|