001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Address;
018
019
025 public interface AddressPersistence extends BasePersistence<Address> {
026 public void cacheResult(com.liferay.portal.model.Address address);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.Address> addresses);
030
031 public com.liferay.portal.model.Address create(long addressId);
032
033 public com.liferay.portal.model.Address remove(long addressId)
034 throws com.liferay.portal.NoSuchAddressException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.Address updateImpl(
038 com.liferay.portal.model.Address address, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.Address findByPrimaryKey(long addressId)
042 throws com.liferay.portal.NoSuchAddressException,
043 com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portal.model.Address fetchByPrimaryKey(long addressId)
046 throws com.liferay.portal.kernel.exception.SystemException;
047
048 public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
049 long companyId)
050 throws com.liferay.portal.kernel.exception.SystemException;
051
052 public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
053 long companyId, int start, int end)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
057 long companyId, int start, int end,
058 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 public com.liferay.portal.model.Address findByCompanyId_First(
062 long companyId,
063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064 throws com.liferay.portal.NoSuchAddressException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public com.liferay.portal.model.Address findByCompanyId_Last(
068 long companyId,
069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070 throws com.liferay.portal.NoSuchAddressException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 public com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext(
074 long addressId, long companyId,
075 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076 throws com.liferay.portal.NoSuchAddressException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 public java.util.List<com.liferay.portal.model.Address> findByUserId(
080 long userId) throws com.liferay.portal.kernel.exception.SystemException;
081
082 public java.util.List<com.liferay.portal.model.Address> findByUserId(
083 long userId, int start, int end)
084 throws com.liferay.portal.kernel.exception.SystemException;
085
086 public java.util.List<com.liferay.portal.model.Address> findByUserId(
087 long userId, int start, int end,
088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.model.Address findByUserId_First(long userId,
092 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093 throws com.liferay.portal.NoSuchAddressException,
094 com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portal.model.Address findByUserId_Last(long userId,
097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098 throws com.liferay.portal.NoSuchAddressException,
099 com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portal.model.Address[] findByUserId_PrevAndNext(
102 long addressId, long userId,
103 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104 throws com.liferay.portal.NoSuchAddressException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public java.util.List<com.liferay.portal.model.Address> findByC_C(
108 long companyId, long classNameId)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 public java.util.List<com.liferay.portal.model.Address> findByC_C(
112 long companyId, long classNameId, int start, int end)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public java.util.List<com.liferay.portal.model.Address> findByC_C(
116 long companyId, long classNameId, int start, int end,
117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 public com.liferay.portal.model.Address findByC_C_First(long companyId,
121 long classNameId,
122 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123 throws com.liferay.portal.NoSuchAddressException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public com.liferay.portal.model.Address findByC_C_Last(long companyId,
127 long classNameId,
128 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129 throws com.liferay.portal.NoSuchAddressException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
133 long addressId, long companyId, long classNameId,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.NoSuchAddressException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
139 long companyId, long classNameId, long classPK)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
143 long companyId, long classNameId, long classPK, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
147 long companyId, long classNameId, long classPK, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portal.model.Address findByC_C_C_First(long companyId,
152 long classNameId, long classPK,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.NoSuchAddressException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 public com.liferay.portal.model.Address findByC_C_C_Last(long companyId,
158 long classNameId, long classPK,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.NoSuchAddressException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 public com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext(
164 long addressId, long companyId, long classNameId, long classPK,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.NoSuchAddressException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
170 long companyId, long classNameId, long classPK, boolean mailing)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
174 long companyId, long classNameId, long classPK, boolean mailing,
175 int start, int end)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
179 long companyId, long classNameId, long classPK, boolean mailing,
180 int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184 public com.liferay.portal.model.Address findByC_C_C_M_First(
185 long companyId, long classNameId, long classPK, boolean mailing,
186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187 throws com.liferay.portal.NoSuchAddressException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190 public com.liferay.portal.model.Address findByC_C_C_M_Last(long companyId,
191 long classNameId, long classPK, boolean mailing,
192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193 throws com.liferay.portal.NoSuchAddressException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196 public com.liferay.portal.model.Address[] findByC_C_C_M_PrevAndNext(
197 long addressId, long companyId, long classNameId, long classPK,
198 boolean mailing,
199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200 throws com.liferay.portal.NoSuchAddressException,
201 com.liferay.portal.kernel.exception.SystemException;
202
203 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
204 long companyId, long classNameId, long classPK, boolean primary)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
208 long companyId, long classNameId, long classPK, boolean primary,
209 int start, int end)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212 public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
213 long companyId, long classNameId, long classPK, boolean primary,
214 int start, int end,
215 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public com.liferay.portal.model.Address findByC_C_C_P_First(
219 long companyId, long classNameId, long classPK, boolean primary,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.NoSuchAddressException,
222 com.liferay.portal.kernel.exception.SystemException;
223
224 public com.liferay.portal.model.Address findByC_C_C_P_Last(long companyId,
225 long classNameId, long classPK, boolean primary,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.NoSuchAddressException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 public com.liferay.portal.model.Address[] findByC_C_C_P_PrevAndNext(
231 long addressId, long companyId, long classNameId, long classPK,
232 boolean primary,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.NoSuchAddressException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public java.util.List<com.liferay.portal.model.Address> findAll()
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public java.util.List<com.liferay.portal.model.Address> findAll(int start,
241 int end) throws com.liferay.portal.kernel.exception.SystemException;
242
243 public java.util.List<com.liferay.portal.model.Address> findAll(int start,
244 int end,
245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246 throws com.liferay.portal.kernel.exception.SystemException;
247
248 public void removeByCompanyId(long companyId)
249 throws com.liferay.portal.kernel.exception.SystemException;
250
251 public void removeByUserId(long userId)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254 public void removeByC_C(long companyId, long classNameId)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 public void removeByC_C_C(long companyId, long classNameId, long classPK)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 public void removeByC_C_C_M(long companyId, long classNameId, long classPK,
261 boolean mailing)
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264 public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
265 boolean primary)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 public void removeAll()
269 throws com.liferay.portal.kernel.exception.SystemException;
270
271 public int countByCompanyId(long companyId)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 public int countByUserId(long userId)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 public int countByC_C(long companyId, long classNameId)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280 public int countByC_C_C(long companyId, long classNameId, long classPK)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 public int countByC_C_C_M(long companyId, long classNameId, long classPK,
284 boolean mailing)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287 public int countByC_C_C_P(long companyId, long classNameId, long classPK,
288 boolean primary)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 public int countAll()
292 throws com.liferay.portal.kernel.exception.SystemException;
293 }