001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link VirtualHostLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       VirtualHostLocalService
024     * @generated
025     */
026    public class VirtualHostLocalServiceWrapper implements VirtualHostLocalService,
027            ServiceWrapper<VirtualHostLocalService> {
028            public VirtualHostLocalServiceWrapper(
029                    VirtualHostLocalService virtualHostLocalService) {
030                    _virtualHostLocalService = virtualHostLocalService;
031            }
032    
033            /**
034            * Adds the virtual host to the database. Also notifies the appropriate model listeners.
035            *
036            * @param virtualHost the virtual host
037            * @return the virtual host that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.VirtualHost addVirtualHost(
041                    com.liferay.portal.model.VirtualHost virtualHost)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _virtualHostLocalService.addVirtualHost(virtualHost);
044            }
045    
046            /**
047            * Creates a new virtual host with the primary key. Does not add the virtual host to the database.
048            *
049            * @param virtualHostId the primary key for the new virtual host
050            * @return the new virtual host
051            */
052            public com.liferay.portal.model.VirtualHost createVirtualHost(
053                    long virtualHostId) {
054                    return _virtualHostLocalService.createVirtualHost(virtualHostId);
055            }
056    
057            /**
058            * Deletes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param virtualHostId the primary key of the virtual host
061            * @throws PortalException if a virtual host with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteVirtualHost(long virtualHostId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _virtualHostLocalService.deleteVirtualHost(virtualHostId);
068            }
069    
070            /**
071            * Deletes the virtual host from the database. Also notifies the appropriate model listeners.
072            *
073            * @param virtualHost the virtual host
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteVirtualHost(
077                    com.liferay.portal.model.VirtualHost virtualHost)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _virtualHostLocalService.deleteVirtualHost(virtualHost);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _virtualHostLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _virtualHostLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _virtualHostLocalService.dynamicQuery(dynamicQuery, start, end,
137                            orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _virtualHostLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            public com.liferay.portal.model.VirtualHost fetchVirtualHost(
154                    long virtualHostId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _virtualHostLocalService.fetchVirtualHost(virtualHostId);
157            }
158    
159            /**
160            * Returns the virtual host with the primary key.
161            *
162            * @param virtualHostId the primary key of the virtual host
163            * @return the virtual host
164            * @throws PortalException if a virtual host with the primary key could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portal.model.VirtualHost getVirtualHost(
168                    long virtualHostId)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _virtualHostLocalService.getVirtualHost(virtualHostId);
172            }
173    
174            public com.liferay.portal.model.PersistedModel getPersistedModel(
175                    java.io.Serializable primaryKeyObj)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    return _virtualHostLocalService.getPersistedModel(primaryKeyObj);
179            }
180    
181            /**
182            * Returns a range of all the virtual hosts.
183            *
184            * <p>
185            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
186            * </p>
187            *
188            * @param start the lower bound of the range of virtual hosts
189            * @param end the upper bound of the range of virtual hosts (not inclusive)
190            * @return the range of virtual hosts
191            * @throws SystemException if a system exception occurred
192            */
193            public java.util.List<com.liferay.portal.model.VirtualHost> getVirtualHosts(
194                    int start, int end)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return _virtualHostLocalService.getVirtualHosts(start, end);
197            }
198    
199            /**
200            * Returns the number of virtual hosts.
201            *
202            * @return the number of virtual hosts
203            * @throws SystemException if a system exception occurred
204            */
205            public int getVirtualHostsCount()
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _virtualHostLocalService.getVirtualHostsCount();
208            }
209    
210            /**
211            * Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
212            *
213            * @param virtualHost the virtual host
214            * @return the virtual host that was updated
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.VirtualHost updateVirtualHost(
218                    com.liferay.portal.model.VirtualHost virtualHost)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return _virtualHostLocalService.updateVirtualHost(virtualHost);
221            }
222    
223            /**
224            * Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
225            *
226            * @param virtualHost the virtual host
227            * @param merge whether to merge the virtual host with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
228            * @return the virtual host that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portal.model.VirtualHost updateVirtualHost(
232                    com.liferay.portal.model.VirtualHost virtualHost, boolean merge)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _virtualHostLocalService.updateVirtualHost(virtualHost, merge);
235            }
236    
237            /**
238            * Returns the Spring bean ID for this bean.
239            *
240            * @return the Spring bean ID for this bean
241            */
242            public java.lang.String getBeanIdentifier() {
243                    return _virtualHostLocalService.getBeanIdentifier();
244            }
245    
246            /**
247            * Sets the Spring bean ID for this bean.
248            *
249            * @param beanIdentifier the Spring bean ID for this bean
250            */
251            public void setBeanIdentifier(java.lang.String beanIdentifier) {
252                    _virtualHostLocalService.setBeanIdentifier(beanIdentifier);
253            }
254    
255            public com.liferay.portal.model.VirtualHost fetchVirtualHost(
256                    long companyId, long layoutSetId)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _virtualHostLocalService.fetchVirtualHost(companyId, layoutSetId);
259            }
260    
261            public com.liferay.portal.model.VirtualHost fetchVirtualHost(
262                    java.lang.String hostname)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return _virtualHostLocalService.fetchVirtualHost(hostname);
265            }
266    
267            public com.liferay.portal.model.VirtualHost getVirtualHost(long companyId,
268                    long layoutSetId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _virtualHostLocalService.getVirtualHost(companyId, layoutSetId);
272            }
273    
274            public com.liferay.portal.model.VirtualHost getVirtualHost(
275                    java.lang.String hostname)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return _virtualHostLocalService.getVirtualHost(hostname);
279            }
280    
281            public com.liferay.portal.model.VirtualHost updateVirtualHost(
282                    long companyId, long layoutSetId, java.lang.String hostname)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return _virtualHostLocalService.updateVirtualHost(companyId,
285                            layoutSetId, hostname);
286            }
287    
288            /**
289             * @deprecated Renamed to {@link #getWrappedService}
290             */
291            public VirtualHostLocalService getWrappedVirtualHostLocalService() {
292                    return _virtualHostLocalService;
293            }
294    
295            /**
296             * @deprecated Renamed to {@link #setWrappedService}
297             */
298            public void setWrappedVirtualHostLocalService(
299                    VirtualHostLocalService virtualHostLocalService) {
300                    _virtualHostLocalService = virtualHostLocalService;
301            }
302    
303            public VirtualHostLocalService getWrappedService() {
304                    return _virtualHostLocalService;
305            }
306    
307            public void setWrappedService(
308                    VirtualHostLocalService virtualHostLocalService) {
309                    _virtualHostLocalService = virtualHostLocalService;
310            }
311    
312            private VirtualHostLocalService _virtualHostLocalService;
313    }