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="SCProductVersionPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface SCProductVersionPersistence {
030: public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
031: long productVersionId);
032:
033: public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
034: long productVersionId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
037:
038: public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
039: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
043: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
047: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
051: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
055: long productVersionId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
058:
059: public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
060: long productVersionId)
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.SCProductVersion findByProductEntryId_First(
076: long productEntryId,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portal.SystemException,
079: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
080:
081: public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
082: long productEntryId,
083: com.liferay.portal.kernel.util.OrderByComparator obc)
084: throws com.liferay.portal.SystemException,
085: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
086:
087: public com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
088: long productVersionId, long productEntryId,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
092:
093: public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
094: java.lang.String directDownloadURL)
095: throws com.liferay.portal.SystemException,
096: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
097:
098: public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
099: java.lang.String directDownloadURL)
100: throws com.liferay.portal.SystemException;
101:
102: public java.util.List findWithDynamicQuery(
103: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
104: throws com.liferay.portal.SystemException;
105:
106: public java.util.List findWithDynamicQuery(
107: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
108: int begin, int end)
109: throws com.liferay.portal.SystemException;
110:
111: public java.util.List findAll()
112: throws com.liferay.portal.SystemException;
113:
114: public java.util.List findAll(int begin, int end)
115: throws com.liferay.portal.SystemException;
116:
117: public java.util.List findAll(int begin, int end,
118: com.liferay.portal.kernel.util.OrderByComparator obc)
119: throws com.liferay.portal.SystemException;
120:
121: public void removeByProductEntryId(long productEntryId)
122: throws com.liferay.portal.SystemException;
123:
124: public void removeByDirectDownloadURL(
125: java.lang.String directDownloadURL)
126: throws com.liferay.portal.SystemException,
127: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
128:
129: public void removeAll() throws com.liferay.portal.SystemException;
130:
131: public int countByProductEntryId(long productEntryId)
132: throws com.liferay.portal.SystemException;
133:
134: public int countByDirectDownloadURL(
135: java.lang.String directDownloadURL)
136: throws com.liferay.portal.SystemException;
137:
138: public int countAll() throws com.liferay.portal.SystemException;
139:
140: public java.util.List getSCFrameworkVersions(long pk)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
143:
144: public java.util.List getSCFrameworkVersions(long pk, int begin,
145: int end)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
148:
149: public java.util.List getSCFrameworkVersions(long pk, int begin,
150: int end,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
154:
155: public int getSCFrameworkVersionsSize(long pk)
156: throws com.liferay.portal.SystemException;
157:
158: public boolean containsSCFrameworkVersion(long pk,
159: long scFrameworkVersionPK)
160: throws com.liferay.portal.SystemException;
161:
162: public boolean containsSCFrameworkVersions(long pk)
163: throws com.liferay.portal.SystemException;
164:
165: public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
166: throws com.liferay.portal.SystemException,
167: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
168: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
169:
170: public void addSCFrameworkVersion(
171: long pk,
172: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
173: throws com.liferay.portal.SystemException,
174: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
175: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
176:
177: public void addSCFrameworkVersions(long pk,
178: long[] scFrameworkVersionPKs)
179: throws com.liferay.portal.SystemException,
180: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
181: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
182:
183: public void addSCFrameworkVersions(long pk,
184: java.util.List scFrameworkVersions)
185: throws com.liferay.portal.SystemException,
186: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
187: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
188:
189: public void clearSCFrameworkVersions(long pk)
190: throws com.liferay.portal.SystemException,
191: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
192:
193: public void removeSCFrameworkVersion(long pk,
194: long scFrameworkVersionPK)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
197: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
198:
199: public void removeSCFrameworkVersion(
200: long pk,
201: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
202: throws com.liferay.portal.SystemException,
203: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
204: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
205:
206: public void removeSCFrameworkVersions(long pk,
207: long[] scFrameworkVersionPKs)
208: throws com.liferay.portal.SystemException,
209: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
210: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
211:
212: public void removeSCFrameworkVersions(long pk,
213: java.util.List scFrameworkVersions)
214: throws com.liferay.portal.SystemException,
215: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
216: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
217:
218: public void setSCFrameworkVersions(long pk,
219: long[] scFrameworkVersionPKs)
220: throws com.liferay.portal.SystemException,
221: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
222: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
223:
224: public void setSCFrameworkVersions(long pk,
225: java.util.List scFrameworkVersions)
226: throws com.liferay.portal.SystemException,
227: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
228: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
229: }
|