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 obc)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Address findByCompanyId_First(
69          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.NoSuchAddressException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Address findByCompanyId_Last(
74          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchAddressException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext(
79          long addressId, long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchAddressException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public java.util.List<com.liferay.portal.model.Address> findByUserId(
85          long userId) throws com.liferay.portal.kernel.exception.SystemException;
86  
87      public java.util.List<com.liferay.portal.model.Address> findByUserId(
88          long userId, int start, int end)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.Address> findByUserId(
92          long userId, int start, int end,
93          com.liferay.portal.kernel.util.OrderByComparator obc)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public com.liferay.portal.model.Address findByUserId_First(long userId,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.NoSuchAddressException,
99              com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.Address findByUserId_Last(long userId,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.NoSuchAddressException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portal.model.Address[] findByUserId_PrevAndNext(
107         long addressId, long userId,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchAddressException,
110             com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.Address> findByC_C(
113         long companyId, long classNameId)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public java.util.List<com.liferay.portal.model.Address> findByC_C(
117         long companyId, long classNameId, int start, int end)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.Address> findByC_C(
121         long companyId, long classNameId, int start, int end,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public com.liferay.portal.model.Address findByC_C_First(long companyId,
126         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.NoSuchAddressException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public com.liferay.portal.model.Address findByC_C_Last(long companyId,
131         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.NoSuchAddressException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
136         long addressId, long companyId, long classNameId,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchAddressException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
142         long companyId, long classNameId, long classPK)
143         throws 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, int start, int end)
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         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public com.liferay.portal.model.Address findByC_C_C_First(long companyId,
155         long classNameId, long classPK,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.NoSuchAddressException,
158             com.liferay.portal.kernel.exception.SystemException;
159 
160     public com.liferay.portal.model.Address findByC_C_C_Last(long companyId,
161         long classNameId, long classPK,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.NoSuchAddressException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext(
167         long addressId, long companyId, long classNameId, long classPK,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchAddressException,
170             com.liferay.portal.kernel.exception.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
173         long companyId, long classNameId, long classPK, boolean mailing)
174         throws 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         int start, int end)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
182         long companyId, long classNameId, long classPK, boolean mailing,
183         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public com.liferay.portal.model.Address findByC_C_C_M_First(
187         long companyId, long classNameId, long classPK, boolean mailing,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.NoSuchAddressException,
190             com.liferay.portal.kernel.exception.SystemException;
191 
192     public com.liferay.portal.model.Address findByC_C_C_M_Last(long companyId,
193         long classNameId, long classPK, boolean mailing,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.NoSuchAddressException,
196             com.liferay.portal.kernel.exception.SystemException;
197 
198     public com.liferay.portal.model.Address[] findByC_C_C_M_PrevAndNext(
199         long addressId, long companyId, long classNameId, long classPK,
200         boolean mailing, com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.NoSuchAddressException,
202             com.liferay.portal.kernel.exception.SystemException;
203 
204     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
205         long companyId, long classNameId, long classPK, boolean primary)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
209         long companyId, long classNameId, long classPK, boolean primary,
210         int start, int end)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
214         long companyId, long classNameId, long classPK, boolean primary,
215         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
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 obc)
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 obc)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.NoSuchAddressException,
234             com.liferay.portal.kernel.exception.SystemException;
235 
236     public java.util.List<com.liferay.portal.model.Address> findAll()
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public java.util.List<com.liferay.portal.model.Address> findAll(int start,
240         int end) throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public java.util.List<com.liferay.portal.model.Address> findAll(int start,
243         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public void removeByCompanyId(long companyId)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public void removeByUserId(long userId)
250         throws com.liferay.portal.kernel.exception.SystemException;
251 
252     public void removeByC_C(long companyId, long classNameId)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public void removeByC_C_C(long companyId, long classNameId, long classPK)
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     public void removeByC_C_C_M(long companyId, long classNameId, long classPK,
259         boolean mailing)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
263         boolean primary)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     public void removeAll()
267         throws com.liferay.portal.kernel.exception.SystemException;
268 
269     public int countByCompanyId(long companyId)
270         throws com.liferay.portal.kernel.exception.SystemException;
271 
272     public int countByUserId(long userId)
273         throws com.liferay.portal.kernel.exception.SystemException;
274 
275     public int countByC_C(long companyId, long classNameId)
276         throws com.liferay.portal.kernel.exception.SystemException;
277 
278     public int countByC_C_C(long companyId, long classNameId, long classPK)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     public int countByC_C_C_M(long companyId, long classNameId, long classPK,
282         boolean mailing)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
286         boolean primary)
287         throws com.liferay.portal.kernel.exception.SystemException;
288 
289     public int countAll()
290         throws com.liferay.portal.kernel.exception.SystemException;
291 }