001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.service.persistence;
022:
023: /**
024: * <a href="SCProductScreenshotPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface SCProductScreenshotPersistence {
030: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
031: long productScreenshotId);
032:
033: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
034: long productScreenshotId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
037:
038: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
039: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
043: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
047: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
051: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
055: long productScreenshotId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
058:
059: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
060: long productScreenshotId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByProductEntryId(long productEntryId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByProductEntryId(long productEntryId,
067: int begin, int end)
068: throws com.liferay.portal.SystemException;
069:
070: public java.util.List findByProductEntryId(long productEntryId,
071: int begin, int end,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException;
074:
075: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
076: long productEntryId,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portal.SystemException,
079: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
080:
081: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
082: long productEntryId,
083: com.liferay.portal.kernel.util.OrderByComparator obc)
084: throws com.liferay.portal.SystemException,
085: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
086:
087: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
088: long productScreenshotId, long productEntryId,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
092:
093: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
094: long thumbnailId)
095: throws com.liferay.portal.SystemException,
096: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
097:
098: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
099: long thumbnailId) throws com.liferay.portal.SystemException;
100:
101: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
102: long fullImageId)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
105:
106: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
107: long fullImageId) throws com.liferay.portal.SystemException;
108:
109: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
110: long productEntryId, int priority)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
113:
114: public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
115: long productEntryId, int priority)
116: throws com.liferay.portal.SystemException;
117:
118: public java.util.List findWithDynamicQuery(
119: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
120: throws com.liferay.portal.SystemException;
121:
122: public java.util.List findWithDynamicQuery(
123: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
124: int begin, int end)
125: throws com.liferay.portal.SystemException;
126:
127: public java.util.List findAll()
128: throws com.liferay.portal.SystemException;
129:
130: public java.util.List findAll(int begin, int end)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findAll(int begin, int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException;
136:
137: public void removeByProductEntryId(long productEntryId)
138: throws com.liferay.portal.SystemException;
139:
140: public void removeByThumbnailId(long thumbnailId)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
143:
144: public void removeByFullImageId(long fullImageId)
145: throws com.liferay.portal.SystemException,
146: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
147:
148: public void removeByP_P(long productEntryId, int priority)
149: throws com.liferay.portal.SystemException,
150: com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
151:
152: public void removeAll() throws com.liferay.portal.SystemException;
153:
154: public int countByProductEntryId(long productEntryId)
155: throws com.liferay.portal.SystemException;
156:
157: public int countByThumbnailId(long thumbnailId)
158: throws com.liferay.portal.SystemException;
159:
160: public int countByFullImageId(long fullImageId)
161: throws com.liferay.portal.SystemException;
162:
163: public int countByP_P(long productEntryId, int priority)
164: throws com.liferay.portal.SystemException;
165:
166: public int countAll() throws com.liferay.portal.SystemException;
167: }
|