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.softwarecatalog.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot; 022 023 /** 024 * The persistence interface for the s c product screenshot 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 com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductScreenshotPersistenceImpl 032 * @see SCProductScreenshotUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link SCProductScreenshotUtil} to access the s c product screenshot persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the s c product screenshots where productEntryId = ?. 045 * 046 * @param productEntryId the product entry ID 047 * @return the matching s c product screenshots 048 */ 049 public java.util.List<SCProductScreenshot> findByProductEntryId( 050 long productEntryId); 051 052 /** 053 * Returns a range of all the s c product screenshots where productEntryId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SCProductScreenshotModelImpl}. 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 productEntryId the product entry ID 060 * @param start the lower bound of the range of s c product screenshots 061 * @param end the upper bound of the range of s c product screenshots (not inclusive) 062 * @return the range of matching s c product screenshots 063 */ 064 public java.util.List<SCProductScreenshot> findByProductEntryId( 065 long productEntryId, int start, int end); 066 067 /** 068 * Returns an ordered range of all the s c product screenshots where productEntryId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SCProductScreenshotModelImpl}. 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 productEntryId the product entry ID 075 * @param start the lower bound of the range of s c product screenshots 076 * @param end the upper bound of the range of s c product screenshots (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching s c product screenshots 079 */ 080 public java.util.List<SCProductScreenshot> findByProductEntryId( 081 long productEntryId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator); 083 084 /** 085 * Returns an ordered range of all the s c product screenshots where productEntryId = ?. 086 * 087 * <p> 088 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SCProductScreenshotModelImpl}. 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. 089 * </p> 090 * 091 * @param productEntryId the product entry ID 092 * @param start the lower bound of the range of s c product screenshots 093 * @param end the upper bound of the range of s c product screenshots (not inclusive) 094 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 095 * @param retrieveFromCache whether to retrieve from the finder cache 096 * @return the ordered range of matching s c product screenshots 097 */ 098 public java.util.List<SCProductScreenshot> findByProductEntryId( 099 long productEntryId, int start, int end, 100 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator, 101 boolean retrieveFromCache); 102 103 /** 104 * Returns the first s c product screenshot in the ordered set where productEntryId = ?. 105 * 106 * @param productEntryId the product entry ID 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the first matching s c product screenshot 109 * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found 110 */ 111 public SCProductScreenshot findByProductEntryId_First(long productEntryId, 112 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator) 113 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 114 115 /** 116 * Returns the first s c product screenshot in the ordered set where productEntryId = ?. 117 * 118 * @param productEntryId the product entry ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the first matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 121 */ 122 public SCProductScreenshot fetchByProductEntryId_First( 123 long productEntryId, 124 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator); 125 126 /** 127 * Returns the last s c product screenshot in the ordered set where productEntryId = ?. 128 * 129 * @param productEntryId the product entry ID 130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 131 * @return the last matching s c product screenshot 132 * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found 133 */ 134 public SCProductScreenshot findByProductEntryId_Last(long productEntryId, 135 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator) 136 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 137 138 /** 139 * Returns the last s c product screenshot in the ordered set where productEntryId = ?. 140 * 141 * @param productEntryId the product entry ID 142 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 143 * @return the last matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 144 */ 145 public SCProductScreenshot fetchByProductEntryId_Last(long productEntryId, 146 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator); 147 148 /** 149 * Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?. 150 * 151 * @param productScreenshotId the primary key of the current s c product screenshot 152 * @param productEntryId the product entry ID 153 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 154 * @return the previous, current, and next s c product screenshot 155 * @throws NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 156 */ 157 public SCProductScreenshot[] findByProductEntryId_PrevAndNext( 158 long productScreenshotId, long productEntryId, 159 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator) 160 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 161 162 /** 163 * Removes all the s c product screenshots where productEntryId = ? from the database. 164 * 165 * @param productEntryId the product entry ID 166 */ 167 public void removeByProductEntryId(long productEntryId); 168 169 /** 170 * Returns the number of s c product screenshots where productEntryId = ?. 171 * 172 * @param productEntryId the product entry ID 173 * @return the number of matching s c product screenshots 174 */ 175 public int countByProductEntryId(long productEntryId); 176 177 /** 178 * Returns the s c product screenshot where thumbnailId = ? or throws a {@link NoSuchProductScreenshotException} if it could not be found. 179 * 180 * @param thumbnailId the thumbnail ID 181 * @return the matching s c product screenshot 182 * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found 183 */ 184 public SCProductScreenshot findByThumbnailId(long thumbnailId) 185 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 186 187 /** 188 * Returns the s c product screenshot where thumbnailId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 189 * 190 * @param thumbnailId the thumbnail ID 191 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 192 */ 193 public SCProductScreenshot fetchByThumbnailId(long thumbnailId); 194 195 /** 196 * Returns the s c product screenshot where thumbnailId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 197 * 198 * @param thumbnailId the thumbnail ID 199 * @param retrieveFromCache whether to retrieve from the finder cache 200 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 201 */ 202 public SCProductScreenshot fetchByThumbnailId(long thumbnailId, 203 boolean retrieveFromCache); 204 205 /** 206 * Removes the s c product screenshot where thumbnailId = ? from the database. 207 * 208 * @param thumbnailId the thumbnail ID 209 * @return the s c product screenshot that was removed 210 */ 211 public SCProductScreenshot removeByThumbnailId(long thumbnailId) 212 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 213 214 /** 215 * Returns the number of s c product screenshots where thumbnailId = ?. 216 * 217 * @param thumbnailId the thumbnail ID 218 * @return the number of matching s c product screenshots 219 */ 220 public int countByThumbnailId(long thumbnailId); 221 222 /** 223 * Returns the s c product screenshot where fullImageId = ? or throws a {@link NoSuchProductScreenshotException} if it could not be found. 224 * 225 * @param fullImageId the full image ID 226 * @return the matching s c product screenshot 227 * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found 228 */ 229 public SCProductScreenshot findByFullImageId(long fullImageId) 230 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 231 232 /** 233 * Returns the s c product screenshot where fullImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 234 * 235 * @param fullImageId the full image ID 236 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 237 */ 238 public SCProductScreenshot fetchByFullImageId(long fullImageId); 239 240 /** 241 * Returns the s c product screenshot where fullImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 242 * 243 * @param fullImageId the full image ID 244 * @param retrieveFromCache whether to retrieve from the finder cache 245 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 246 */ 247 public SCProductScreenshot fetchByFullImageId(long fullImageId, 248 boolean retrieveFromCache); 249 250 /** 251 * Removes the s c product screenshot where fullImageId = ? from the database. 252 * 253 * @param fullImageId the full image ID 254 * @return the s c product screenshot that was removed 255 */ 256 public SCProductScreenshot removeByFullImageId(long fullImageId) 257 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 258 259 /** 260 * Returns the number of s c product screenshots where fullImageId = ?. 261 * 262 * @param fullImageId the full image ID 263 * @return the number of matching s c product screenshots 264 */ 265 public int countByFullImageId(long fullImageId); 266 267 /** 268 * Returns the s c product screenshot where productEntryId = ? and priority = ? or throws a {@link NoSuchProductScreenshotException} if it could not be found. 269 * 270 * @param productEntryId the product entry ID 271 * @param priority the priority 272 * @return the matching s c product screenshot 273 * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found 274 */ 275 public SCProductScreenshot findByP_P(long productEntryId, int priority) 276 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 277 278 /** 279 * Returns the s c product screenshot where productEntryId = ? and priority = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 280 * 281 * @param productEntryId the product entry ID 282 * @param priority the priority 283 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 284 */ 285 public SCProductScreenshot fetchByP_P(long productEntryId, int priority); 286 287 /** 288 * Returns the s c product screenshot where productEntryId = ? and priority = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 289 * 290 * @param productEntryId the product entry ID 291 * @param priority the priority 292 * @param retrieveFromCache whether to retrieve from the finder cache 293 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 294 */ 295 public SCProductScreenshot fetchByP_P(long productEntryId, int priority, 296 boolean retrieveFromCache); 297 298 /** 299 * Removes the s c product screenshot where productEntryId = ? and priority = ? from the database. 300 * 301 * @param productEntryId the product entry ID 302 * @param priority the priority 303 * @return the s c product screenshot that was removed 304 */ 305 public SCProductScreenshot removeByP_P(long productEntryId, int priority) 306 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 307 308 /** 309 * Returns the number of s c product screenshots where productEntryId = ? and priority = ?. 310 * 311 * @param productEntryId the product entry ID 312 * @param priority the priority 313 * @return the number of matching s c product screenshots 314 */ 315 public int countByP_P(long productEntryId, int priority); 316 317 /** 318 * Caches the s c product screenshot in the entity cache if it is enabled. 319 * 320 * @param scProductScreenshot the s c product screenshot 321 */ 322 public void cacheResult(SCProductScreenshot scProductScreenshot); 323 324 /** 325 * Caches the s c product screenshots in the entity cache if it is enabled. 326 * 327 * @param scProductScreenshots the s c product screenshots 328 */ 329 public void cacheResult( 330 java.util.List<SCProductScreenshot> scProductScreenshots); 331 332 /** 333 * Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database. 334 * 335 * @param productScreenshotId the primary key for the new s c product screenshot 336 * @return the new s c product screenshot 337 */ 338 public SCProductScreenshot create(long productScreenshotId); 339 340 /** 341 * Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners. 342 * 343 * @param productScreenshotId the primary key of the s c product screenshot 344 * @return the s c product screenshot that was removed 345 * @throws NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 346 */ 347 public SCProductScreenshot remove(long productScreenshotId) 348 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 349 350 public SCProductScreenshot updateImpl( 351 SCProductScreenshot scProductScreenshot); 352 353 /** 354 * Returns the s c product screenshot with the primary key or throws a {@link NoSuchProductScreenshotException} if it could not be found. 355 * 356 * @param productScreenshotId the primary key of the s c product screenshot 357 * @return the s c product screenshot 358 * @throws NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 359 */ 360 public SCProductScreenshot findByPrimaryKey(long productScreenshotId) 361 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 362 363 /** 364 * Returns the s c product screenshot with the primary key or returns <code>null</code> if it could not be found. 365 * 366 * @param productScreenshotId the primary key of the s c product screenshot 367 * @return the s c product screenshot, or <code>null</code> if a s c product screenshot with the primary key could not be found 368 */ 369 public SCProductScreenshot fetchByPrimaryKey(long productScreenshotId); 370 371 @Override 372 public java.util.Map<java.io.Serializable, SCProductScreenshot> fetchByPrimaryKeys( 373 java.util.Set<java.io.Serializable> primaryKeys); 374 375 /** 376 * Returns all the s c product screenshots. 377 * 378 * @return the s c product screenshots 379 */ 380 public java.util.List<SCProductScreenshot> findAll(); 381 382 /** 383 * Returns a range of all the s c product screenshots. 384 * 385 * <p> 386 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SCProductScreenshotModelImpl}. 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. 387 * </p> 388 * 389 * @param start the lower bound of the range of s c product screenshots 390 * @param end the upper bound of the range of s c product screenshots (not inclusive) 391 * @return the range of s c product screenshots 392 */ 393 public java.util.List<SCProductScreenshot> findAll(int start, int end); 394 395 /** 396 * Returns an ordered range of all the s c product screenshots. 397 * 398 * <p> 399 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SCProductScreenshotModelImpl}. 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. 400 * </p> 401 * 402 * @param start the lower bound of the range of s c product screenshots 403 * @param end the upper bound of the range of s c product screenshots (not inclusive) 404 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 405 * @return the ordered range of s c product screenshots 406 */ 407 public java.util.List<SCProductScreenshot> findAll(int start, int end, 408 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator); 409 410 /** 411 * Returns an ordered range of all the s c product screenshots. 412 * 413 * <p> 414 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SCProductScreenshotModelImpl}. 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. 415 * </p> 416 * 417 * @param start the lower bound of the range of s c product screenshots 418 * @param end the upper bound of the range of s c product screenshots (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @param retrieveFromCache whether to retrieve from the finder cache 421 * @return the ordered range of s c product screenshots 422 */ 423 public java.util.List<SCProductScreenshot> findAll(int start, int end, 424 com.liferay.portal.kernel.util.OrderByComparator<SCProductScreenshot> orderByComparator, 425 boolean retrieveFromCache); 426 427 /** 428 * Removes all the s c product screenshots from the database. 429 */ 430 public void removeAll(); 431 432 /** 433 * Returns the number of s c product screenshots. 434 * 435 * @return the number of s c product screenshots 436 */ 437 public int countAll(); 438 }