1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
20  
21  /**
22   * <a href="SCProductScreenshotPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SCProductScreenshotPersistenceImpl
31   * @see       SCProductScreenshotUtil
32   * @generated
33   */
34  public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
42          long productScreenshotId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
45          long productScreenshotId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
48  
49      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
50          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
55          long productScreenshotId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
58  
59      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
60          long productScreenshotId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
64          long productEntryId)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
68          long productEntryId, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
72          long productEntryId, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
77          long productEntryId,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
81  
82      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
83          long productEntryId,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
89          long productScreenshotId, long productEntryId,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
93  
94      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
95          long thumbnailId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
98  
99      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
100         long thumbnailId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
104         long thumbnailId, boolean retrieveFromCache)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
108         long fullImageId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
111 
112     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
113         long fullImageId)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
117         long fullImageId, boolean retrieveFromCache)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
121         long productEntryId, int priority)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
124 
125     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
126         long productEntryId, int priority)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
130         long productEntryId, int priority, boolean retrieveFromCache)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
137         int start, int end)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
141         int start, int end,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public void removeByProductEntryId(long productEntryId)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public void removeByThumbnailId(long thumbnailId)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
151 
152     public void removeByFullImageId(long fullImageId)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
155 
156     public void removeByP_P(long productEntryId, int priority)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
159 
160     public void removeAll()
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public int countByProductEntryId(long productEntryId)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public int countByThumbnailId(long thumbnailId)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public int countByFullImageId(long fullImageId)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public int countByP_P(long productEntryId, int priority)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public int countAll()
176         throws com.liferay.portal.kernel.exception.SystemException;
177 }