1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.model.Subscription;
26  
27  /**
28   * <a href="SubscriptionPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SubscriptionPersistenceImpl
37   * @see       SubscriptionUtil
38   * @generated
39   */
40  public interface SubscriptionPersistence extends BasePersistence<Subscription> {
41      public void cacheResult(com.liferay.portal.model.Subscription subscription);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.Subscription> subscriptions);
45  
46      public com.liferay.portal.model.Subscription create(long subscriptionId);
47  
48      public com.liferay.portal.model.Subscription remove(long subscriptionId)
49          throws com.liferay.portal.NoSuchSubscriptionException,
50              com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
54       */
55      public com.liferay.portal.model.Subscription update(
56          com.liferay.portal.model.Subscription subscription)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Subscription updateImpl(
60          com.liferay.portal.model.Subscription subscription, boolean merge)
61          throws com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.Subscription findByPrimaryKey(
64          long subscriptionId)
65          throws com.liferay.portal.NoSuchSubscriptionException,
66              com.liferay.portal.SystemException;
67  
68      public com.liferay.portal.model.Subscription fetchByPrimaryKey(
69          long subscriptionId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
72          long userId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
75          long userId, int start, int end)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
79          long userId, int start, int end,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.Subscription findByUserId_First(
84          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.NoSuchSubscriptionException,
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.Subscription findByUserId_Last(
89          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.NoSuchSubscriptionException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
94          long subscriptionId, long userId,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.NoSuchSubscriptionException,
97              com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
100         long userId, long classNameId)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
104         long userId, long classNameId, int start, int end)
105         throws com.liferay.portal.SystemException;
106 
107     public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
108         long userId, long classNameId, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.Subscription findByU_C_First(long userId,
113         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchSubscriptionException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.Subscription findByU_C_Last(long userId,
118         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.NoSuchSubscriptionException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portal.model.Subscription[] findByU_C_PrevAndNext(
123         long subscriptionId, long userId, long classNameId,
124         com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.NoSuchSubscriptionException,
126             com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
129         long companyId, long classNameId, long classPK)
130         throws com.liferay.portal.SystemException;
131 
132     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
133         long companyId, long classNameId, long classPK, int start, int end)
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
137         long companyId, long classNameId, long classPK, int start, int end,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException;
140 
141     public com.liferay.portal.model.Subscription findByC_C_C_First(
142         long companyId, long classNameId, long classPK,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.NoSuchSubscriptionException,
145             com.liferay.portal.SystemException;
146 
147     public com.liferay.portal.model.Subscription findByC_C_C_Last(
148         long companyId, long classNameId, long classPK,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.NoSuchSubscriptionException,
151             com.liferay.portal.SystemException;
152 
153     public com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
154         long subscriptionId, long companyId, long classNameId, long classPK,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.NoSuchSubscriptionException,
157             com.liferay.portal.SystemException;
158 
159     public com.liferay.portal.model.Subscription findByC_U_C_C(long companyId,
160         long userId, long classNameId, long classPK)
161         throws com.liferay.portal.NoSuchSubscriptionException,
162             com.liferay.portal.SystemException;
163 
164     public com.liferay.portal.model.Subscription fetchByC_U_C_C(
165         long companyId, long userId, long classNameId, long classPK)
166         throws com.liferay.portal.SystemException;
167 
168     public com.liferay.portal.model.Subscription fetchByC_U_C_C(
169         long companyId, long userId, long classNameId, long classPK,
170         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.Subscription> findAll()
173         throws com.liferay.portal.SystemException;
174 
175     public java.util.List<com.liferay.portal.model.Subscription> findAll(
176         int start, int end) throws com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portal.model.Subscription> findAll(
179         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException;
181 
182     public void removeByUserId(long userId)
183         throws com.liferay.portal.SystemException;
184 
185     public void removeByU_C(long userId, long classNameId)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByC_C_C(long companyId, long classNameId, long classPK)
189         throws com.liferay.portal.SystemException;
190 
191     public void removeByC_U_C_C(long companyId, long userId, long classNameId,
192         long classPK)
193         throws com.liferay.portal.NoSuchSubscriptionException,
194             com.liferay.portal.SystemException;
195 
196     public void removeAll() throws com.liferay.portal.SystemException;
197 
198     public int countByUserId(long userId)
199         throws com.liferay.portal.SystemException;
200 
201     public int countByU_C(long userId, long classNameId)
202         throws com.liferay.portal.SystemException;
203 
204     public int countByC_C_C(long companyId, long classNameId, long classPK)
205         throws com.liferay.portal.SystemException;
206 
207     public int countByC_U_C_C(long companyId, long userId, long classNameId,
208         long classPK) throws com.liferay.portal.SystemException;
209 
210     public int countAll() throws com.liferay.portal.SystemException;
211 }