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