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