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 obc)
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 obc)
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 obc)
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 obc)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public void removeByProductEntryId(long productEntryId)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public void removeByThumbnailId(long thumbnailId)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
150 
151     public void removeByFullImageId(long fullImageId)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
154 
155     public void removeByP_P(long productEntryId, int priority)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
158 
159     public void removeAll()
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public int countByProductEntryId(long productEntryId)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     public int countByThumbnailId(long thumbnailId)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public int countByFullImageId(long fullImageId)
169         throws com.liferay.portal.kernel.exception.SystemException;
170 
171     public int countByP_P(long productEntryId, int priority)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public int countAll()
175         throws com.liferay.portal.kernel.exception.SystemException;
176 }