1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.softwarecatalog.model.SCLicense;
20  
21  /**
22   * <a href="SCLicensePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SCLicensePersistenceImpl
31   * @see       SCLicenseUtil
32   * @generated
33   */
34  public interface SCLicensePersistence extends BasePersistence<SCLicense> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCLicense create(
42          long licenseId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
45          long licenseId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
48  
49      public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
50          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
55          long licenseId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
58  
59      public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
60          long licenseId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
64          boolean active)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
68          boolean active, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
72          boolean active, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
77          boolean active,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
81  
82      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
83          boolean active,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
89          long licenseId, boolean active,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
93  
94      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
95          boolean active, boolean recommended)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
99          boolean active, boolean recommended, int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
103         boolean active, boolean recommended, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
108         boolean active, boolean recommended,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
112 
113     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
114         boolean active, boolean recommended,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
118 
119     public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
120         long licenseId, boolean active, boolean recommended,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
124 
125     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
129         int start, int end)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
133         int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public void removeByActive(boolean active)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public void removeByA_R(boolean active, boolean recommended)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public void removeAll()
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public int countByActive(boolean active)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public int countByA_R(boolean active, boolean recommended)
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     public int countAll()
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
156         long pk) throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
159         long pk, int start, int end)
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
163         long pk, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public int getSCProductEntriesSize(long pk)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public boolean containsSCProductEntry(long pk, long scProductEntryPK)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public boolean containsSCProductEntries(long pk)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public void addSCProductEntry(long pk, long scProductEntryPK)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public void addSCProductEntry(long pk,
180         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public void addSCProductEntries(long pk, long[] scProductEntryPKs)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public void addSCProductEntries(long pk,
187         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public void clearSCProductEntries(long pk)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public void removeSCProductEntry(long pk, long scProductEntryPK)
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     public void removeSCProductEntry(long pk,
197         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public void removeSCProductEntries(long pk,
204         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public void setSCProductEntries(long pk, long[] scProductEntryPKs)
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public void setSCProductEntries(long pk,
211         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 }