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="SCLicensePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface SCLicensePersistence {
030: public com.liferay.portlet.softwarecatalog.model.SCLicense create(
031: long licenseId);
032:
033: public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
034: long licenseId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
036:
037: public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
038: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.softwarecatalog.model.SCLicense update(
042: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.softwarecatalog.model.SCLicense update(
046: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
050: com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
054: long licenseId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
056:
057: public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
058: long licenseId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByActive(boolean active)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByActive(boolean active, int begin,
064: int end) throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByActive(boolean active, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
072: boolean active,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
076:
077: public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
078: boolean active,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
082:
083: public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
084: long licenseId, boolean active,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
088:
089: public java.util.List findByA_R(boolean active, boolean recommended)
090: throws com.liferay.portal.SystemException;
091:
092: public java.util.List findByA_R(boolean active,
093: boolean recommended, int begin, int end)
094: throws com.liferay.portal.SystemException;
095:
096: public java.util.List findByA_R(boolean active,
097: boolean recommended, int begin, int end,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException;
100:
101: public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
102: boolean active, boolean recommended,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
106:
107: public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
108: boolean active, boolean recommended,
109: com.liferay.portal.kernel.util.OrderByComparator obc)
110: throws com.liferay.portal.SystemException,
111: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
112:
113: public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
114: long licenseId, boolean active, boolean recommended,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException,
117: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
118:
119: public java.util.List findWithDynamicQuery(
120: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findWithDynamicQuery(
124: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
125: int begin, int end)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findAll()
129: throws com.liferay.portal.SystemException;
130:
131: public java.util.List findAll(int begin, int end)
132: throws com.liferay.portal.SystemException;
133:
134: public java.util.List findAll(int begin, int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException;
137:
138: public void removeByActive(boolean active)
139: throws com.liferay.portal.SystemException;
140:
141: public void removeByA_R(boolean active, boolean recommended)
142: throws com.liferay.portal.SystemException;
143:
144: public void removeAll() throws com.liferay.portal.SystemException;
145:
146: public int countByActive(boolean active)
147: throws com.liferay.portal.SystemException;
148:
149: public int countByA_R(boolean active, boolean recommended)
150: throws com.liferay.portal.SystemException;
151:
152: public int countAll() throws com.liferay.portal.SystemException;
153:
154: public java.util.List getSCProductEntries(long pk)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
157:
158: public java.util.List getSCProductEntries(long pk, int begin,
159: int end) throws com.liferay.portal.SystemException,
160: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
161:
162: public java.util.List getSCProductEntries(long pk, int begin,
163: int end,
164: com.liferay.portal.kernel.util.OrderByComparator obc)
165: throws com.liferay.portal.SystemException,
166: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
167:
168: public int getSCProductEntriesSize(long pk)
169: throws com.liferay.portal.SystemException;
170:
171: public boolean containsSCProductEntry(long pk, long scProductEntryPK)
172: throws com.liferay.portal.SystemException;
173:
174: public boolean containsSCProductEntries(long pk)
175: throws com.liferay.portal.SystemException;
176:
177: public void addSCProductEntry(long pk, long scProductEntryPK)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
180: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
181:
182: public void addSCProductEntry(
183: long pk,
184: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
185: throws com.liferay.portal.SystemException,
186: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
187: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
188:
189: public void addSCProductEntries(long pk, long[] scProductEntryPKs)
190: throws com.liferay.portal.SystemException,
191: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
192: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
193:
194: public void addSCProductEntries(long pk,
195: java.util.List scProductEntries)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
198: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
199:
200: public void clearSCProductEntries(long pk)
201: throws com.liferay.portal.SystemException,
202: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
203:
204: public void removeSCProductEntry(long pk, long scProductEntryPK)
205: throws com.liferay.portal.SystemException,
206: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
207: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
208:
209: public void removeSCProductEntry(
210: long pk,
211: com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
214: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
215:
216: public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
217: throws com.liferay.portal.SystemException,
218: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
219: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
220:
221: public void removeSCProductEntries(long pk,
222: java.util.List scProductEntries)
223: throws com.liferay.portal.SystemException,
224: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
225: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
226:
227: public void setSCProductEntries(long pk, long[] scProductEntryPKs)
228: throws com.liferay.portal.SystemException,
229: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
230: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
231:
232: public void setSCProductEntries(long pk,
233: java.util.List scProductEntries)
234: throws com.liferay.portal.SystemException,
235: com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
236: com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
237: }
|