1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Subscription;
18
19
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 obc)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public com.liferay.portal.model.Subscription findByUserId_First(
70 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
71 throws com.liferay.portal.NoSuchSubscriptionException,
72 com.liferay.portal.kernel.exception.SystemException;
73
74 public com.liferay.portal.model.Subscription findByUserId_Last(
75 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.NoSuchSubscriptionException,
77 com.liferay.portal.kernel.exception.SystemException;
78
79 public com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
80 long subscriptionId, long userId,
81 com.liferay.portal.kernel.util.OrderByComparator obc)
82 throws com.liferay.portal.NoSuchSubscriptionException,
83 com.liferay.portal.kernel.exception.SystemException;
84
85 public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
86 long userId, long classNameId)
87 throws com.liferay.portal.kernel.exception.SystemException;
88
89 public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
90 long userId, long classNameId, int start, int end)
91 throws com.liferay.portal.kernel.exception.SystemException;
92
93 public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
94 long userId, long classNameId, int start, int end,
95 com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portal.model.Subscription findByU_C_First(long userId,
99 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.NoSuchSubscriptionException,
101 com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portal.model.Subscription findByU_C_Last(long userId,
104 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.NoSuchSubscriptionException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public com.liferay.portal.model.Subscription[] findByU_C_PrevAndNext(
109 long subscriptionId, long userId, long classNameId,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.NoSuchSubscriptionException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
115 long companyId, long classNameId, long classPK)
116 throws 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, int start, int end)
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 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public com.liferay.portal.model.Subscription findByC_C_C_First(
128 long companyId, long classNameId, long classPK,
129 com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.NoSuchSubscriptionException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public com.liferay.portal.model.Subscription findByC_C_C_Last(
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.kernel.exception.SystemException;
138
139 public com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
140 long subscriptionId, long companyId, long classNameId, long classPK,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.NoSuchSubscriptionException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public com.liferay.portal.model.Subscription findByC_U_C_C(long companyId,
146 long userId, long classNameId, long classPK)
147 throws com.liferay.portal.NoSuchSubscriptionException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public com.liferay.portal.model.Subscription fetchByC_U_C_C(
151 long companyId, long userId, long classNameId, long classPK)
152 throws 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 boolean retrieveFromCache)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public java.util.List<com.liferay.portal.model.Subscription> findAll()
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public java.util.List<com.liferay.portal.model.Subscription> findAll(
163 int start, int end)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170 public void removeByUserId(long userId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 public void removeByU_C(long userId, long classNameId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 public void removeByC_C_C(long companyId, long classNameId, long classPK)
177 throws com.liferay.portal.kernel.exception.SystemException;
178
179 public void removeByC_U_C_C(long companyId, long userId, long classNameId,
180 long classPK)
181 throws com.liferay.portal.NoSuchSubscriptionException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184 public void removeAll()
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 public int countByUserId(long userId)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 public int countByU_C(long userId, long classNameId)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193 public int countByC_C_C(long companyId, long classNameId, long classPK)
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196 public int countByC_U_C_C(long companyId, long userId, long classNameId,
197 long classPK)
198 throws com.liferay.portal.kernel.exception.SystemException;
199
200 public int countAll()
201 throws com.liferay.portal.kernel.exception.SystemException;
202 }