001 /** 002 * Copyright (c) 2000-2013 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.portlet.asset.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.service.ServiceContext; 025 026 import com.liferay.portlet.asset.model.AssetTagStats; 027 028 import java.util.List; 029 030 /** 031 * The persistence utility for the asset tag stats service. This utility wraps {@link AssetTagStatsPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 032 * 033 * <p> 034 * Caching information and settings can be found in <code>portal.properties</code> 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see AssetTagStatsPersistence 039 * @see AssetTagStatsPersistenceImpl 040 * @generated 041 */ 042 @ProviderType 043 public class AssetTagStatsUtil { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 048 */ 049 050 /** 051 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 052 */ 053 public static void clearCache() { 054 getPersistence().clearCache(); 055 } 056 057 /** 058 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 059 */ 060 public static void clearCache(AssetTagStats assetTagStats) { 061 getPersistence().clearCache(assetTagStats); 062 } 063 064 /** 065 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 066 */ 067 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 068 throws SystemException { 069 return getPersistence().countWithDynamicQuery(dynamicQuery); 070 } 071 072 /** 073 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 074 */ 075 public static List<AssetTagStats> findWithDynamicQuery( 076 DynamicQuery dynamicQuery) throws SystemException { 077 return getPersistence().findWithDynamicQuery(dynamicQuery); 078 } 079 080 /** 081 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 082 */ 083 public static List<AssetTagStats> findWithDynamicQuery( 084 DynamicQuery dynamicQuery, int start, int end) 085 throws SystemException { 086 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 087 } 088 089 /** 090 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 091 */ 092 public static List<AssetTagStats> findWithDynamicQuery( 093 DynamicQuery dynamicQuery, int start, int end, 094 OrderByComparator orderByComparator) throws SystemException { 095 return getPersistence() 096 .findWithDynamicQuery(dynamicQuery, start, end, 097 orderByComparator); 098 } 099 100 /** 101 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 102 */ 103 public static AssetTagStats update(AssetTagStats assetTagStats) 104 throws SystemException { 105 return getPersistence().update(assetTagStats); 106 } 107 108 /** 109 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 110 */ 111 public static AssetTagStats update(AssetTagStats assetTagStats, 112 ServiceContext serviceContext) throws SystemException { 113 return getPersistence().update(assetTagStats, serviceContext); 114 } 115 116 /** 117 * Returns all the asset tag statses where tagId = ?. 118 * 119 * @param tagId the tag ID 120 * @return the matching asset tag statses 121 * @throws SystemException if a system exception occurred 122 */ 123 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId( 124 long tagId) throws com.liferay.portal.kernel.exception.SystemException { 125 return getPersistence().findByTagId(tagId); 126 } 127 128 /** 129 * Returns a range of all the asset tag statses where tagId = ?. 130 * 131 * <p> 132 * 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. 133 * </p> 134 * 135 * @param tagId the tag ID 136 * @param start the lower bound of the range of asset tag statses 137 * @param end the upper bound of the range of asset tag statses (not inclusive) 138 * @return the range of matching asset tag statses 139 * @throws SystemException if a system exception occurred 140 */ 141 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId( 142 long tagId, int start, int end) 143 throws com.liferay.portal.kernel.exception.SystemException { 144 return getPersistence().findByTagId(tagId, start, end); 145 } 146 147 /** 148 * Returns an ordered range of all the asset tag statses where tagId = ?. 149 * 150 * <p> 151 * 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. 152 * </p> 153 * 154 * @param tagId the tag ID 155 * @param start the lower bound of the range of asset tag statses 156 * @param end the upper bound of the range of asset tag statses (not inclusive) 157 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 158 * @return the ordered range of matching asset tag statses 159 * @throws SystemException if a system exception occurred 160 */ 161 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId( 162 long tagId, int start, int end, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException { 165 return getPersistence().findByTagId(tagId, start, end, orderByComparator); 166 } 167 168 /** 169 * Returns the first asset tag stats in the ordered set where tagId = ?. 170 * 171 * @param tagId the tag ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching asset tag stats 174 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_First( 178 long tagId, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.asset.NoSuchTagStatsException { 182 return getPersistence().findByTagId_First(tagId, orderByComparator); 183 } 184 185 /** 186 * Returns the first asset tag stats in the ordered set where tagId = ?. 187 * 188 * @param tagId the tag ID 189 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 190 * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 191 * @throws SystemException if a system exception occurred 192 */ 193 public static com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_First( 194 long tagId, 195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 196 throws com.liferay.portal.kernel.exception.SystemException { 197 return getPersistence().fetchByTagId_First(tagId, orderByComparator); 198 } 199 200 /** 201 * Returns the last asset tag stats in the ordered set where tagId = ?. 202 * 203 * @param tagId the tag ID 204 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 205 * @return the last matching asset tag stats 206 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 207 * @throws SystemException if a system exception occurred 208 */ 209 public static com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last( 210 long tagId, 211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 212 throws com.liferay.portal.kernel.exception.SystemException, 213 com.liferay.portlet.asset.NoSuchTagStatsException { 214 return getPersistence().findByTagId_Last(tagId, orderByComparator); 215 } 216 217 /** 218 * Returns the last asset tag stats in the ordered set where tagId = ?. 219 * 220 * @param tagId the tag ID 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 223 * @throws SystemException if a system exception occurred 224 */ 225 public static com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_Last( 226 long tagId, 227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return getPersistence().fetchByTagId_Last(tagId, orderByComparator); 230 } 231 232 /** 233 * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = ?. 234 * 235 * @param tagStatsId the primary key of the current asset tag stats 236 * @param tagId the tag ID 237 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 238 * @return the previous, current, and next asset tag stats 239 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 240 * @throws SystemException if a system exception occurred 241 */ 242 public static com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext( 243 long tagStatsId, long tagId, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.kernel.exception.SystemException, 246 com.liferay.portlet.asset.NoSuchTagStatsException { 247 return getPersistence() 248 .findByTagId_PrevAndNext(tagStatsId, tagId, orderByComparator); 249 } 250 251 /** 252 * Removes all the asset tag statses where tagId = ? from the database. 253 * 254 * @param tagId the tag ID 255 * @throws SystemException if a system exception occurred 256 */ 257 public static void removeByTagId(long tagId) 258 throws com.liferay.portal.kernel.exception.SystemException { 259 getPersistence().removeByTagId(tagId); 260 } 261 262 /** 263 * Returns the number of asset tag statses where tagId = ?. 264 * 265 * @param tagId the tag ID 266 * @return the number of matching asset tag statses 267 * @throws SystemException if a system exception occurred 268 */ 269 public static int countByTagId(long tagId) 270 throws com.liferay.portal.kernel.exception.SystemException { 271 return getPersistence().countByTagId(tagId); 272 } 273 274 /** 275 * Returns all the asset tag statses where classNameId = ?. 276 * 277 * @param classNameId the class name ID 278 * @return the matching asset tag statses 279 * @throws SystemException if a system exception occurred 280 */ 281 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId( 282 long classNameId) 283 throws com.liferay.portal.kernel.exception.SystemException { 284 return getPersistence().findByClassNameId(classNameId); 285 } 286 287 /** 288 * Returns a range of all the asset tag statses where classNameId = ?. 289 * 290 * <p> 291 * 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. 292 * </p> 293 * 294 * @param classNameId the class name ID 295 * @param start the lower bound of the range of asset tag statses 296 * @param end the upper bound of the range of asset tag statses (not inclusive) 297 * @return the range of matching asset tag statses 298 * @throws SystemException if a system exception occurred 299 */ 300 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId( 301 long classNameId, int start, int end) 302 throws com.liferay.portal.kernel.exception.SystemException { 303 return getPersistence().findByClassNameId(classNameId, start, end); 304 } 305 306 /** 307 * Returns an ordered range of all the asset tag statses where classNameId = ?. 308 * 309 * <p> 310 * 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. 311 * </p> 312 * 313 * @param classNameId the class name ID 314 * @param start the lower bound of the range of asset tag statses 315 * @param end the upper bound of the range of asset tag statses (not inclusive) 316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 317 * @return the ordered range of matching asset tag statses 318 * @throws SystemException if a system exception occurred 319 */ 320 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId( 321 long classNameId, int start, int end, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException { 324 return getPersistence() 325 .findByClassNameId(classNameId, start, end, orderByComparator); 326 } 327 328 /** 329 * Returns the first asset tag stats in the ordered set where classNameId = ?. 330 * 331 * @param classNameId the class name ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the first matching asset tag stats 334 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First( 338 long classNameId, 339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.asset.NoSuchTagStatsException { 342 return getPersistence() 343 .findByClassNameId_First(classNameId, orderByComparator); 344 } 345 346 /** 347 * Returns the first asset tag stats in the ordered set where classNameId = ?. 348 * 349 * @param classNameId the class name ID 350 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 351 * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_First( 355 long classNameId, 356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 357 throws com.liferay.portal.kernel.exception.SystemException { 358 return getPersistence() 359 .fetchByClassNameId_First(classNameId, orderByComparator); 360 } 361 362 /** 363 * Returns the last asset tag stats in the ordered set where classNameId = ?. 364 * 365 * @param classNameId the class name ID 366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 367 * @return the last matching asset tag stats 368 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 369 * @throws SystemException if a system exception occurred 370 */ 371 public static com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last( 372 long classNameId, 373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 374 throws com.liferay.portal.kernel.exception.SystemException, 375 com.liferay.portlet.asset.NoSuchTagStatsException { 376 return getPersistence() 377 .findByClassNameId_Last(classNameId, orderByComparator); 378 } 379 380 /** 381 * Returns the last asset tag stats in the ordered set where classNameId = ?. 382 * 383 * @param classNameId the class name ID 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 386 * @throws SystemException if a system exception occurred 387 */ 388 public static com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_Last( 389 long classNameId, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.kernel.exception.SystemException { 392 return getPersistence() 393 .fetchByClassNameId_Last(classNameId, orderByComparator); 394 } 395 396 /** 397 * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = ?. 398 * 399 * @param tagStatsId the primary key of the current asset tag stats 400 * @param classNameId the class name ID 401 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 402 * @return the previous, current, and next asset tag stats 403 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 404 * @throws SystemException if a system exception occurred 405 */ 406 public static com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext( 407 long tagStatsId, long classNameId, 408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 409 throws com.liferay.portal.kernel.exception.SystemException, 410 com.liferay.portlet.asset.NoSuchTagStatsException { 411 return getPersistence() 412 .findByClassNameId_PrevAndNext(tagStatsId, classNameId, 413 orderByComparator); 414 } 415 416 /** 417 * Removes all the asset tag statses where classNameId = ? from the database. 418 * 419 * @param classNameId the class name ID 420 * @throws SystemException if a system exception occurred 421 */ 422 public static void removeByClassNameId(long classNameId) 423 throws com.liferay.portal.kernel.exception.SystemException { 424 getPersistence().removeByClassNameId(classNameId); 425 } 426 427 /** 428 * Returns the number of asset tag statses where classNameId = ?. 429 * 430 * @param classNameId the class name ID 431 * @return the number of matching asset tag statses 432 * @throws SystemException if a system exception occurred 433 */ 434 public static int countByClassNameId(long classNameId) 435 throws com.liferay.portal.kernel.exception.SystemException { 436 return getPersistence().countByClassNameId(classNameId); 437 } 438 439 /** 440 * Returns the asset tag stats where tagId = ? and classNameId = ? or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found. 441 * 442 * @param tagId the tag ID 443 * @param classNameId the class name ID 444 * @return the matching asset tag stats 445 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.asset.model.AssetTagStats findByT_C( 449 long tagId, long classNameId) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.asset.NoSuchTagStatsException { 452 return getPersistence().findByT_C(tagId, classNameId); 453 } 454 455 /** 456 * Returns the asset tag stats where tagId = ? and classNameId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 457 * 458 * @param tagId the tag ID 459 * @param classNameId the class name ID 460 * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C( 464 long tagId, long classNameId) 465 throws com.liferay.portal.kernel.exception.SystemException { 466 return getPersistence().fetchByT_C(tagId, classNameId); 467 } 468 469 /** 470 * Returns the asset tag stats where tagId = ? and classNameId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 471 * 472 * @param tagId the tag ID 473 * @param classNameId the class name ID 474 * @param retrieveFromCache whether to use the finder cache 475 * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 476 * @throws SystemException if a system exception occurred 477 */ 478 public static com.liferay.portlet.asset.model.AssetTagStats fetchByT_C( 479 long tagId, long classNameId, boolean retrieveFromCache) 480 throws com.liferay.portal.kernel.exception.SystemException { 481 return getPersistence().fetchByT_C(tagId, classNameId, retrieveFromCache); 482 } 483 484 /** 485 * Removes the asset tag stats where tagId = ? and classNameId = ? from the database. 486 * 487 * @param tagId the tag ID 488 * @param classNameId the class name ID 489 * @return the asset tag stats that was removed 490 * @throws SystemException if a system exception occurred 491 */ 492 public static com.liferay.portlet.asset.model.AssetTagStats removeByT_C( 493 long tagId, long classNameId) 494 throws com.liferay.portal.kernel.exception.SystemException, 495 com.liferay.portlet.asset.NoSuchTagStatsException { 496 return getPersistence().removeByT_C(tagId, classNameId); 497 } 498 499 /** 500 * Returns the number of asset tag statses where tagId = ? and classNameId = ?. 501 * 502 * @param tagId the tag ID 503 * @param classNameId the class name ID 504 * @return the number of matching asset tag statses 505 * @throws SystemException if a system exception occurred 506 */ 507 public static int countByT_C(long tagId, long classNameId) 508 throws com.liferay.portal.kernel.exception.SystemException { 509 return getPersistence().countByT_C(tagId, classNameId); 510 } 511 512 /** 513 * Caches the asset tag stats in the entity cache if it is enabled. 514 * 515 * @param assetTagStats the asset tag stats 516 */ 517 public static void cacheResult( 518 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) { 519 getPersistence().cacheResult(assetTagStats); 520 } 521 522 /** 523 * Caches the asset tag statses in the entity cache if it is enabled. 524 * 525 * @param assetTagStatses the asset tag statses 526 */ 527 public static void cacheResult( 528 java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses) { 529 getPersistence().cacheResult(assetTagStatses); 530 } 531 532 /** 533 * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database. 534 * 535 * @param tagStatsId the primary key for the new asset tag stats 536 * @return the new asset tag stats 537 */ 538 public static com.liferay.portlet.asset.model.AssetTagStats create( 539 long tagStatsId) { 540 return getPersistence().create(tagStatsId); 541 } 542 543 /** 544 * Removes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners. 545 * 546 * @param tagStatsId the primary key of the asset tag stats 547 * @return the asset tag stats that was removed 548 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public static com.liferay.portlet.asset.model.AssetTagStats remove( 552 long tagStatsId) 553 throws com.liferay.portal.kernel.exception.SystemException, 554 com.liferay.portlet.asset.NoSuchTagStatsException { 555 return getPersistence().remove(tagStatsId); 556 } 557 558 public static com.liferay.portlet.asset.model.AssetTagStats updateImpl( 559 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) 560 throws com.liferay.portal.kernel.exception.SystemException { 561 return getPersistence().updateImpl(assetTagStats); 562 } 563 564 /** 565 * Returns the asset tag stats with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found. 566 * 567 * @param tagStatsId the primary key of the asset tag stats 568 * @return the asset tag stats 569 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 570 * @throws SystemException if a system exception occurred 571 */ 572 public static com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey( 573 long tagStatsId) 574 throws com.liferay.portal.kernel.exception.SystemException, 575 com.liferay.portlet.asset.NoSuchTagStatsException { 576 return getPersistence().findByPrimaryKey(tagStatsId); 577 } 578 579 /** 580 * Returns the asset tag stats with the primary key or returns <code>null</code> if it could not be found. 581 * 582 * @param tagStatsId the primary key of the asset tag stats 583 * @return the asset tag stats, or <code>null</code> if a asset tag stats with the primary key could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public static com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey( 587 long tagStatsId) 588 throws com.liferay.portal.kernel.exception.SystemException { 589 return getPersistence().fetchByPrimaryKey(tagStatsId); 590 } 591 592 /** 593 * Returns all the asset tag statses. 594 * 595 * @return the asset tag statses 596 * @throws SystemException if a system exception occurred 597 */ 598 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll() 599 throws com.liferay.portal.kernel.exception.SystemException { 600 return getPersistence().findAll(); 601 } 602 603 /** 604 * Returns a range of all the asset tag statses. 605 * 606 * <p> 607 * 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. 608 * </p> 609 * 610 * @param start the lower bound of the range of asset tag statses 611 * @param end the upper bound of the range of asset tag statses (not inclusive) 612 * @return the range of asset tag statses 613 * @throws SystemException if a system exception occurred 614 */ 615 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll( 616 int start, int end) 617 throws com.liferay.portal.kernel.exception.SystemException { 618 return getPersistence().findAll(start, end); 619 } 620 621 /** 622 * Returns an ordered range of all the asset tag statses. 623 * 624 * <p> 625 * 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. 626 * </p> 627 * 628 * @param start the lower bound of the range of asset tag statses 629 * @param end the upper bound of the range of asset tag statses (not inclusive) 630 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 631 * @return the ordered range of asset tag statses 632 * @throws SystemException if a system exception occurred 633 */ 634 public static java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll( 635 int start, int end, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException { 638 return getPersistence().findAll(start, end, orderByComparator); 639 } 640 641 /** 642 * Removes all the asset tag statses from the database. 643 * 644 * @throws SystemException if a system exception occurred 645 */ 646 public static void removeAll() 647 throws com.liferay.portal.kernel.exception.SystemException { 648 getPersistence().removeAll(); 649 } 650 651 /** 652 * Returns the number of asset tag statses. 653 * 654 * @return the number of asset tag statses 655 * @throws SystemException if a system exception occurred 656 */ 657 public static int countAll() 658 throws com.liferay.portal.kernel.exception.SystemException { 659 return getPersistence().countAll(); 660 } 661 662 public static AssetTagStatsPersistence getPersistence() { 663 if (_persistence == null) { 664 _persistence = (AssetTagStatsPersistence)PortalBeanLocatorUtil.locate(AssetTagStatsPersistence.class.getName()); 665 666 ReferenceRegistry.registerReference(AssetTagStatsUtil.class, 667 "_persistence"); 668 } 669 670 return _persistence; 671 } 672 673 /** 674 * @deprecated As of 6.2.0 675 */ 676 public void setPersistence(AssetTagStatsPersistence persistence) { 677 } 678 679 private static AssetTagStatsPersistence _persistence; 680 }