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.ratings.kernel.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link RatingsStatsLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see RatingsStatsLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class RatingsStatsLocalServiceWrapper implements RatingsStatsLocalService, 030 ServiceWrapper<RatingsStatsLocalService> { 031 public RatingsStatsLocalServiceWrapper( 032 RatingsStatsLocalService ratingsStatsLocalService) { 033 _ratingsStatsLocalService = ratingsStatsLocalService; 034 } 035 036 @Override 037 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 038 return _ratingsStatsLocalService.getActionableDynamicQuery(); 039 } 040 041 @Override 042 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 043 return _ratingsStatsLocalService.dynamicQuery(); 044 } 045 046 @Override 047 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 048 return _ratingsStatsLocalService.getIndexableActionableDynamicQuery(); 049 } 050 051 /** 052 * @throws PortalException 053 */ 054 @Override 055 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 056 com.liferay.portal.kernel.model.PersistedModel persistedModel) 057 throws com.liferay.portal.kernel.exception.PortalException { 058 return _ratingsStatsLocalService.deletePersistedModel(persistedModel); 059 } 060 061 @Override 062 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 063 java.io.Serializable primaryKeyObj) 064 throws com.liferay.portal.kernel.exception.PortalException { 065 return _ratingsStatsLocalService.getPersistedModel(primaryKeyObj); 066 } 067 068 /** 069 * Adds the ratings stats to the database. Also notifies the appropriate model listeners. 070 * 071 * @param ratingsStats the ratings stats 072 * @return the ratings stats that was added 073 */ 074 @Override 075 public com.liferay.ratings.kernel.model.RatingsStats addRatingsStats( 076 com.liferay.ratings.kernel.model.RatingsStats ratingsStats) { 077 return _ratingsStatsLocalService.addRatingsStats(ratingsStats); 078 } 079 080 @Override 081 public com.liferay.ratings.kernel.model.RatingsStats addStats( 082 long classNameId, long classPK) { 083 return _ratingsStatsLocalService.addStats(classNameId, classPK); 084 } 085 086 /** 087 * Creates a new ratings stats with the primary key. Does not add the ratings stats to the database. 088 * 089 * @param statsId the primary key for the new ratings stats 090 * @return the new ratings stats 091 */ 092 @Override 093 public com.liferay.ratings.kernel.model.RatingsStats createRatingsStats( 094 long statsId) { 095 return _ratingsStatsLocalService.createRatingsStats(statsId); 096 } 097 098 /** 099 * Deletes the ratings stats from the database. Also notifies the appropriate model listeners. 100 * 101 * @param ratingsStats the ratings stats 102 * @return the ratings stats that was removed 103 */ 104 @Override 105 public com.liferay.ratings.kernel.model.RatingsStats deleteRatingsStats( 106 com.liferay.ratings.kernel.model.RatingsStats ratingsStats) { 107 return _ratingsStatsLocalService.deleteRatingsStats(ratingsStats); 108 } 109 110 /** 111 * Deletes the ratings stats with the primary key from the database. Also notifies the appropriate model listeners. 112 * 113 * @param statsId the primary key of the ratings stats 114 * @return the ratings stats that was removed 115 * @throws PortalException if a ratings stats with the primary key could not be found 116 */ 117 @Override 118 public com.liferay.ratings.kernel.model.RatingsStats deleteRatingsStats( 119 long statsId) 120 throws com.liferay.portal.kernel.exception.PortalException { 121 return _ratingsStatsLocalService.deleteRatingsStats(statsId); 122 } 123 124 @Override 125 public com.liferay.ratings.kernel.model.RatingsStats fetchRatingsStats( 126 long statsId) { 127 return _ratingsStatsLocalService.fetchRatingsStats(statsId); 128 } 129 130 @Override 131 public com.liferay.ratings.kernel.model.RatingsStats fetchStats( 132 java.lang.String className, long classPK) { 133 return _ratingsStatsLocalService.fetchStats(className, classPK); 134 } 135 136 /** 137 * Returns the ratings stats with the primary key. 138 * 139 * @param statsId the primary key of the ratings stats 140 * @return the ratings stats 141 * @throws PortalException if a ratings stats with the primary key could not be found 142 */ 143 @Override 144 public com.liferay.ratings.kernel.model.RatingsStats getRatingsStats( 145 long statsId) 146 throws com.liferay.portal.kernel.exception.PortalException { 147 return _ratingsStatsLocalService.getRatingsStats(statsId); 148 } 149 150 @Override 151 public com.liferay.ratings.kernel.model.RatingsStats getStats( 152 java.lang.String className, long classPK) { 153 return _ratingsStatsLocalService.getStats(className, classPK); 154 } 155 156 @Override 157 public com.liferay.ratings.kernel.model.RatingsStats getStats(long statsId) 158 throws com.liferay.portal.kernel.exception.PortalException { 159 return _ratingsStatsLocalService.getStats(statsId); 160 } 161 162 /** 163 * Updates the ratings stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 164 * 165 * @param ratingsStats the ratings stats 166 * @return the ratings stats that was updated 167 */ 168 @Override 169 public com.liferay.ratings.kernel.model.RatingsStats updateRatingsStats( 170 com.liferay.ratings.kernel.model.RatingsStats ratingsStats) { 171 return _ratingsStatsLocalService.updateRatingsStats(ratingsStats); 172 } 173 174 /** 175 * Returns the number of ratings statses. 176 * 177 * @return the number of ratings statses 178 */ 179 @Override 180 public int getRatingsStatsesCount() { 181 return _ratingsStatsLocalService.getRatingsStatsesCount(); 182 } 183 184 /** 185 * Returns the OSGi service identifier. 186 * 187 * @return the OSGi service identifier 188 */ 189 @Override 190 public java.lang.String getOSGiServiceIdentifier() { 191 return _ratingsStatsLocalService.getOSGiServiceIdentifier(); 192 } 193 194 /** 195 * Performs a dynamic query on the database and returns the matching rows. 196 * 197 * @param dynamicQuery the dynamic query 198 * @return the matching rows 199 */ 200 @Override 201 public <T> java.util.List<T> dynamicQuery( 202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 203 return _ratingsStatsLocalService.dynamicQuery(dynamicQuery); 204 } 205 206 /** 207 * Performs a dynamic query on the database and returns a range of the matching rows. 208 * 209 * <p> 210 * 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.portlet.ratings.model.impl.RatingsStatsModelImpl}. 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. 211 * </p> 212 * 213 * @param dynamicQuery the dynamic query 214 * @param start the lower bound of the range of model instances 215 * @param end the upper bound of the range of model instances (not inclusive) 216 * @return the range of matching rows 217 */ 218 @Override 219 public <T> java.util.List<T> dynamicQuery( 220 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 221 int end) { 222 return _ratingsStatsLocalService.dynamicQuery(dynamicQuery, start, end); 223 } 224 225 /** 226 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 227 * 228 * <p> 229 * 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.portlet.ratings.model.impl.RatingsStatsModelImpl}. 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. 230 * </p> 231 * 232 * @param dynamicQuery the dynamic query 233 * @param start the lower bound of the range of model instances 234 * @param end the upper bound of the range of model instances (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching rows 237 */ 238 @Override 239 public <T> java.util.List<T> dynamicQuery( 240 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 241 int end, 242 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 243 return _ratingsStatsLocalService.dynamicQuery(dynamicQuery, start, end, 244 orderByComparator); 245 } 246 247 /** 248 * Returns a range of all the ratings statses. 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.portlet.ratings.model.impl.RatingsStatsModelImpl}. 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 start the lower bound of the range of ratings statses 255 * @param end the upper bound of the range of ratings statses (not inclusive) 256 * @return the range of ratings statses 257 */ 258 @Override 259 public java.util.List<com.liferay.ratings.kernel.model.RatingsStats> getRatingsStatses( 260 int start, int end) { 261 return _ratingsStatsLocalService.getRatingsStatses(start, end); 262 } 263 264 @Override 265 public java.util.List<com.liferay.ratings.kernel.model.RatingsStats> getStats( 266 java.lang.String className, java.util.List<java.lang.Long> classPKs) { 267 return _ratingsStatsLocalService.getStats(className, classPKs); 268 } 269 270 /** 271 * Returns the number of rows matching the dynamic query. 272 * 273 * @param dynamicQuery the dynamic query 274 * @return the number of rows matching the dynamic query 275 */ 276 @Override 277 public long dynamicQueryCount( 278 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 279 return _ratingsStatsLocalService.dynamicQueryCount(dynamicQuery); 280 } 281 282 /** 283 * Returns the number of rows matching the dynamic query. 284 * 285 * @param dynamicQuery the dynamic query 286 * @param projection the projection to apply to the query 287 * @return the number of rows matching the dynamic query 288 */ 289 @Override 290 public long dynamicQueryCount( 291 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 292 com.liferay.portal.kernel.dao.orm.Projection projection) { 293 return _ratingsStatsLocalService.dynamicQueryCount(dynamicQuery, 294 projection); 295 } 296 297 @Override 298 public void deleteStats(java.lang.String className, long classPK) { 299 _ratingsStatsLocalService.deleteStats(className, classPK); 300 } 301 302 @Override 303 public RatingsStatsLocalService getWrappedService() { 304 return _ratingsStatsLocalService; 305 } 306 307 @Override 308 public void setWrappedService( 309 RatingsStatsLocalService ratingsStatsLocalService) { 310 _ratingsStatsLocalService = ratingsStatsLocalService; 311 } 312 313 private RatingsStatsLocalService _ratingsStatsLocalService; 314 }