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