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 /** 203 * Returns the Spring bean ID for this bean. 204 * 205 * @return the Spring bean ID for this bean 206 */ 207 @Override 208 public java.lang.String getBeanIdentifier() { 209 return _virtualHostLocalService.getBeanIdentifier(); 210 } 211 212 @Override 213 public com.liferay.portal.model.PersistedModel getPersistedModel( 214 java.io.Serializable primaryKeyObj) 215 throws com.liferay.portal.kernel.exception.PortalException { 216 return _virtualHostLocalService.getPersistedModel(primaryKeyObj); 217 } 218 219 @Override 220 public com.liferay.portal.model.VirtualHost getVirtualHost(long companyId, 221 long layoutSetId) 222 throws com.liferay.portal.kernel.exception.PortalException { 223 return _virtualHostLocalService.getVirtualHost(companyId, layoutSetId); 224 } 225 226 @Override 227 public com.liferay.portal.model.VirtualHost getVirtualHost( 228 java.lang.String hostname) 229 throws com.liferay.portal.kernel.exception.PortalException { 230 return _virtualHostLocalService.getVirtualHost(hostname); 231 } 232 233 /** 234 * Returns the virtual host with the primary key. 235 * 236 * @param virtualHostId the primary key of the virtual host 237 * @return the virtual host 238 * @throws PortalException if a virtual host with the primary key could not be found 239 */ 240 @Override 241 public com.liferay.portal.model.VirtualHost getVirtualHost( 242 long virtualHostId) 243 throws com.liferay.portal.kernel.exception.PortalException { 244 return _virtualHostLocalService.getVirtualHost(virtualHostId); 245 } 246 247 /** 248 * Returns a range of all the virtual hosts. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param start the lower bound of the range of virtual hosts 255 * @param end the upper bound of the range of virtual hosts (not inclusive) 256 * @return the range of virtual hosts 257 */ 258 @Override 259 public java.util.List<com.liferay.portal.model.VirtualHost> getVirtualHosts( 260 int start, int end) { 261 return _virtualHostLocalService.getVirtualHosts(start, end); 262 } 263 264 /** 265 * Returns the number of virtual hosts. 266 * 267 * @return the number of virtual hosts 268 */ 269 @Override 270 public int getVirtualHostsCount() { 271 return _virtualHostLocalService.getVirtualHostsCount(); 272 } 273 274 /** 275 * Sets the Spring bean ID for this bean. 276 * 277 * @param beanIdentifier the Spring bean ID for this bean 278 */ 279 @Override 280 public void setBeanIdentifier(java.lang.String beanIdentifier) { 281 _virtualHostLocalService.setBeanIdentifier(beanIdentifier); 282 } 283 284 @Override 285 public com.liferay.portal.model.VirtualHost updateVirtualHost( 286 long companyId, long layoutSetId, java.lang.String hostname) { 287 return _virtualHostLocalService.updateVirtualHost(companyId, 288 layoutSetId, hostname); 289 } 290 291 /** 292 * Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 293 * 294 * @param virtualHost the virtual host 295 * @return the virtual host that was updated 296 */ 297 @Override 298 public com.liferay.portal.model.VirtualHost updateVirtualHost( 299 com.liferay.portal.model.VirtualHost virtualHost) { 300 return _virtualHostLocalService.updateVirtualHost(virtualHost); 301 } 302 303 /** 304 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 305 */ 306 @Deprecated 307 public VirtualHostLocalService getWrappedVirtualHostLocalService() { 308 return _virtualHostLocalService; 309 } 310 311 /** 312 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 313 */ 314 @Deprecated 315 public void setWrappedVirtualHostLocalService( 316 VirtualHostLocalService virtualHostLocalService) { 317 _virtualHostLocalService = virtualHostLocalService; 318 } 319 320 @Override 321 public VirtualHostLocalService getWrappedService() { 322 return _virtualHostLocalService; 323 } 324 325 @Override 326 public void setWrappedService( 327 VirtualHostLocalService virtualHostLocalService) { 328 _virtualHostLocalService = virtualHostLocalService; 329 } 330 331 private VirtualHostLocalService _virtualHostLocalService; 332 }