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