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