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="SCProductEntryPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface SCProductEntryPersistence {
030: public com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
031: long productEntryId);
032:
033: public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
034: long productEntryId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
037:
038: public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
039: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
043: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
047: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
051: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
055: long productEntryId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
058:
059: public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
060: long productEntryId)
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.SCProductEntry findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
079:
080: public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
085:
086: public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
087: long productEntryId, long groupId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
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.SCProductEntry findByCompanyId_First(
104: long companyId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
108:
109: public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
110: long companyId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
114:
115: public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
116: long productEntryId, long companyId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
120:
121: public java.util.List findByG_U(long groupId, long userId)
122: throws com.liferay.portal.SystemException;
123:
124: public java.util.List findByG_U(long groupId, long userId,
125: int begin, int end)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findByG_U(long groupId, long userId,
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.SCProductEntry findByG_U_First(
134: long groupId, long userId,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException,
137: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
138:
139: public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
140: long groupId, long userId,
141: com.liferay.portal.kernel.util.OrderByComparator obc)
142: throws com.liferay.portal.SystemException,
143: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
144:
145: public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
146: long productEntryId, long groupId, long userId,
147: com.liferay.portal.kernel.util.OrderByComparator obc)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
150:
151: public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
152: java.lang.String repoGroupId,
153: java.lang.String repoArtifactId)
154: throws com.liferay.portal.SystemException,
155: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
156:
157: public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
158: java.lang.String repoGroupId,
159: java.lang.String repoArtifactId)
160: throws com.liferay.portal.SystemException;
161:
162: public java.util.List findWithDynamicQuery(
163: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
164: throws com.liferay.portal.SystemException;
165:
166: public java.util.List findWithDynamicQuery(
167: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
168: int begin, int end)
169: throws com.liferay.portal.SystemException;
170:
171: public java.util.List findAll()
172: throws com.liferay.portal.SystemException;
173:
174: public java.util.List findAll(int begin, int end)
175: throws com.liferay.portal.SystemException;
176:
177: public java.util.List findAll(int begin, int end,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException;
180:
181: public void removeByGroupId(long groupId)
182: throws com.liferay.portal.SystemException;
183:
184: public void removeByCompanyId(long companyId)
185: throws com.liferay.portal.SystemException;
186:
187: public void removeByG_U(long groupId, long userId)
188: throws com.liferay.portal.SystemException;
189:
190: public void removeByRG_RA(java.lang.String repoGroupId,
191: java.lang.String repoArtifactId)
192: throws com.liferay.portal.SystemException,
193: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
194:
195: public void removeAll() throws com.liferay.portal.SystemException;
196:
197: public int countByGroupId(long groupId)
198: throws com.liferay.portal.SystemException;
199:
200: public int countByCompanyId(long companyId)
201: throws com.liferay.portal.SystemException;
202:
203: public int countByG_U(long groupId, long userId)
204: throws com.liferay.portal.SystemException;
205:
206: public int countByRG_RA(java.lang.String repoGroupId,
207: java.lang.String repoArtifactId)
208: throws com.liferay.portal.SystemException;
209:
210: public int countAll() throws com.liferay.portal.SystemException;
211:
212: public java.util.List getSCLicenses(long pk)
213: throws com.liferay.portal.SystemException,
214: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
215:
216: public java.util.List getSCLicenses(long pk, int begin, int end)
217: throws com.liferay.portal.SystemException,
218: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
219:
220: public java.util.List getSCLicenses(long pk, int begin, int end,
221: com.liferay.portal.kernel.util.OrderByComparator obc)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
224:
225: public int getSCLicensesSize(long pk)
226: throws com.liferay.portal.SystemException;
227:
228: public boolean containsSCLicense(long pk, long scLicensePK)
229: throws com.liferay.portal.SystemException;
230:
231: public boolean containsSCLicenses(long pk)
232: throws com.liferay.portal.SystemException;
233:
234: public void addSCLicense(long pk, long scLicensePK)
235: throws com.liferay.portal.SystemException,
236: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
237: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
238:
239: public void addSCLicense(
240: long pk,
241: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
242: throws com.liferay.portal.SystemException,
243: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
244: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
245:
246: public void addSCLicenses(long pk, long[] scLicensePKs)
247: throws com.liferay.portal.SystemException,
248: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
249: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
250:
251: public void addSCLicenses(long pk, java.util.List scLicenses)
252: throws com.liferay.portal.SystemException,
253: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
254: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
255:
256: public void clearSCLicenses(long pk)
257: throws com.liferay.portal.SystemException,
258: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
259:
260: public void removeSCLicense(long pk, long scLicensePK)
261: throws com.liferay.portal.SystemException,
262: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
263: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
264:
265: public void removeSCLicense(
266: long pk,
267: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
268: throws com.liferay.portal.SystemException,
269: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
270: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
271:
272: public void removeSCLicenses(long pk, long[] scLicensePKs)
273: throws com.liferay.portal.SystemException,
274: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
275: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
276:
277: public void removeSCLicenses(long pk, java.util.List scLicenses)
278: throws com.liferay.portal.SystemException,
279: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
280: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
281:
282: public void setSCLicenses(long pk, long[] scLicensePKs)
283: throws com.liferay.portal.SystemException,
284: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
285: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
286:
287: public void setSCLicenses(long pk, java.util.List scLicenses)
288: throws com.liferay.portal.SystemException,
289: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
290: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
291: }
|