001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Subscription;
018
019
025 public interface SubscriptionPersistence extends BasePersistence<Subscription> {
026 public void cacheResult(com.liferay.portal.model.Subscription subscription);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.Subscription> subscriptions);
030
031 public com.liferay.portal.model.Subscription create(long subscriptionId);
032
033 public com.liferay.portal.model.Subscription remove(long subscriptionId)
034 throws com.liferay.portal.NoSuchSubscriptionException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.Subscription updateImpl(
038 com.liferay.portal.model.Subscription subscription, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.Subscription findByPrimaryKey(
042 long subscriptionId)
043 throws com.liferay.portal.NoSuchSubscriptionException,
044 com.liferay.portal.kernel.exception.SystemException;
045
046 public com.liferay.portal.model.Subscription fetchByPrimaryKey(
047 long subscriptionId)
048 throws com.liferay.portal.kernel.exception.SystemException;
049
050 public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
051 long userId) throws com.liferay.portal.kernel.exception.SystemException;
052
053 public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
054 long userId, int start, int end)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057 public java.util.List<com.liferay.portal.model.Subscription> findByUserId(
058 long userId, int start, int end,
059 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
060 throws com.liferay.portal.kernel.exception.SystemException;
061
062 public com.liferay.portal.model.Subscription findByUserId_First(
063 long userId,
064 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065 throws com.liferay.portal.NoSuchSubscriptionException,
066 com.liferay.portal.kernel.exception.SystemException;
067
068 public com.liferay.portal.model.Subscription findByUserId_Last(
069 long userId,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.NoSuchSubscriptionException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 public com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
075 long subscriptionId, long userId,
076 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077 throws com.liferay.portal.NoSuchSubscriptionException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
081 long userId, long classNameId)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084 public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
085 long userId, long classNameId, int start, int end)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 public java.util.List<com.liferay.portal.model.Subscription> findByU_C(
089 long userId, long classNameId, int start, int end,
090 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 public com.liferay.portal.model.Subscription findByU_C_First(long userId,
094 long classNameId,
095 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096 throws com.liferay.portal.NoSuchSubscriptionException,
097 com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.model.Subscription findByU_C_Last(long userId,
100 long classNameId,
101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102 throws com.liferay.portal.NoSuchSubscriptionException,
103 com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portal.model.Subscription[] findByU_C_PrevAndNext(
106 long subscriptionId, long userId, long classNameId,
107 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108 throws com.liferay.portal.NoSuchSubscriptionException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
112 long companyId, long classNameId, long classPK)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
116 long companyId, long classNameId, long classPK, int start, int end)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
120 long companyId, long classNameId, long classPK, int start, int end,
121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 public com.liferay.portal.model.Subscription findByC_C_C_First(
125 long companyId, long classNameId, long classPK,
126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127 throws com.liferay.portal.NoSuchSubscriptionException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public com.liferay.portal.model.Subscription findByC_C_C_Last(
131 long companyId, long classNameId, long classPK,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.NoSuchSubscriptionException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
137 long subscriptionId, long companyId, long classNameId, long classPK,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.NoSuchSubscriptionException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public com.liferay.portal.model.Subscription findByC_U_C_C(long companyId,
143 long userId, long classNameId, long classPK)
144 throws com.liferay.portal.NoSuchSubscriptionException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 public com.liferay.portal.model.Subscription fetchByC_U_C_C(
148 long companyId, long userId, long classNameId, long classPK)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portal.model.Subscription fetchByC_U_C_C(
152 long companyId, long userId, long classNameId, long classPK,
153 boolean retrieveFromCache)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public java.util.List<com.liferay.portal.model.Subscription> findAll()
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public java.util.List<com.liferay.portal.model.Subscription> findAll(
160 int start, int end)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163 public java.util.List<com.liferay.portal.model.Subscription> findAll(
164 int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public void removeByUserId(long userId)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public void removeByU_C(long userId, long classNameId)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public void removeByC_C_C(long companyId, long classNameId, long classPK)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 public void removeByC_U_C_C(long companyId, long userId, long classNameId,
178 long classPK)
179 throws com.liferay.portal.NoSuchSubscriptionException,
180 com.liferay.portal.kernel.exception.SystemException;
181
182 public void removeAll()
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 public int countByUserId(long userId)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188 public int countByU_C(long userId, long classNameId)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 public int countByC_C_C(long companyId, long classNameId, long classPK)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 public int countByC_U_C_C(long companyId, long userId, long classNameId,
195 long classPK)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 public int countAll()
199 throws com.liferay.portal.kernel.exception.SystemException;
200 }