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 com.liferay.portal.model.PersistedModel getPersistedModel( 212 java.io.Serializable primaryKeyObj) 213 throws com.liferay.portal.kernel.exception.PortalException { 214 return _serviceComponentLocalService.getPersistedModel(primaryKeyObj); 215 } 216 217 /** 218 * Returns the service component with the primary key. 219 * 220 * @param serviceComponentId the primary key of the service component 221 * @return the service component 222 * @throws PortalException if a service component with the primary key could not be found 223 */ 224 @Override 225 public com.liferay.portal.model.ServiceComponent getServiceComponent( 226 long serviceComponentId) 227 throws com.liferay.portal.kernel.exception.PortalException { 228 return _serviceComponentLocalService.getServiceComponent(serviceComponentId); 229 } 230 231 /** 232 * Returns a range of all the service components. 233 * 234 * <p> 235 * 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. 236 * </p> 237 * 238 * @param start the lower bound of the range of service components 239 * @param end the upper bound of the range of service components (not inclusive) 240 * @return the range of service components 241 */ 242 @Override 243 public java.util.List<com.liferay.portal.model.ServiceComponent> getServiceComponents( 244 int start, int end) { 245 return _serviceComponentLocalService.getServiceComponents(start, end); 246 } 247 248 /** 249 * Returns the number of service components. 250 * 251 * @return the number of service components 252 */ 253 @Override 254 public int getServiceComponentsCount() { 255 return _serviceComponentLocalService.getServiceComponentsCount(); 256 } 257 258 @Override 259 public com.liferay.portal.model.ServiceComponent initServiceComponent( 260 com.liferay.portal.service.configuration.ServiceComponentConfiguration serviceComponentConfiguration, 261 java.lang.ClassLoader classLoader, java.lang.String buildNamespace, 262 long buildNumber, long buildDate, boolean buildAutoUpgrade) 263 throws com.liferay.portal.kernel.exception.PortalException { 264 return _serviceComponentLocalService.initServiceComponent(serviceComponentConfiguration, 265 classLoader, buildNamespace, buildNumber, buildDate, 266 buildAutoUpgrade); 267 } 268 269 /** 270 * Sets the Spring bean ID for this bean. 271 * 272 * @param beanIdentifier the Spring bean ID for this bean 273 */ 274 @Override 275 public void setBeanIdentifier(java.lang.String beanIdentifier) { 276 _serviceComponentLocalService.setBeanIdentifier(beanIdentifier); 277 } 278 279 /** 280 * Updates the service component in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 281 * 282 * @param serviceComponent the service component 283 * @return the service component that was updated 284 */ 285 @Override 286 public com.liferay.portal.model.ServiceComponent updateServiceComponent( 287 com.liferay.portal.model.ServiceComponent serviceComponent) { 288 return _serviceComponentLocalService.updateServiceComponent(serviceComponent); 289 } 290 291 @Override 292 public void upgradeDB(java.lang.ClassLoader classLoader, 293 java.lang.String buildNamespace, long buildNumber, 294 boolean buildAutoUpgrade, 295 com.liferay.portal.model.ServiceComponent previousServiceComponent, 296 java.lang.String tablesSQL, java.lang.String sequencesSQL, 297 java.lang.String indexesSQL) throws java.lang.Exception { 298 _serviceComponentLocalService.upgradeDB(classLoader, buildNamespace, 299 buildNumber, buildAutoUpgrade, previousServiceComponent, tablesSQL, 300 sequencesSQL, indexesSQL); 301 } 302 303 @Override 304 public void verifyDB() { 305 _serviceComponentLocalService.verifyDB(); 306 } 307 308 /** 309 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 310 */ 311 @Deprecated 312 public ServiceComponentLocalService getWrappedServiceComponentLocalService() { 313 return _serviceComponentLocalService; 314 } 315 316 /** 317 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 318 */ 319 @Deprecated 320 public void setWrappedServiceComponentLocalService( 321 ServiceComponentLocalService serviceComponentLocalService) { 322 _serviceComponentLocalService = serviceComponentLocalService; 323 } 324 325 @Override 326 public ServiceComponentLocalService getWrappedService() { 327 return _serviceComponentLocalService; 328 } 329 330 @Override 331 public void setWrappedService( 332 ServiceComponentLocalService serviceComponentLocalService) { 333 _serviceComponentLocalService = serviceComponentLocalService; 334 } 335 336 private ServiceComponentLocalService _serviceComponentLocalService; 337 }