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