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 PhoneLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see PhoneLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class PhoneLocalServiceWrapper implements PhoneLocalService, 028 ServiceWrapper<PhoneLocalService> { 029 public PhoneLocalServiceWrapper(PhoneLocalService phoneLocalService) { 030 _phoneLocalService = phoneLocalService; 031 } 032 033 /** 034 * Adds the phone to the database. Also notifies the appropriate model listeners. 035 * 036 * @param phone the phone 037 * @return the phone that was added 038 */ 039 @Override 040 public com.liferay.portal.model.Phone addPhone( 041 com.liferay.portal.model.Phone phone) { 042 return _phoneLocalService.addPhone(phone); 043 } 044 045 /** 046 * @deprecated As of 6.2.0, replaced by {@link #addPhone(long, String, long, 047 String, String, int, boolean, ServiceContext)} 048 */ 049 @Deprecated 050 @Override 051 public com.liferay.portal.model.Phone addPhone(long userId, 052 java.lang.String className, long classPK, java.lang.String number, 053 java.lang.String extension, long typeId, boolean primary) 054 throws com.liferay.portal.kernel.exception.PortalException { 055 return _phoneLocalService.addPhone(userId, className, classPK, number, 056 extension, typeId, primary); 057 } 058 059 @Override 060 public com.liferay.portal.model.Phone addPhone(long userId, 061 java.lang.String className, long classPK, java.lang.String number, 062 java.lang.String extension, long typeId, boolean primary, 063 com.liferay.portal.service.ServiceContext serviceContext) 064 throws com.liferay.portal.kernel.exception.PortalException { 065 return _phoneLocalService.addPhone(userId, className, classPK, number, 066 extension, typeId, primary, serviceContext); 067 } 068 069 /** 070 * Creates a new phone with the primary key. Does not add the phone to the database. 071 * 072 * @param phoneId the primary key for the new phone 073 * @return the new phone 074 */ 075 @Override 076 public com.liferay.portal.model.Phone createPhone(long phoneId) { 077 return _phoneLocalService.createPhone(phoneId); 078 } 079 080 /** 081 * @throws PortalException 082 */ 083 @Override 084 public com.liferay.portal.model.PersistedModel deletePersistedModel( 085 com.liferay.portal.model.PersistedModel persistedModel) 086 throws com.liferay.portal.kernel.exception.PortalException { 087 return _phoneLocalService.deletePersistedModel(persistedModel); 088 } 089 090 /** 091 * Deletes the phone from the database. Also notifies the appropriate model listeners. 092 * 093 * @param phone the phone 094 * @return the phone that was removed 095 */ 096 @Override 097 public com.liferay.portal.model.Phone deletePhone( 098 com.liferay.portal.model.Phone phone) { 099 return _phoneLocalService.deletePhone(phone); 100 } 101 102 /** 103 * Deletes the phone with the primary key from the database. Also notifies the appropriate model listeners. 104 * 105 * @param phoneId the primary key of the phone 106 * @return the phone that was removed 107 * @throws PortalException if a phone with the primary key could not be found 108 */ 109 @Override 110 public com.liferay.portal.model.Phone deletePhone(long phoneId) 111 throws com.liferay.portal.kernel.exception.PortalException { 112 return _phoneLocalService.deletePhone(phoneId); 113 } 114 115 @Override 116 public void deletePhones(long companyId, java.lang.String className, 117 long classPK) { 118 _phoneLocalService.deletePhones(companyId, className, classPK); 119 } 120 121 @Override 122 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 123 return _phoneLocalService.dynamicQuery(); 124 } 125 126 /** 127 * Performs a dynamic query on the database and returns the matching rows. 128 * 129 * @param dynamicQuery the dynamic query 130 * @return the matching rows 131 */ 132 @Override 133 public <T> java.util.List<T> dynamicQuery( 134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 135 return _phoneLocalService.dynamicQuery(dynamicQuery); 136 } 137 138 /** 139 * Performs a dynamic query on the database and returns a range of the matching rows. 140 * 141 * <p> 142 * 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.PhoneModelImpl}. 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. 143 * </p> 144 * 145 * @param dynamicQuery the dynamic query 146 * @param start the lower bound of the range of model instances 147 * @param end the upper bound of the range of model instances (not inclusive) 148 * @return the range of matching rows 149 */ 150 @Override 151 public <T> java.util.List<T> dynamicQuery( 152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 153 int end) { 154 return _phoneLocalService.dynamicQuery(dynamicQuery, start, end); 155 } 156 157 /** 158 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 159 * 160 * <p> 161 * 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.PhoneModelImpl}. 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. 162 * </p> 163 * 164 * @param dynamicQuery the dynamic query 165 * @param start the lower bound of the range of model instances 166 * @param end the upper bound of the range of model instances (not inclusive) 167 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 168 * @return the ordered range of matching rows 169 */ 170 @Override 171 public <T> java.util.List<T> dynamicQuery( 172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 173 int end, 174 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 175 return _phoneLocalService.dynamicQuery(dynamicQuery, start, end, 176 orderByComparator); 177 } 178 179 /** 180 * Returns the number of rows matching the dynamic query. 181 * 182 * @param dynamicQuery the dynamic query 183 * @return the number of rows matching the dynamic query 184 */ 185 @Override 186 public long dynamicQueryCount( 187 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 188 return _phoneLocalService.dynamicQueryCount(dynamicQuery); 189 } 190 191 /** 192 * Returns the number of rows matching the dynamic query. 193 * 194 * @param dynamicQuery the dynamic query 195 * @param projection the projection to apply to the query 196 * @return the number of rows matching the dynamic query 197 */ 198 @Override 199 public long dynamicQueryCount( 200 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 201 com.liferay.portal.kernel.dao.orm.Projection projection) { 202 return _phoneLocalService.dynamicQueryCount(dynamicQuery, projection); 203 } 204 205 @Override 206 public com.liferay.portal.model.Phone fetchPhone(long phoneId) { 207 return _phoneLocalService.fetchPhone(phoneId); 208 } 209 210 /** 211 * Returns the phone with the matching UUID and company. 212 * 213 * @param uuid the phone's UUID 214 * @param companyId the primary key of the company 215 * @return the matching phone, or <code>null</code> if a matching phone could not be found 216 */ 217 @Override 218 public com.liferay.portal.model.Phone fetchPhoneByUuidAndCompanyId( 219 java.lang.String uuid, long companyId) { 220 return _phoneLocalService.fetchPhoneByUuidAndCompanyId(uuid, companyId); 221 } 222 223 @Override 224 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 225 return _phoneLocalService.getActionableDynamicQuery(); 226 } 227 228 @Override 229 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 230 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) { 231 return _phoneLocalService.getExportActionableDynamicQuery(portletDataContext); 232 } 233 234 @Override 235 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 236 return _phoneLocalService.getIndexableActionableDynamicQuery(); 237 } 238 239 /** 240 * Returns the OSGi service identifier. 241 * 242 * @return the OSGi service identifier 243 */ 244 @Override 245 public java.lang.String getOSGiServiceIdentifier() { 246 return _phoneLocalService.getOSGiServiceIdentifier(); 247 } 248 249 @Override 250 public com.liferay.portal.model.PersistedModel getPersistedModel( 251 java.io.Serializable primaryKeyObj) 252 throws com.liferay.portal.kernel.exception.PortalException { 253 return _phoneLocalService.getPersistedModel(primaryKeyObj); 254 } 255 256 /** 257 * Returns the phone with the primary key. 258 * 259 * @param phoneId the primary key of the phone 260 * @return the phone 261 * @throws PortalException if a phone with the primary key could not be found 262 */ 263 @Override 264 public com.liferay.portal.model.Phone getPhone(long phoneId) 265 throws com.liferay.portal.kernel.exception.PortalException { 266 return _phoneLocalService.getPhone(phoneId); 267 } 268 269 /** 270 * Returns the phone with the matching UUID and company. 271 * 272 * @param uuid the phone's UUID 273 * @param companyId the primary key of the company 274 * @return the matching phone 275 * @throws PortalException if a matching phone could not be found 276 */ 277 @Override 278 public com.liferay.portal.model.Phone getPhoneByUuidAndCompanyId( 279 java.lang.String uuid, long companyId) 280 throws com.liferay.portal.kernel.exception.PortalException { 281 return _phoneLocalService.getPhoneByUuidAndCompanyId(uuid, companyId); 282 } 283 284 @Override 285 public java.util.List<com.liferay.portal.model.Phone> getPhones() { 286 return _phoneLocalService.getPhones(); 287 } 288 289 @Override 290 public java.util.List<com.liferay.portal.model.Phone> getPhones( 291 long companyId, java.lang.String className, long classPK) { 292 return _phoneLocalService.getPhones(companyId, className, classPK); 293 } 294 295 /** 296 * Returns a range of all the phones. 297 * 298 * <p> 299 * 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.PhoneModelImpl}. 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. 300 * </p> 301 * 302 * @param start the lower bound of the range of phones 303 * @param end the upper bound of the range of phones (not inclusive) 304 * @return the range of phones 305 */ 306 @Override 307 public java.util.List<com.liferay.portal.model.Phone> getPhones(int start, 308 int end) { 309 return _phoneLocalService.getPhones(start, end); 310 } 311 312 /** 313 * Returns the number of phones. 314 * 315 * @return the number of phones 316 */ 317 @Override 318 public int getPhonesCount() { 319 return _phoneLocalService.getPhonesCount(); 320 } 321 322 /** 323 * Updates the phone in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 324 * 325 * @param phone the phone 326 * @return the phone that was updated 327 */ 328 @Override 329 public com.liferay.portal.model.Phone updatePhone( 330 com.liferay.portal.model.Phone phone) { 331 return _phoneLocalService.updatePhone(phone); 332 } 333 334 @Override 335 public com.liferay.portal.model.Phone updatePhone(long phoneId, 336 java.lang.String number, java.lang.String extension, long typeId, 337 boolean primary) 338 throws com.liferay.portal.kernel.exception.PortalException { 339 return _phoneLocalService.updatePhone(phoneId, number, extension, 340 typeId, primary); 341 } 342 343 @Override 344 public PhoneLocalService getWrappedService() { 345 return _phoneLocalService; 346 } 347 348 @Override 349 public void setWrappedService(PhoneLocalService phoneLocalService) { 350 _phoneLocalService = phoneLocalService; 351 } 352 353 private PhoneLocalService _phoneLocalService; 354 }