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