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