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