001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.softwarecatalog.model.SCLicense;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SCLicensePersistenceImpl
024     * @see       SCLicenseUtil
025     * @generated
026     */
027    public interface SCLicensePersistence extends BasePersistence<SCLicense> {
028            public void cacheResult(
029                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses);
033    
034            public com.liferay.portlet.softwarecatalog.model.SCLicense create(
035                    long licenseId);
036    
037            public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
038                    long licenseId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
041    
042            public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
043                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
048                    long licenseId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
051    
052            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
053                    long licenseId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
057                    boolean active)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
061                    boolean active, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
065                    boolean active, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
070                    boolean active,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
074    
075            public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
076                    boolean active,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
080    
081            public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
082                    long licenseId, boolean active,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
086    
087            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
088                    boolean active, boolean recommended)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
092                    boolean active, boolean recommended, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
096                    boolean active, boolean recommended, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
101                    boolean active, boolean recommended,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
105    
106            public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
107                    boolean active, boolean recommended,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
111    
112            public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
113                    long licenseId, boolean active, boolean recommended,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
117    
118            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
122                    int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
126                    int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public void removeByActive(boolean active)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public void removeByA_R(boolean active, boolean recommended)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public void removeAll()
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public int countByActive(boolean active)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public int countByA_R(boolean active, boolean recommended)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public int countAll()
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
149                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
152                    long pk, int start, int end)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
156                    long pk, int start, int end,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            public int getSCProductEntriesSize(long pk)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            public boolean containsSCProductEntry(long pk, long scProductEntryPK)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            public boolean containsSCProductEntries(long pk)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            public void addSCProductEntry(long pk, long scProductEntryPK)
170                    throws com.liferay.portal.kernel.exception.SystemException;
171    
172            public void addSCProductEntry(long pk,
173                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public void addSCProductEntries(long pk, long[] scProductEntryPKs)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public void addSCProductEntries(long pk,
180                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public void clearSCProductEntries(long pk)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            public void removeSCProductEntry(long pk, long scProductEntryPK)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            public void removeSCProductEntry(long pk,
190                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            public void removeSCProductEntries(long pk,
197                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            public void setSCProductEntries(long pk, long[] scProductEntryPKs)
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            public void setSCProductEntries(long pk,
204                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    }