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.kernel.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 @Override 035 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 036 return _virtualHostLocalService.getActionableDynamicQuery(); 037 } 038 039 @Override 040 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 041 return _virtualHostLocalService.dynamicQuery(); 042 } 043 044 @Override 045 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 046 return _virtualHostLocalService.getIndexableActionableDynamicQuery(); 047 } 048 049 /** 050 * @throws PortalException 051 */ 052 @Override 053 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 054 com.liferay.portal.kernel.model.PersistedModel persistedModel) 055 throws com.liferay.portal.kernel.exception.PortalException { 056 return _virtualHostLocalService.deletePersistedModel(persistedModel); 057 } 058 059 @Override 060 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 061 java.io.Serializable primaryKeyObj) 062 throws com.liferay.portal.kernel.exception.PortalException { 063 return _virtualHostLocalService.getPersistedModel(primaryKeyObj); 064 } 065 066 /** 067 * Adds the virtual host to the database. Also notifies the appropriate model listeners. 068 * 069 * @param virtualHost the virtual host 070 * @return the virtual host that was added 071 */ 072 @Override 073 public com.liferay.portal.kernel.model.VirtualHost addVirtualHost( 074 com.liferay.portal.kernel.model.VirtualHost virtualHost) { 075 return _virtualHostLocalService.addVirtualHost(virtualHost); 076 } 077 078 /** 079 * Creates a new virtual host with the primary key. Does not add the virtual host to the database. 080 * 081 * @param virtualHostId the primary key for the new virtual host 082 * @return the new virtual host 083 */ 084 @Override 085 public com.liferay.portal.kernel.model.VirtualHost createVirtualHost( 086 long virtualHostId) { 087 return _virtualHostLocalService.createVirtualHost(virtualHostId); 088 } 089 090 /** 091 * Deletes the virtual host from the database. Also notifies the appropriate model listeners. 092 * 093 * @param virtualHost the virtual host 094 * @return the virtual host that was removed 095 */ 096 @Override 097 public com.liferay.portal.kernel.model.VirtualHost deleteVirtualHost( 098 com.liferay.portal.kernel.model.VirtualHost virtualHost) { 099 return _virtualHostLocalService.deleteVirtualHost(virtualHost); 100 } 101 102 /** 103 * Deletes the virtual host with the primary key from the database. Also notifies the appropriate model listeners. 104 * 105 * @param virtualHostId the primary key of the virtual host 106 * @return the virtual host that was removed 107 * @throws PortalException if a virtual host with the primary key could not be found 108 */ 109 @Override 110 public com.liferay.portal.kernel.model.VirtualHost deleteVirtualHost( 111 long virtualHostId) 112 throws com.liferay.portal.kernel.exception.PortalException { 113 return _virtualHostLocalService.deleteVirtualHost(virtualHostId); 114 } 115 116 @Override 117 public com.liferay.portal.kernel.model.VirtualHost fetchVirtualHost( 118 java.lang.String hostname) { 119 return _virtualHostLocalService.fetchVirtualHost(hostname); 120 } 121 122 @Override 123 public com.liferay.portal.kernel.model.VirtualHost fetchVirtualHost( 124 long companyId, long layoutSetId) { 125 return _virtualHostLocalService.fetchVirtualHost(companyId, layoutSetId); 126 } 127 128 @Override 129 public com.liferay.portal.kernel.model.VirtualHost fetchVirtualHost( 130 long virtualHostId) { 131 return _virtualHostLocalService.fetchVirtualHost(virtualHostId); 132 } 133 134 @Override 135 public com.liferay.portal.kernel.model.VirtualHost getVirtualHost( 136 java.lang.String hostname) 137 throws com.liferay.portal.kernel.exception.PortalException { 138 return _virtualHostLocalService.getVirtualHost(hostname); 139 } 140 141 @Override 142 public com.liferay.portal.kernel.model.VirtualHost getVirtualHost( 143 long companyId, long layoutSetId) 144 throws com.liferay.portal.kernel.exception.PortalException { 145 return _virtualHostLocalService.getVirtualHost(companyId, layoutSetId); 146 } 147 148 /** 149 * Returns the virtual host with the primary key. 150 * 151 * @param virtualHostId the primary key of the virtual host 152 * @return the virtual host 153 * @throws PortalException if a virtual host with the primary key could not be found 154 */ 155 @Override 156 public com.liferay.portal.kernel.model.VirtualHost getVirtualHost( 157 long virtualHostId) 158 throws com.liferay.portal.kernel.exception.PortalException { 159 return _virtualHostLocalService.getVirtualHost(virtualHostId); 160 } 161 162 /** 163 * Updates the virtual host in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 164 * 165 * @param virtualHost the virtual host 166 * @return the virtual host that was updated 167 */ 168 @Override 169 public com.liferay.portal.kernel.model.VirtualHost updateVirtualHost( 170 com.liferay.portal.kernel.model.VirtualHost virtualHost) { 171 return _virtualHostLocalService.updateVirtualHost(virtualHost); 172 } 173 174 @Override 175 public com.liferay.portal.kernel.model.VirtualHost updateVirtualHost( 176 long companyId, long layoutSetId, java.lang.String hostname) { 177 return _virtualHostLocalService.updateVirtualHost(companyId, 178 layoutSetId, hostname); 179 } 180 181 /** 182 * Returns the number of virtual hosts. 183 * 184 * @return the number of virtual hosts 185 */ 186 @Override 187 public int getVirtualHostsCount() { 188 return _virtualHostLocalService.getVirtualHostsCount(); 189 } 190 191 /** 192 * Returns the OSGi service identifier. 193 * 194 * @return the OSGi service identifier 195 */ 196 @Override 197 public java.lang.String getOSGiServiceIdentifier() { 198 return _virtualHostLocalService.getOSGiServiceIdentifier(); 199 } 200 201 /** 202 * Performs a dynamic query on the database and returns the matching rows. 203 * 204 * @param dynamicQuery the dynamic query 205 * @return the matching rows 206 */ 207 @Override 208 public <T> java.util.List<T> dynamicQuery( 209 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 210 return _virtualHostLocalService.dynamicQuery(dynamicQuery); 211 } 212 213 /** 214 * Performs a dynamic query on the database and returns a range of the matching rows. 215 * 216 * <p> 217 * 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. 218 * </p> 219 * 220 * @param dynamicQuery the dynamic query 221 * @param start the lower bound of the range of model instances 222 * @param end the upper bound of the range of model instances (not inclusive) 223 * @return the range of matching rows 224 */ 225 @Override 226 public <T> java.util.List<T> dynamicQuery( 227 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 228 int end) { 229 return _virtualHostLocalService.dynamicQuery(dynamicQuery, start, end); 230 } 231 232 /** 233 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 234 * 235 * <p> 236 * 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. 237 * </p> 238 * 239 * @param dynamicQuery the dynamic query 240 * @param start the lower bound of the range of model instances 241 * @param end the upper bound of the range of model instances (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching rows 244 */ 245 @Override 246 public <T> java.util.List<T> dynamicQuery( 247 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 248 int end, 249 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 250 return _virtualHostLocalService.dynamicQuery(dynamicQuery, start, end, 251 orderByComparator); 252 } 253 254 /** 255 * Returns a range of all the virtual hosts. 256 * 257 * <p> 258 * 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. 259 * </p> 260 * 261 * @param start the lower bound of the range of virtual hosts 262 * @param end the upper bound of the range of virtual hosts (not inclusive) 263 * @return the range of virtual hosts 264 */ 265 @Override 266 public java.util.List<com.liferay.portal.kernel.model.VirtualHost> getVirtualHosts( 267 int start, int end) { 268 return _virtualHostLocalService.getVirtualHosts(start, end); 269 } 270 271 /** 272 * Returns the number of rows matching the dynamic query. 273 * 274 * @param dynamicQuery the dynamic query 275 * @return the number of rows matching the dynamic query 276 */ 277 @Override 278 public long dynamicQueryCount( 279 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 280 return _virtualHostLocalService.dynamicQueryCount(dynamicQuery); 281 } 282 283 /** 284 * Returns the number of rows matching the dynamic query. 285 * 286 * @param dynamicQuery the dynamic query 287 * @param projection the projection to apply to the query 288 * @return the number of rows matching the dynamic query 289 */ 290 @Override 291 public long dynamicQueryCount( 292 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 293 com.liferay.portal.kernel.dao.orm.Projection projection) { 294 return _virtualHostLocalService.dynamicQueryCount(dynamicQuery, 295 projection); 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 }