1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.Subscription update(
48          com.liferay.portal.model.Subscription subscription)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.Subscription updateImpl(
52          com.liferay.portal.model.Subscription subscription, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Subscription findByPrimaryKey(
56          long subscriptionId)
57          throws com.liferay.portal.NoSuchSubscriptionException,
58              com.liferay.portal.SystemException;
59  
60      public com.liferay.portal.model.Subscription fetchByPrimaryKey(
61          long subscriptionId) throws com.liferay.portal.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
64          long userId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
67          long userId, int start, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
71          long userId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portal.model.Subscription findByUserId_First(
76          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.NoSuchSubscriptionException,
78              com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.Subscription findByUserId_Last(
81          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchSubscriptionException,
83              com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
86          long subscriptionId, long userId,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.NoSuchSubscriptionException,
89              com.liferay.portal.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
92          long userId, long classNameId)
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
96          long userId, long classNameId, int start, int end)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
100         long userId, long classNameId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.Subscription findByU_C_First(long userId,
105         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.NoSuchSubscriptionException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.Subscription findByU_C_Last(long userId,
110         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchSubscriptionException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.Subscription[] findByU_C_PrevAndNext(
115         long subscriptionId, long userId, long classNameId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchSubscriptionException,
118             com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
121         long companyId, long classNameId, long classPK)
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
125         long companyId, long classNameId, long classPK, int start, int end)
126         throws 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, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException;
132 
133     public com.liferay.portal.model.Subscription findByC_C_C_First(
134         long companyId, long classNameId, long classPK,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.NoSuchSubscriptionException,
137             com.liferay.portal.SystemException;
138 
139     public com.liferay.portal.model.Subscription findByC_C_C_Last(
140         long companyId, long classNameId, long classPK,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchSubscriptionException,
143             com.liferay.portal.SystemException;
144 
145     public com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
146         long subscriptionId, long companyId, long classNameId, long classPK,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchSubscriptionException,
149             com.liferay.portal.SystemException;
150 
151     public com.liferay.portal.model.Subscription findByC_U_C_C(long companyId,
152         long userId, long classNameId, long classPK)
153         throws com.liferay.portal.NoSuchSubscriptionException,
154             com.liferay.portal.SystemException;
155 
156     public com.liferay.portal.model.Subscription fetchByC_U_C_C(
157         long companyId, long userId, long classNameId, long classPK)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.Subscription fetchByC_U_C_C(
161         long companyId, long userId, long classNameId, long classPK,
162         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portal.model.Subscription> findAll()
165         throws com.liferay.portal.SystemException;
166 
167     public java.util.List<com.liferay.portal.model.Subscription> findAll(
168         int start, int end) throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portal.model.Subscription> findAll(
171         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException;
173 
174     public void removeByUserId(long userId)
175         throws com.liferay.portal.SystemException;
176 
177     public void removeByU_C(long userId, long classNameId)
178         throws com.liferay.portal.SystemException;
179 
180     public void removeByC_C_C(long companyId, long classNameId, long classPK)
181         throws com.liferay.portal.SystemException;
182 
183     public void removeByC_U_C_C(long companyId, long userId, long classNameId,
184         long classPK)
185         throws com.liferay.portal.NoSuchSubscriptionException,
186             com.liferay.portal.SystemException;
187 
188     public void removeAll() throws com.liferay.portal.SystemException;
189 
190     public int countByUserId(long userId)
191         throws com.liferay.portal.SystemException;
192 
193     public int countByU_C(long userId, long classNameId)
194         throws com.liferay.portal.SystemException;
195 
196     public int countByC_C_C(long companyId, long classNameId, long classPK)
197         throws com.liferay.portal.SystemException;
198 
199     public int countByC_U_C_C(long companyId, long userId, long classNameId,
200         long classPK) throws com.liferay.portal.SystemException;
201 
202     public int countAll() throws com.liferay.portal.SystemException;
203 }