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.portal.service.persistence;
16  
17  import com.liferay.portal.model.Subscription;
18  
19  /**
20   * <a href="SubscriptionPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       SubscriptionPersistenceImpl
29   * @see       SubscriptionUtil
30   * @generated
31   */
32  public interface SubscriptionPersistence extends BasePersistence<Subscription> {
33      public void cacheResult(com.liferay.portal.model.Subscription subscription);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Subscription> subscriptions);
37  
38      public com.liferay.portal.model.Subscription create(long subscriptionId);
39  
40      public com.liferay.portal.model.Subscription remove(long subscriptionId)
41          throws com.liferay.portal.NoSuchSubscriptionException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Subscription updateImpl(
45          com.liferay.portal.model.Subscription subscription, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Subscription findByPrimaryKey(
49          long subscriptionId)
50          throws com.liferay.portal.NoSuchSubscriptionException,
51              com.liferay.portal.kernel.exception.SystemException;
52  
53      public com.liferay.portal.model.Subscription fetchByPrimaryKey(
54          long subscriptionId)
55          throws com.liferay.portal.kernel.exception.SystemException;
56  
57      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
58          long userId) throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
61          long userId, int start, int end)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
65          long userId, int start, int end,
66          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public com.liferay.portal.model.Subscription findByUserId_First(
70          long userId,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.NoSuchSubscriptionException,
73              com.liferay.portal.kernel.exception.SystemException;
74  
75      public com.liferay.portal.model.Subscription findByUserId_Last(
76          long userId,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.NoSuchSubscriptionException,
79              com.liferay.portal.kernel.exception.SystemException;
80  
81      public com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
82          long subscriptionId, long userId,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.NoSuchSubscriptionException,
85              com.liferay.portal.kernel.exception.SystemException;
86  
87      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
88          long userId, long classNameId)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
92          long userId, long classNameId, int start, int end)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
96          long userId, long classNameId, int start, int end,
97          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portal.model.Subscription findByU_C_First(long userId,
101         long classNameId,
102         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103         throws com.liferay.portal.NoSuchSubscriptionException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portal.model.Subscription findByU_C_Last(long userId,
107         long classNameId,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.NoSuchSubscriptionException,
110             com.liferay.portal.kernel.exception.SystemException;
111 
112     public com.liferay.portal.model.Subscription[] findByU_C_PrevAndNext(
113         long subscriptionId, long userId, long classNameId,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.NoSuchSubscriptionException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
119         long companyId, long classNameId, long classPK)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
123         long companyId, long classNameId, long classPK, int start, int end)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
127         long companyId, long classNameId, long classPK, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public com.liferay.portal.model.Subscription findByC_C_C_First(
132         long companyId, long classNameId, long classPK,
133         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134         throws com.liferay.portal.NoSuchSubscriptionException,
135             com.liferay.portal.kernel.exception.SystemException;
136 
137     public com.liferay.portal.model.Subscription findByC_C_C_Last(
138         long companyId, long classNameId, long classPK,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.NoSuchSubscriptionException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
144         long subscriptionId, long companyId, long classNameId, long classPK,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.NoSuchSubscriptionException,
147             com.liferay.portal.kernel.exception.SystemException;
148 
149     public com.liferay.portal.model.Subscription findByC_U_C_C(long companyId,
150         long userId, long classNameId, long classPK)
151         throws com.liferay.portal.NoSuchSubscriptionException,
152             com.liferay.portal.kernel.exception.SystemException;
153 
154     public com.liferay.portal.model.Subscription fetchByC_U_C_C(
155         long companyId, long userId, long classNameId, long classPK)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public com.liferay.portal.model.Subscription fetchByC_U_C_C(
159         long companyId, long userId, long classNameId, long classPK,
160         boolean retrieveFromCache)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public java.util.List<com.liferay.portal.model.Subscription> findAll()
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public java.util.List<com.liferay.portal.model.Subscription> findAll(
167         int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portal.model.Subscription> findAll(
171         int start, int end,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public void removeByUserId(long userId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public void removeByU_C(long userId, long classNameId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public void removeByC_C_C(long companyId, long classNameId, long classPK)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByC_U_C_C(long companyId, long userId, long classNameId,
185         long classPK)
186         throws com.liferay.portal.NoSuchSubscriptionException,
187             com.liferay.portal.kernel.exception.SystemException;
188 
189     public void removeAll()
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public int countByUserId(long userId)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public int countByU_C(long userId, long classNameId)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public int countByC_C_C(long companyId, long classNameId, long classPK)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public int countByC_U_C_C(long companyId, long userId, long classNameId,
202         long classPK)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     public int countAll()
206         throws com.liferay.portal.kernel.exception.SystemException;
207 }