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.asset.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 AssetTagStatsLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see AssetTagStatsLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class AssetTagStatsLocalServiceWrapper 030 implements AssetTagStatsLocalService, 031 ServiceWrapper<AssetTagStatsLocalService> { 032 public AssetTagStatsLocalServiceWrapper( 033 AssetTagStatsLocalService assetTagStatsLocalService) { 034 _assetTagStatsLocalService = assetTagStatsLocalService; 035 } 036 037 /** 038 * Adds the asset tag stats to the database. Also notifies the appropriate model listeners. 039 * 040 * @param assetTagStats the asset tag stats 041 * @return the asset tag stats that was added 042 */ 043 @Override 044 public com.liferay.asset.kernel.model.AssetTagStats addAssetTagStats( 045 com.liferay.asset.kernel.model.AssetTagStats assetTagStats) { 046 return _assetTagStatsLocalService.addAssetTagStats(assetTagStats); 047 } 048 049 /** 050 * Adds an asset tag statistics instance. 051 * 052 * @param tagId the primary key of the tag 053 * @param classNameId the asset entry's class name ID 054 * @return the asset tag statistics instance 055 */ 056 @Override 057 public com.liferay.asset.kernel.model.AssetTagStats addTagStats( 058 long tagId, long classNameId) { 059 return _assetTagStatsLocalService.addTagStats(tagId, classNameId); 060 } 061 062 /** 063 * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database. 064 * 065 * @param tagStatsId the primary key for the new asset tag stats 066 * @return the new asset tag stats 067 */ 068 @Override 069 public com.liferay.asset.kernel.model.AssetTagStats createAssetTagStats( 070 long tagStatsId) { 071 return _assetTagStatsLocalService.createAssetTagStats(tagStatsId); 072 } 073 074 /** 075 * Deletes the asset tag stats from the database. Also notifies the appropriate model listeners. 076 * 077 * @param assetTagStats the asset tag stats 078 * @return the asset tag stats that was removed 079 */ 080 @Override 081 public com.liferay.asset.kernel.model.AssetTagStats deleteAssetTagStats( 082 com.liferay.asset.kernel.model.AssetTagStats assetTagStats) { 083 return _assetTagStatsLocalService.deleteAssetTagStats(assetTagStats); 084 } 085 086 /** 087 * Deletes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners. 088 * 089 * @param tagStatsId the primary key of the asset tag stats 090 * @return the asset tag stats that was removed 091 * @throws PortalException if a asset tag stats with the primary key could not be found 092 */ 093 @Override 094 public com.liferay.asset.kernel.model.AssetTagStats deleteAssetTagStats( 095 long tagStatsId) 096 throws com.liferay.portal.kernel.exception.PortalException { 097 return _assetTagStatsLocalService.deleteAssetTagStats(tagStatsId); 098 } 099 100 @Override 101 public com.liferay.asset.kernel.model.AssetTagStats fetchAssetTagStats( 102 long tagStatsId) { 103 return _assetTagStatsLocalService.fetchAssetTagStats(tagStatsId); 104 } 105 106 /** 107 * Returns the asset tag stats with the primary key. 108 * 109 * @param tagStatsId the primary key of the asset tag stats 110 * @return the asset tag stats 111 * @throws PortalException if a asset tag stats with the primary key could not be found 112 */ 113 @Override 114 public com.liferay.asset.kernel.model.AssetTagStats getAssetTagStats( 115 long tagStatsId) 116 throws com.liferay.portal.kernel.exception.PortalException { 117 return _assetTagStatsLocalService.getAssetTagStats(tagStatsId); 118 } 119 120 /** 121 * Returns the asset tag statistics instance with the tag and asset entry 122 * matching the class name ID 123 * 124 * @param tagId the primary key of the tag 125 * @param classNameId the asset entry's class name ID 126 * @return Returns the asset tag statistics instance with the tag and asset 127 entry matching the class name ID 128 */ 129 @Override 130 public com.liferay.asset.kernel.model.AssetTagStats getTagStats( 131 long tagId, long classNameId) { 132 return _assetTagStatsLocalService.getTagStats(tagId, classNameId); 133 } 134 135 /** 136 * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 137 * 138 * @param assetTagStats the asset tag stats 139 * @return the asset tag stats that was updated 140 */ 141 @Override 142 public com.liferay.asset.kernel.model.AssetTagStats updateAssetTagStats( 143 com.liferay.asset.kernel.model.AssetTagStats assetTagStats) { 144 return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats); 145 } 146 147 /** 148 * Updates the asset tag statistics instance. 149 * 150 * @param tagId the primary key of the tag 151 * @param classNameId the asset entry's class name ID 152 * @return the updated asset tag statistics instance 153 */ 154 @Override 155 public com.liferay.asset.kernel.model.AssetTagStats updateTagStats( 156 long tagId, long classNameId) 157 throws com.liferay.portal.kernel.exception.PortalException { 158 return _assetTagStatsLocalService.updateTagStats(tagId, classNameId); 159 } 160 161 @Override 162 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 163 return _assetTagStatsLocalService.getActionableDynamicQuery(); 164 } 165 166 @Override 167 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 168 return _assetTagStatsLocalService.dynamicQuery(); 169 } 170 171 @Override 172 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 173 return _assetTagStatsLocalService.getIndexableActionableDynamicQuery(); 174 } 175 176 /** 177 * @throws PortalException 178 */ 179 @Override 180 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 181 com.liferay.portal.kernel.model.PersistedModel persistedModel) 182 throws com.liferay.portal.kernel.exception.PortalException { 183 return _assetTagStatsLocalService.deletePersistedModel(persistedModel); 184 } 185 186 @Override 187 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 188 java.io.Serializable primaryKeyObj) 189 throws com.liferay.portal.kernel.exception.PortalException { 190 return _assetTagStatsLocalService.getPersistedModel(primaryKeyObj); 191 } 192 193 /** 194 * Returns the number of asset tag statses. 195 * 196 * @return the number of asset tag statses 197 */ 198 @Override 199 public int getAssetTagStatsesCount() { 200 return _assetTagStatsLocalService.getAssetTagStatsesCount(); 201 } 202 203 /** 204 * Returns the OSGi service identifier. 205 * 206 * @return the OSGi service identifier 207 */ 208 @Override 209 public java.lang.String getOSGiServiceIdentifier() { 210 return _assetTagStatsLocalService.getOSGiServiceIdentifier(); 211 } 212 213 /** 214 * Performs a dynamic query on the database and returns the matching rows. 215 * 216 * @param dynamicQuery the dynamic query 217 * @return the matching rows 218 */ 219 @Override 220 public <T> java.util.List<T> dynamicQuery( 221 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 222 return _assetTagStatsLocalService.dynamicQuery(dynamicQuery); 223 } 224 225 /** 226 * Performs a dynamic query on the database and returns a 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.asset.model.impl.AssetTagStatsModelImpl}. 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 * @return the range of matching rows 236 */ 237 @Override 238 public <T> java.util.List<T> dynamicQuery( 239 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 240 int end) { 241 return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, end); 242 } 243 244 /** 245 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 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.portlet.asset.model.impl.AssetTagStatsModelImpl}. 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 dynamicQuery the dynamic query 252 * @param start the lower bound of the range of model instances 253 * @param end the upper bound of the range of model instances (not inclusive) 254 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 255 * @return the ordered range of matching rows 256 */ 257 @Override 258 public <T> java.util.List<T> dynamicQuery( 259 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 260 int end, 261 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 262 return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, 263 end, orderByComparator); 264 } 265 266 /** 267 * Returns a range of all the asset tag statses. 268 * 269 * <p> 270 * 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.asset.model.impl.AssetTagStatsModelImpl}. 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. 271 * </p> 272 * 273 * @param start the lower bound of the range of asset tag statses 274 * @param end the upper bound of the range of asset tag statses (not inclusive) 275 * @return the range of asset tag statses 276 */ 277 @Override 278 public java.util.List<com.liferay.asset.kernel.model.AssetTagStats> getAssetTagStatses( 279 int start, int end) { 280 return _assetTagStatsLocalService.getAssetTagStatses(start, end); 281 } 282 283 /** 284 * Returns a range of all the asset tag statistics instances associated with 285 * the asset entry matching the class name ID. 286 * 287 * <p> 288 * Useful when paginating results. Returns a maximum of <code>end - 289 * start</code> instances. <code>start</code> and <code>end</code> are not 290 * primary keys, they are indexes in the result set. Thus, <code>0</code> 291 * refers to the first result in the set. Setting both <code>start</code> 292 * and <code>end</code> to {@link 293 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 294 * result set. 295 * </p> 296 * 297 * @param classNameId the asset entry's class name ID 298 * @param start the lower bound of the range of results 299 * @param end the upper bound of the range of results (not inclusive) 300 * @return the range of asset tag statistics associated with the asset entry 301 matching the class name ID 302 */ 303 @Override 304 public java.util.List<com.liferay.asset.kernel.model.AssetTagStats> getTagStats( 305 long classNameId, int start, int end) { 306 return _assetTagStatsLocalService.getTagStats(classNameId, start, end); 307 } 308 309 /** 310 * Returns the number of rows matching the dynamic query. 311 * 312 * @param dynamicQuery the dynamic query 313 * @return the number of rows matching the dynamic query 314 */ 315 @Override 316 public long dynamicQueryCount( 317 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 318 return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery); 319 } 320 321 /** 322 * Returns the number of rows matching the dynamic query. 323 * 324 * @param dynamicQuery the dynamic query 325 * @param projection the projection to apply to the query 326 * @return the number of rows matching the dynamic query 327 */ 328 @Override 329 public long dynamicQueryCount( 330 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 331 com.liferay.portal.kernel.dao.orm.Projection projection) { 332 return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery, 333 projection); 334 } 335 336 /** 337 * Deletes the asset tag statistics instance. 338 * 339 * @param tagStats the asset tag statistics instance 340 */ 341 @Override 342 public void deleteTagStats( 343 com.liferay.asset.kernel.model.AssetTagStats tagStats) { 344 _assetTagStatsLocalService.deleteTagStats(tagStats); 345 } 346 347 /** 348 * Deletes the asset tag statistics instance matching the tag statistics ID. 349 * 350 * @param tagStatsId the primary key of the asset tag statistics instance 351 */ 352 @Override 353 public void deleteTagStats(long tagStatsId) 354 throws com.liferay.portal.kernel.exception.PortalException { 355 _assetTagStatsLocalService.deleteTagStats(tagStatsId); 356 } 357 358 /** 359 * Deletes all asset tag statistics instances associated with the asset 360 * entry matching the class name ID. 361 * 362 * @param classNameId the asset entry's class name ID 363 */ 364 @Override 365 public void deleteTagStatsByClassNameId(long classNameId) { 366 _assetTagStatsLocalService.deleteTagStatsByClassNameId(classNameId); 367 } 368 369 /** 370 * Deletes all asset tag statistics instances associated with the tag. 371 * 372 * @param tagId the primary key of the tag 373 */ 374 @Override 375 public void deleteTagStatsByTagId(long tagId) { 376 _assetTagStatsLocalService.deleteTagStatsByTagId(tagId); 377 } 378 379 @Override 380 public AssetTagStatsLocalService getWrappedService() { 381 return _assetTagStatsLocalService; 382 } 383 384 @Override 385 public void setWrappedService( 386 AssetTagStatsLocalService assetTagStatsLocalService) { 387 _assetTagStatsLocalService = assetTagStatsLocalService; 388 } 389 390 private AssetTagStatsLocalService _assetTagStatsLocalService; 391 }