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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.asset.model.AssetTagStats; 020 021 /** 022 * The persistence interface for the asset tag stats service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see AssetTagStatsPersistenceImpl 030 * @see AssetTagStatsUtil 031 * @generated 032 */ 033 public interface AssetTagStatsPersistence extends BasePersistence<AssetTagStats> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link AssetTagStatsUtil} to access the asset tag stats persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the asset tag statses where tagId = ?. 042 * 043 * @param tagId the tag ID 044 * @return the matching asset tag statses 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId( 048 long tagId) throws com.liferay.portal.kernel.exception.SystemException; 049 050 /** 051 * Returns a range of all the asset tag statses where tagId = ?. 052 * 053 * <p> 054 * 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. 055 * </p> 056 * 057 * @param tagId the tag ID 058 * @param start the lower bound of the range of asset tag statses 059 * @param end the upper bound of the range of asset tag statses (not inclusive) 060 * @return the range of matching asset tag statses 061 * @throws SystemException if a system exception occurred 062 */ 063 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId( 064 long tagId, int start, int end) 065 throws com.liferay.portal.kernel.exception.SystemException; 066 067 /** 068 * Returns an ordered range of all the asset tag statses where tagId = ?. 069 * 070 * <p> 071 * 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. 072 * </p> 073 * 074 * @param tagId the tag ID 075 * @param start the lower bound of the range of asset tag statses 076 * @param end the upper bound of the range of asset tag statses (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching asset tag statses 079 * @throws SystemException if a system exception occurred 080 */ 081 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByTagId( 082 long tagId, int start, int end, 083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 084 throws com.liferay.portal.kernel.exception.SystemException; 085 086 /** 087 * Returns the first asset tag stats in the ordered set where tagId = ?. 088 * 089 * @param tagId the tag ID 090 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 091 * @return the first matching asset tag stats 092 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.asset.model.AssetTagStats findByTagId_First( 096 long tagId, 097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 098 throws com.liferay.portal.kernel.exception.SystemException, 099 com.liferay.portlet.asset.NoSuchTagStatsException; 100 101 /** 102 * Returns the first asset tag stats in the ordered set where tagId = ?. 103 * 104 * @param tagId the tag ID 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 107 * @throws SystemException if a system exception occurred 108 */ 109 public com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_First( 110 long tagId, 111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 112 throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns the last asset tag stats in the ordered set where tagId = ?. 116 * 117 * @param tagId the tag ID 118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 119 * @return the last matching asset tag stats 120 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 121 * @throws SystemException if a system exception occurred 122 */ 123 public com.liferay.portlet.asset.model.AssetTagStats findByTagId_Last( 124 long tagId, 125 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 126 throws com.liferay.portal.kernel.exception.SystemException, 127 com.liferay.portlet.asset.NoSuchTagStatsException; 128 129 /** 130 * Returns the last asset tag stats in the ordered set where tagId = ?. 131 * 132 * @param tagId the tag ID 133 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 134 * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 135 * @throws SystemException if a system exception occurred 136 */ 137 public com.liferay.portlet.asset.model.AssetTagStats fetchByTagId_Last( 138 long tagId, 139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 140 throws com.liferay.portal.kernel.exception.SystemException; 141 142 /** 143 * Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = ?. 144 * 145 * @param tagStatsId the primary key of the current asset tag stats 146 * @param tagId the tag ID 147 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 148 * @return the previous, current, and next asset tag stats 149 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public com.liferay.portlet.asset.model.AssetTagStats[] findByTagId_PrevAndNext( 153 long tagStatsId, long tagId, 154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.asset.NoSuchTagStatsException; 157 158 /** 159 * Removes all the asset tag statses where tagId = ? from the database. 160 * 161 * @param tagId the tag ID 162 * @throws SystemException if a system exception occurred 163 */ 164 public void removeByTagId(long tagId) 165 throws com.liferay.portal.kernel.exception.SystemException; 166 167 /** 168 * Returns the number of asset tag statses where tagId = ?. 169 * 170 * @param tagId the tag ID 171 * @return the number of matching asset tag statses 172 * @throws SystemException if a system exception occurred 173 */ 174 public int countByTagId(long tagId) 175 throws com.liferay.portal.kernel.exception.SystemException; 176 177 /** 178 * Returns all the asset tag statses where classNameId = ?. 179 * 180 * @param classNameId the class name ID 181 * @return the matching asset tag statses 182 * @throws SystemException if a system exception occurred 183 */ 184 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId( 185 long classNameId) 186 throws com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Returns a range of all the asset tag statses where classNameId = ?. 190 * 191 * <p> 192 * 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. 193 * </p> 194 * 195 * @param classNameId the class name ID 196 * @param start the lower bound of the range of asset tag statses 197 * @param end the upper bound of the range of asset tag statses (not inclusive) 198 * @return the range of matching asset tag statses 199 * @throws SystemException if a system exception occurred 200 */ 201 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId( 202 long classNameId, int start, int end) 203 throws com.liferay.portal.kernel.exception.SystemException; 204 205 /** 206 * Returns an ordered range of all the asset tag statses where classNameId = ?. 207 * 208 * <p> 209 * 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. 210 * </p> 211 * 212 * @param classNameId the class name ID 213 * @param start the lower bound of the range of asset tag statses 214 * @param end the upper bound of the range of asset tag statses (not inclusive) 215 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 216 * @return the ordered range of matching asset tag statses 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findByClassNameId( 220 long classNameId, int start, int end, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException; 223 224 /** 225 * Returns the first asset tag stats in the ordered set where classNameId = ?. 226 * 227 * @param classNameId the class name ID 228 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 229 * @return the first matching asset tag stats 230 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 231 * @throws SystemException if a system exception occurred 232 */ 233 public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_First( 234 long classNameId, 235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 236 throws com.liferay.portal.kernel.exception.SystemException, 237 com.liferay.portlet.asset.NoSuchTagStatsException; 238 239 /** 240 * Returns the first asset tag stats in the ordered set where classNameId = ?. 241 * 242 * @param classNameId the class name ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the first matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_First( 248 long classNameId, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the last asset tag stats in the ordered set where classNameId = ?. 254 * 255 * @param classNameId the class name ID 256 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 257 * @return the last matching asset tag stats 258 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.asset.model.AssetTagStats findByClassNameId_Last( 262 long classNameId, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.asset.NoSuchTagStatsException; 266 267 /** 268 * Returns the last asset tag stats in the ordered set where classNameId = ?. 269 * 270 * @param classNameId the class name ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the last matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public com.liferay.portlet.asset.model.AssetTagStats fetchByClassNameId_Last( 276 long classNameId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException; 279 280 /** 281 * Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = ?. 282 * 283 * @param tagStatsId the primary key of the current asset tag stats 284 * @param classNameId the class name ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the previous, current, and next asset tag stats 287 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public com.liferay.portlet.asset.model.AssetTagStats[] findByClassNameId_PrevAndNext( 291 long tagStatsId, long classNameId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.asset.NoSuchTagStatsException; 295 296 /** 297 * Removes all the asset tag statses where classNameId = ? from the database. 298 * 299 * @param classNameId the class name ID 300 * @throws SystemException if a system exception occurred 301 */ 302 public void removeByClassNameId(long classNameId) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the number of asset tag statses where classNameId = ?. 307 * 308 * @param classNameId the class name ID 309 * @return the number of matching asset tag statses 310 * @throws SystemException if a system exception occurred 311 */ 312 public int countByClassNameId(long classNameId) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the asset tag stats where tagId = ? and classNameId = ? or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found. 317 * 318 * @param tagId the tag ID 319 * @param classNameId the class name ID 320 * @return the matching asset tag stats 321 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a matching asset tag stats could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.asset.model.AssetTagStats findByT_C(long tagId, 325 long classNameId) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.asset.NoSuchTagStatsException; 328 329 /** 330 * Returns the asset tag stats where tagId = ? and classNameId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param tagId the tag ID 333 * @param classNameId the class name ID 334 * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C( 338 long tagId, long classNameId) 339 throws com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * 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. 343 * 344 * @param tagId the tag ID 345 * @param classNameId the class name ID 346 * @param retrieveFromCache whether to use the finder cache 347 * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C( 351 long tagId, long classNameId, boolean retrieveFromCache) 352 throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Removes the asset tag stats where tagId = ? and classNameId = ? from the database. 356 * 357 * @param tagId the tag ID 358 * @param classNameId the class name ID 359 * @return the asset tag stats that was removed 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.asset.model.AssetTagStats removeByT_C( 363 long tagId, long classNameId) 364 throws com.liferay.portal.kernel.exception.SystemException, 365 com.liferay.portlet.asset.NoSuchTagStatsException; 366 367 /** 368 * Returns the number of asset tag statses where tagId = ? and classNameId = ?. 369 * 370 * @param tagId the tag ID 371 * @param classNameId the class name ID 372 * @return the number of matching asset tag statses 373 * @throws SystemException if a system exception occurred 374 */ 375 public int countByT_C(long tagId, long classNameId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Caches the asset tag stats in the entity cache if it is enabled. 380 * 381 * @param assetTagStats the asset tag stats 382 */ 383 public void cacheResult( 384 com.liferay.portlet.asset.model.AssetTagStats assetTagStats); 385 386 /** 387 * Caches the asset tag statses in the entity cache if it is enabled. 388 * 389 * @param assetTagStatses the asset tag statses 390 */ 391 public void cacheResult( 392 java.util.List<com.liferay.portlet.asset.model.AssetTagStats> assetTagStatses); 393 394 /** 395 * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database. 396 * 397 * @param tagStatsId the primary key for the new asset tag stats 398 * @return the new asset tag stats 399 */ 400 public com.liferay.portlet.asset.model.AssetTagStats create(long tagStatsId); 401 402 /** 403 * Removes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners. 404 * 405 * @param tagStatsId the primary key of the asset tag stats 406 * @return the asset tag stats that was removed 407 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 408 * @throws SystemException if a system exception occurred 409 */ 410 public com.liferay.portlet.asset.model.AssetTagStats remove(long tagStatsId) 411 throws com.liferay.portal.kernel.exception.SystemException, 412 com.liferay.portlet.asset.NoSuchTagStatsException; 413 414 public com.liferay.portlet.asset.model.AssetTagStats updateImpl( 415 com.liferay.portlet.asset.model.AssetTagStats assetTagStats) 416 throws com.liferay.portal.kernel.exception.SystemException; 417 418 /** 419 * Returns the asset tag stats with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagStatsException} if it could not be found. 420 * 421 * @param tagStatsId the primary key of the asset tag stats 422 * @return the asset tag stats 423 * @throws com.liferay.portlet.asset.NoSuchTagStatsException if a asset tag stats with the primary key could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public com.liferay.portlet.asset.model.AssetTagStats findByPrimaryKey( 427 long tagStatsId) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.asset.NoSuchTagStatsException; 430 431 /** 432 * Returns the asset tag stats with the primary key or returns <code>null</code> if it could not be found. 433 * 434 * @param tagStatsId the primary key of the asset tag stats 435 * @return the asset tag stats, or <code>null</code> if a asset tag stats with the primary key could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public com.liferay.portlet.asset.model.AssetTagStats fetchByPrimaryKey( 439 long tagStatsId) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Returns all the asset tag statses. 444 * 445 * @return the asset tag statses 446 * @throws SystemException if a system exception occurred 447 */ 448 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll() 449 throws com.liferay.portal.kernel.exception.SystemException; 450 451 /** 452 * Returns a range of all the asset tag statses. 453 * 454 * <p> 455 * 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. 456 * </p> 457 * 458 * @param start the lower bound of the range of asset tag statses 459 * @param end the upper bound of the range of asset tag statses (not inclusive) 460 * @return the range of asset tag statses 461 * @throws SystemException if a system exception occurred 462 */ 463 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll( 464 int start, int end) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns an ordered range of all the asset tag statses. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param start the lower bound of the range of asset tag statses 475 * @param end the upper bound of the range of asset tag statses (not inclusive) 476 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 477 * @return the ordered range of asset tag statses 478 * @throws SystemException if a system exception occurred 479 */ 480 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll( 481 int start, int end, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.kernel.exception.SystemException; 484 485 /** 486 * Removes all the asset tag statses from the database. 487 * 488 * @throws SystemException if a system exception occurred 489 */ 490 public void removeAll() 491 throws com.liferay.portal.kernel.exception.SystemException; 492 493 /** 494 * Returns the number of asset tag statses. 495 * 496 * @return the number of asset tag statses 497 * @throws SystemException if a system exception occurred 498 */ 499 public int countAll() 500 throws com.liferay.portal.kernel.exception.SystemException; 501 }