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.Address;
18  
19  /**
20   * <a href="AddressPersistence.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       AddressPersistenceImpl
29   * @see       AddressUtil
30   * @generated
31   */
32  public interface AddressPersistence extends BasePersistence<Address> {
33      public void cacheResult(com.liferay.portal.model.Address address);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Address> addresses);
37  
38      public com.liferay.portal.model.Address create(long addressId);
39  
40      public com.liferay.portal.model.Address remove(long addressId)
41          throws com.liferay.portal.NoSuchAddressException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Address updateImpl(
45          com.liferay.portal.model.Address address, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Address findByPrimaryKey(long addressId)
49          throws com.liferay.portal.NoSuchAddressException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Address fetchByPrimaryKey(long addressId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
56          long companyId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
60          long companyId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
64          long companyId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Address findByCompanyId_First(
69          long companyId,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.NoSuchAddressException,
72              com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.Address findByCompanyId_Last(
75          long companyId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.NoSuchAddressException,
78              com.liferay.portal.kernel.exception.SystemException;
79  
80      public com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext(
81          long addressId, long companyId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.NoSuchAddressException,
84              com.liferay.portal.kernel.exception.SystemException;
85  
86      public java.util.List<com.liferay.portal.model.Address> findByUserId(
87          long userId) throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.Address> findByUserId(
90          long userId, int start, int end)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.Address> findByUserId(
94          long userId, int start, int end,
95          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.Address findByUserId_First(long userId,
99          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100         throws com.liferay.portal.NoSuchAddressException,
101             com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.Address findByUserId_Last(long userId,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.NoSuchAddressException,
106             com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.Address[] findByUserId_PrevAndNext(
109         long addressId, long userId,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.NoSuchAddressException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public java.util.List<com.liferay.portal.model.Address> findByC_C(
115         long companyId, long classNameId)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.Address> findByC_C(
119         long companyId, long classNameId, int start, int end)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.Address> findByC_C(
123         long companyId, long classNameId, int start, int end,
124         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public com.liferay.portal.model.Address findByC_C_First(long companyId,
128         long classNameId,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.NoSuchAddressException,
131             com.liferay.portal.kernel.exception.SystemException;
132 
133     public com.liferay.portal.model.Address findByC_C_Last(long companyId,
134         long classNameId,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.NoSuchAddressException,
137             com.liferay.portal.kernel.exception.SystemException;
138 
139     public com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
140         long addressId, long companyId, long classNameId,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.NoSuchAddressException,
143             com.liferay.portal.kernel.exception.SystemException;
144 
145     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
146         long companyId, long classNameId, long classPK)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
150         long companyId, long classNameId, long classPK, int start, int end)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
154         long companyId, long classNameId, long classPK, int start, int end,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public com.liferay.portal.model.Address findByC_C_C_First(long companyId,
159         long classNameId, long classPK,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.NoSuchAddressException,
162             com.liferay.portal.kernel.exception.SystemException;
163 
164     public com.liferay.portal.model.Address findByC_C_C_Last(long companyId,
165         long classNameId, long classPK,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.NoSuchAddressException,
168             com.liferay.portal.kernel.exception.SystemException;
169 
170     public com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext(
171         long addressId, long companyId, long classNameId, long classPK,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.NoSuchAddressException,
174             com.liferay.portal.kernel.exception.SystemException;
175 
176     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
177         long companyId, long classNameId, long classPK, boolean mailing)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
181         long companyId, long classNameId, long classPK, boolean mailing,
182         int start, int end)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
186         long companyId, long classNameId, long classPK, boolean mailing,
187         int start, int end,
188         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public com.liferay.portal.model.Address findByC_C_C_M_First(
192         long companyId, long classNameId, long classPK, boolean mailing,
193         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194         throws com.liferay.portal.NoSuchAddressException,
195             com.liferay.portal.kernel.exception.SystemException;
196 
197     public com.liferay.portal.model.Address findByC_C_C_M_Last(long companyId,
198         long classNameId, long classPK, 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 com.liferay.portal.model.Address[] findByC_C_C_M_PrevAndNext(
204         long addressId, long companyId, long classNameId, long classPK,
205         boolean mailing,
206         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207         throws com.liferay.portal.NoSuchAddressException,
208             com.liferay.portal.kernel.exception.SystemException;
209 
210     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
211         long companyId, long classNameId, long classPK, boolean primary)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
215         long companyId, long classNameId, long classPK, boolean primary,
216         int start, int end)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
220         long companyId, long classNameId, long classPK, boolean primary,
221         int start, int end,
222         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public com.liferay.portal.model.Address findByC_C_C_P_First(
226         long companyId, long classNameId, long classPK, boolean primary,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.NoSuchAddressException,
229             com.liferay.portal.kernel.exception.SystemException;
230 
231     public com.liferay.portal.model.Address findByC_C_C_P_Last(long companyId,
232         long classNameId, long classPK, 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 com.liferay.portal.model.Address[] findByC_C_C_P_PrevAndNext(
238         long addressId, long companyId, long classNameId, long classPK,
239         boolean primary,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.NoSuchAddressException,
242             com.liferay.portal.kernel.exception.SystemException;
243 
244     public java.util.List<com.liferay.portal.model.Address> findAll()
245         throws com.liferay.portal.kernel.exception.SystemException;
246 
247     public java.util.List<com.liferay.portal.model.Address> findAll(int start,
248         int end) throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public java.util.List<com.liferay.portal.model.Address> findAll(int start,
251         int end,
252         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public void removeByCompanyId(long companyId)
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     public void removeByUserId(long userId)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     public void removeByC_C(long companyId, long classNameId)
262         throws com.liferay.portal.kernel.exception.SystemException;
263 
264     public void removeByC_C_C(long companyId, long classNameId, long classPK)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     public void removeByC_C_C_M(long companyId, long classNameId, long classPK,
268         boolean mailing)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
272         boolean primary)
273         throws com.liferay.portal.kernel.exception.SystemException;
274 
275     public void removeAll()
276         throws com.liferay.portal.kernel.exception.SystemException;
277 
278     public int countByCompanyId(long companyId)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     public int countByUserId(long userId)
282         throws com.liferay.portal.kernel.exception.SystemException;
283 
284     public int countByC_C(long companyId, long classNameId)
285         throws com.liferay.portal.kernel.exception.SystemException;
286 
287     public int countByC_C_C(long companyId, long classNameId, long classPK)
288         throws com.liferay.portal.kernel.exception.SystemException;
289 
290     public int countByC_C_C_M(long companyId, long classNameId, long classPK,
291         boolean mailing)
292         throws com.liferay.portal.kernel.exception.SystemException;
293 
294     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
295         boolean primary)
296         throws com.liferay.portal.kernel.exception.SystemException;
297 
298     public int countAll()
299         throws com.liferay.portal.kernel.exception.SystemException;
300 }