001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 to cache 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 to cache 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 to remove 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 * Finds 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 to find 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 * Finds 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 to find 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 * Finds all the asset tag statses where tagId = ?. 108 * 109 * @param tagId the tag ID to search with 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 * Finds 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 to search with 124 * @param start the lower bound of the range of asset tag statses to return 125 * @param end the upper bound of the range of asset tag statses to return (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 * Finds 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 to search with 141 * @param start the lower bound of the range of asset tag statses to return 142 * @param end the upper bound of the range of asset tag statses to return (not inclusive) 143 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 160 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 179 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 199 * @param orderByComparator the comparator to order the set by 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 * Finds all the asset tag statses where classNameId = ?. 212 * 213 * @param classNameId the class name ID to search with 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 * Finds 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 to search with 229 * @param start the lower bound of the range of asset tag statses to return 230 * @param end the upper bound of the range of asset tag statses to return (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 * Finds 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 to search with 246 * @param start the lower bound of the range of asset tag statses to return 247 * @param end the upper bound of the range of asset tag statses to return (not inclusive) 248 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 265 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 284 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 304 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 319 * @param classNameId the class name ID to search with 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 * Finds 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 to search with 333 * @param classNameId the class name ID to search with 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 * 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. 343 * 344 * @param tagId the tag ID to search with 345 * @param classNameId the class name ID to search with 346 * @return the matching asset tag stats, or <code>null</code> if a matching asset tag stats could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public com.liferay.portlet.asset.model.AssetTagStats fetchByT_C( 350 long tagId, long classNameId, boolean retrieveFromCache) 351 throws com.liferay.portal.kernel.exception.SystemException; 352 353 /** 354 * Finds all the asset tag statses. 355 * 356 * @return the asset tag statses 357 * @throws SystemException if a system exception occurred 358 */ 359 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll() 360 throws com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Finds a range of all the asset tag statses. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param start the lower bound of the range of asset tag statses to return 370 * @param end the upper bound of the range of asset tag statses to return (not inclusive) 371 * @return the range of asset tag statses 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll( 375 int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Finds an ordered range of all the asset tag statses. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param start the lower bound of the range of asset tag statses to return 386 * @param end the upper bound of the range of asset tag statses to return (not inclusive) 387 * @param orderByComparator the comparator to order the results by 388 * @return the ordered range of asset tag statses 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> findAll( 392 int start, int end, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Removes all the asset tag statses where tagId = ? from the database. 398 * 399 * @param tagId the tag ID to search with 400 * @throws SystemException if a system exception occurred 401 */ 402 public void removeByTagId(long tagId) 403 throws com.liferay.portal.kernel.exception.SystemException; 404 405 /** 406 * Removes all the asset tag statses where classNameId = ? from the database. 407 * 408 * @param classNameId the class name ID to search with 409 * @throws SystemException if a system exception occurred 410 */ 411 public void removeByClassNameId(long classNameId) 412 throws com.liferay.portal.kernel.exception.SystemException; 413 414 /** 415 * Removes the asset tag stats where tagId = ? and classNameId = ? from the database. 416 * 417 * @param tagId the tag ID to search with 418 * @param classNameId the class name ID to search with 419 * @throws SystemException if a system exception occurred 420 */ 421 public void removeByT_C(long tagId, long classNameId) 422 throws com.liferay.portal.kernel.exception.SystemException, 423 com.liferay.portlet.asset.NoSuchTagStatsException; 424 425 /** 426 * Removes all the asset tag statses from the database. 427 * 428 * @throws SystemException if a system exception occurred 429 */ 430 public void removeAll() 431 throws com.liferay.portal.kernel.exception.SystemException; 432 433 /** 434 * Counts all the asset tag statses where tagId = ?. 435 * 436 * @param tagId the tag ID to search with 437 * @return the number of matching asset tag statses 438 * @throws SystemException if a system exception occurred 439 */ 440 public int countByTagId(long tagId) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Counts all the asset tag statses where classNameId = ?. 445 * 446 * @param classNameId the class name ID to search with 447 * @return the number of matching asset tag statses 448 * @throws SystemException if a system exception occurred 449 */ 450 public int countByClassNameId(long classNameId) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Counts all the asset tag statses where tagId = ? and classNameId = ?. 455 * 456 * @param tagId the tag ID to search with 457 * @param classNameId the class name ID to search with 458 * @return the number of matching asset tag statses 459 * @throws SystemException if a system exception occurred 460 */ 461 public int countByT_C(long tagId, long classNameId) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Counts all the asset tag statses. 466 * 467 * @return the number of asset tag statses 468 * @throws SystemException if a system exception occurred 469 */ 470 public int countAll() 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 public AssetTagStats remove(AssetTagStats assetTagStats) 474 throws SystemException; 475 }