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