001    /**
002     * Copyright (c) 2000-present 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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link VirtualHostLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see VirtualHostLocalService
024     * @generated
025     */
026    @ProviderType
027    public class VirtualHostLocalServiceWrapper implements VirtualHostLocalService,
028            ServiceWrapper<VirtualHostLocalService> {
029            public VirtualHostLocalServiceWrapper(
030                    VirtualHostLocalService virtualHostLocalService) {
031                    _virtualHostLocalService = virtualHostLocalService;
032            }
033    
034            /**
035            * Adds the virtual host to the database. Also notifies the appropriate model listeners.
036            *
037            * @param virtualHost the virtual host
038            * @return the virtual host that was added
039            */
040            @Override
041            public com.liferay.portal.model.VirtualHost addVirtualHost(
042                    com.liferay.portal.model.VirtualHost virtualHost) {
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            @Override
053            public com.liferay.portal.model.VirtualHost createVirtualHost(
054                    long virtualHostId) {
055                    return _virtualHostLocalService.createVirtualHost(virtualHostId);
056            }
057    
058            /**
059            * @throws PortalException
060            */
061            @Override
062            public com.liferay.portal.model.PersistedModel deletePersistedModel(
063                    com.liferay.portal.model.PersistedModel persistedModel)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return _virtualHostLocalService.deletePersistedModel(persistedModel);
066            }
067    
068            /**
069            * Deletes the virtual host from the database. Also notifies the appropriate model listeners.
070            *
071            * @param virtualHost the virtual host
072            * @return the virtual host that was removed
073            */
074            @Override
075            public com.liferay.portal.model.VirtualHost deleteVirtualHost(
076                    com.liferay.portal.model.VirtualHost virtualHost) {
077                    return _virtualHostLocalService.deleteVirtualHost(virtualHost);
078            }
079    
080            /**
081            * Deletes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.
082            *
083            * @param virtualHostId the primary key of the virtual host
084            * @return the virtual host that was removed
085            * @throws PortalException if a virtual host with the primary key could not be found
086            */
087            @Override
088            public com.liferay.portal.model.VirtualHost deleteVirtualHost(
089                    long virtualHostId)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    return _virtualHostLocalService.deleteVirtualHost(virtualHostId);
092            }
093    
094            @Override
095            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
096                    return _virtualHostLocalService.dynamicQuery();
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns the matching rows.
101            *
102            * @param dynamicQuery the dynamic query
103            * @return the matching rows
104            */
105            @Override
106            public <T> java.util.List<T> dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
108                    return _virtualHostLocalService.dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.VirtualHostModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            */
123            @Override
124            public <T> java.util.List<T> dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) {
127                    return _virtualHostLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.VirtualHostModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            */
143            @Override
144            public <T> java.util.List<T> dynamicQuery(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146                    int end,
147                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
148                    return _virtualHostLocalService.dynamicQuery(dynamicQuery, start, end,
149                            orderByComparator);
150            }
151    
152            /**
153            * Returns the number of rows matching the dynamic query.
154            *
155            * @param dynamicQuery the dynamic query
156            * @return the number of rows matching the dynamic query
157            */
158            @Override
159            public long dynamicQueryCount(
160                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
161                    return _virtualHostLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            /**
165            * Returns the number of rows matching the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @param projection the projection to apply to the query
169            * @return the number of rows matching the dynamic query
170            */
171            @Override
172            public long dynamicQueryCount(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
174                    com.liferay.portal.kernel.dao.orm.Projection projection) {
175                    return _virtualHostLocalService.dynamicQueryCount(dynamicQuery,
176                            projection);
177            }
178    
179            @Override
180            public com.liferay.portal.model.VirtualHost fetchVirtualHost(
181                    long companyId, long layoutSetId) {
182                    return _virtualHostLocalService.fetchVirtualHost(companyId, layoutSetId);
183            }
184    
185            @Override
186            public com.liferay.portal.model.VirtualHost fetchVirtualHost(
187                    java.lang.String hostname) {
188                    return _virtualHostLocalService.fetchVirtualHost(hostname);
189            }
190    
191            @Override
192            public com.liferay.portal.model.VirtualHost fetchVirtualHost(
193                    long virtualHostId) {
194                    return _virtualHostLocalService.fetchVirtualHost(virtualHostId);
195            }
196    
197            @Override
198            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
199                    return _virtualHostLocalService.getActionableDynamicQuery();
200            }
201    
202            @Override
203            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
204                    return _virtualHostLocalService.getIndexableActionableDynamicQuery();
205            }
206    
207            /**
208            * Returns the OSGi service identifier.
209            *
210            * @return the OSGi service identifier
211            */
212            @Override
213            public java.lang.String getOSGiServiceIdentifier() {
214                    return _virtualHostLocalService.getOSGiServiceIdentifier();
215            }
216    
217            @Override
218            public com.liferay.portal.model.PersistedModel getPersistedModel(
219                    java.io.Serializable primaryKeyObj)
220                    throws com.liferay.portal.kernel.exception.PortalException {
221                    return _virtualHostLocalService.getPersistedModel(primaryKeyObj);
222            }
223    
224            @Override
225            public com.liferay.portal.model.VirtualHost getVirtualHost(long companyId,
226                    long layoutSetId)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _virtualHostLocalService.getVirtualHost(companyId, layoutSetId);
229            }
230    
231            @Override
232            public com.liferay.portal.model.VirtualHost getVirtualHost(
233                    java.lang.String hostname)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    return _virtualHostLocalService.getVirtualHost(hostname);
236            }
237    
238            /**
239            * Returns the virtual host with the primary key.
240            *
241            * @param virtualHostId the primary key of the virtual host
242            * @return the virtual host
243            * @throws PortalException if a virtual host with the primary key could not be found
244            */
245            @Override
246            public com.liferay.portal.model.VirtualHost getVirtualHost(
247                    long virtualHostId)
248                    throws com.liferay.portal.kernel.exception.PortalException {
249                    return _virtualHostLocalService.getVirtualHost(virtualHostId);
250            }
251    
252            /**
253            * Returns a range of all the virtual hosts.
254            *
255            * <p>
256            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.VirtualHostModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
257            * </p>
258            *
259            * @param start the lower bound of the range of virtual hosts
260            * @param end the upper bound of the range of virtual hosts (not inclusive)
261            * @return the range of virtual hosts
262            */
263            @Override
264            public java.util.List<com.liferay.portal.model.VirtualHost> getVirtualHosts(
265                    int start, int end) {
266                    return _virtualHostLocalService.getVirtualHosts(start, end);
267            }
268    
269            /**
270            * Returns the number of virtual hosts.
271            *
272            * @return the number of virtual hosts
273            */
274            @Override
275            public int getVirtualHostsCount() {
276                    return _virtualHostLocalService.getVirtualHostsCount();
277            }
278    
279            @Override
280            public com.liferay.portal.model.VirtualHost updateVirtualHost(
281                    long companyId, long layoutSetId, java.lang.String hostname) {
282                    return _virtualHostLocalService.updateVirtualHost(companyId,
283                            layoutSetId, hostname);
284            }
285    
286            /**
287            * Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
288            *
289            * @param virtualHost the virtual host
290            * @return the virtual host that was updated
291            */
292            @Override
293            public com.liferay.portal.model.VirtualHost updateVirtualHost(
294                    com.liferay.portal.model.VirtualHost virtualHost) {
295                    return _virtualHostLocalService.updateVirtualHost(virtualHost);
296            }
297    
298            @Override
299            public VirtualHostLocalService getWrappedService() {
300                    return _virtualHostLocalService;
301            }
302    
303            @Override
304            public void setWrappedService(
305                    VirtualHostLocalService virtualHostLocalService) {
306                    _virtualHostLocalService = virtualHostLocalService;
307            }
308    
309            private VirtualHostLocalService _virtualHostLocalService;
310    }