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