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