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="SCFrameworkVersionPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface SCFrameworkVersionPersistence {
030: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
031: long frameworkVersionId);
032:
033: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
034: long frameworkVersionId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
037:
038: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
039: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
043: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
047: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
051: com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
055: long frameworkVersionId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
058:
059: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
060: long frameworkVersionId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByGroupId(long groupId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
079:
080: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
085:
086: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
087: long frameworkVersionId, long groupId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
091:
092: public java.util.List findByCompanyId(long companyId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByCompanyId(long companyId, int begin,
096: int end) throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByCompanyId(long companyId, int begin,
099: int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
104: long companyId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
108:
109: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
110: long companyId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
114:
115: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
116: long frameworkVersionId, long companyId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
120:
121: public java.util.List findByG_A(long groupId, boolean active)
122: throws com.liferay.portal.SystemException;
123:
124: public java.util.List findByG_A(long groupId, boolean active,
125: int begin, int end)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findByG_A(long groupId, boolean active,
129: int begin, int end,
130: com.liferay.portal.kernel.util.OrderByComparator obc)
131: throws com.liferay.portal.SystemException;
132:
133: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
134: long groupId, boolean active,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException,
137: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
138:
139: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
140: long groupId, boolean active,
141: com.liferay.portal.kernel.util.OrderByComparator obc)
142: throws com.liferay.portal.SystemException,
143: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
144:
145: public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
146: long frameworkVersionId, long groupId, boolean active,
147: com.liferay.portal.kernel.util.OrderByComparator obc)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
150:
151: public java.util.List findWithDynamicQuery(
152: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
153: throws com.liferay.portal.SystemException;
154:
155: public java.util.List findWithDynamicQuery(
156: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
157: int begin, int end)
158: throws com.liferay.portal.SystemException;
159:
160: public java.util.List findAll()
161: throws com.liferay.portal.SystemException;
162:
163: public java.util.List findAll(int begin, int end)
164: throws com.liferay.portal.SystemException;
165:
166: public java.util.List findAll(int begin, int end,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException;
169:
170: public void removeByGroupId(long groupId)
171: throws com.liferay.portal.SystemException;
172:
173: public void removeByCompanyId(long companyId)
174: throws com.liferay.portal.SystemException;
175:
176: public void removeByG_A(long groupId, boolean active)
177: throws com.liferay.portal.SystemException;
178:
179: public void removeAll() throws com.liferay.portal.SystemException;
180:
181: public int countByGroupId(long groupId)
182: throws com.liferay.portal.SystemException;
183:
184: public int countByCompanyId(long companyId)
185: throws com.liferay.portal.SystemException;
186:
187: public int countByG_A(long groupId, boolean active)
188: throws com.liferay.portal.SystemException;
189:
190: public int countAll() throws com.liferay.portal.SystemException;
191:
192: public java.util.List getSCProductVersions(long pk)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
195:
196: public java.util.List getSCProductVersions(long pk, int begin,
197: int end)
198: throws com.liferay.portal.SystemException,
199: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
200:
201: public java.util.List getSCProductVersions(long pk, int begin,
202: int end,
203: com.liferay.portal.kernel.util.OrderByComparator obc)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
206:
207: public int getSCProductVersionsSize(long pk)
208: throws com.liferay.portal.SystemException;
209:
210: public boolean containsSCProductVersion(long pk,
211: long scProductVersionPK)
212: throws com.liferay.portal.SystemException;
213:
214: public boolean containsSCProductVersions(long pk)
215: throws com.liferay.portal.SystemException;
216:
217: public void addSCProductVersion(long pk, long scProductVersionPK)
218: throws com.liferay.portal.SystemException,
219: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
220: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
221:
222: public void addSCProductVersion(
223: long pk,
224: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
225: throws com.liferay.portal.SystemException,
226: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
227: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
228:
229: public void addSCProductVersions(long pk, long[] scProductVersionPKs)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
232: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
233:
234: public void addSCProductVersions(long pk,
235: java.util.List scProductVersions)
236: throws com.liferay.portal.SystemException,
237: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
238: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
239:
240: public void clearSCProductVersions(long pk)
241: throws com.liferay.portal.SystemException,
242: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
243:
244: public void removeSCProductVersion(long pk, long scProductVersionPK)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
247: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
248:
249: public void removeSCProductVersion(
250: long pk,
251: com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
252: throws com.liferay.portal.SystemException,
253: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
254: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
255:
256: public void removeSCProductVersions(long pk,
257: long[] scProductVersionPKs)
258: throws com.liferay.portal.SystemException,
259: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
260: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
261:
262: public void removeSCProductVersions(long pk,
263: java.util.List scProductVersions)
264: throws com.liferay.portal.SystemException,
265: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
266: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
267:
268: public void setSCProductVersions(long pk, long[] scProductVersionPKs)
269: throws com.liferay.portal.SystemException,
270: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
271: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
272:
273: public void setSCProductVersions(long pk,
274: java.util.List scProductVersions)
275: throws com.liferay.portal.SystemException,
276: com.liferay.portlet.softwarecatalog.NoSuchProductVersionException,
277: com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
278: }
|