1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.Address update(
48          com.liferay.portal.model.Address address)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.Address updateImpl(
52          com.liferay.portal.model.Address address, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Address findByPrimaryKey(long addressId)
56          throws com.liferay.portal.NoSuchAddressException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Address fetchByPrimaryKey(long addressId)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
63          long companyId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
66          long companyId, int start, int end)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.Address> findByCompanyId(
70          long companyId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.Address findByCompanyId_First(
75          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchAddressException,
77              com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.Address findByCompanyId_Last(
80          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchAddressException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext(
85          long addressId, long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchAddressException,
88              com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.Address> findByUserId(
91          long userId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.Address> findByUserId(
94          long userId, int start, int end)
95          throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.Address> findByUserId(
98          long userId, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portal.model.Address findByUserId_First(long userId,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.NoSuchAddressException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.Address findByUserId_Last(long userId,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchAddressException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.Address[] findByUserId_PrevAndNext(
113         long addressId, long userId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.NoSuchAddressException,
116             com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.Address> findByC_C(
119         long companyId, long classNameId)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.Address> findByC_C(
123         long companyId, long classNameId, int start, int end)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.Address> findByC_C(
127         long companyId, long classNameId, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portal.model.Address findByC_C_First(long companyId,
132         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.NoSuchAddressException,
134             com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.Address findByC_C_Last(long companyId,
137         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchAddressException,
139             com.liferay.portal.SystemException;
140 
141     public com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
142         long addressId, long companyId, long classNameId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.NoSuchAddressException,
145             com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
148         long companyId, long classNameId, long classPK)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
152         long companyId, long classNameId, long classPK, int start, int end)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portal.model.Address> findByC_C_C(
156         long companyId, long classNameId, long classPK, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.Address findByC_C_C_First(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.SystemException;
165 
166     public com.liferay.portal.model.Address findByC_C_C_Last(long companyId,
167         long classNameId, long classPK,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchAddressException,
170             com.liferay.portal.SystemException;
171 
172     public com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext(
173         long addressId, long companyId, long classNameId, long classPK,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.NoSuchAddressException,
176             com.liferay.portal.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         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
183         long companyId, long classNameId, long classPK, boolean mailing,
184         int start, int end) throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_M(
187         long companyId, long classNameId, long classPK, boolean mailing,
188         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.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 obc)
194         throws com.liferay.portal.NoSuchAddressException,
195             com.liferay.portal.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 obc)
200         throws com.liferay.portal.NoSuchAddressException,
201             com.liferay.portal.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, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.NoSuchAddressException,
207             com.liferay.portal.SystemException;
208 
209     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
210         long companyId, long classNameId, long classPK, boolean primary)
211         throws com.liferay.portal.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) throws com.liferay.portal.SystemException;
216 
217     public java.util.List<com.liferay.portal.model.Address> findByC_C_C_P(
218         long companyId, long classNameId, long classPK, boolean primary,
219         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException;
221 
222     public com.liferay.portal.model.Address findByC_C_C_P_First(
223         long companyId, long classNameId, long classPK, boolean primary,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.NoSuchAddressException,
226             com.liferay.portal.SystemException;
227 
228     public com.liferay.portal.model.Address findByC_C_C_P_Last(long companyId,
229         long classNameId, long classPK, boolean primary,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.NoSuchAddressException,
232             com.liferay.portal.SystemException;
233 
234     public com.liferay.portal.model.Address[] findByC_C_C_P_PrevAndNext(
235         long addressId, long companyId, long classNameId, long classPK,
236         boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.NoSuchAddressException,
238             com.liferay.portal.SystemException;
239 
240     public java.util.List<com.liferay.portal.model.Address> findAll()
241         throws com.liferay.portal.SystemException;
242 
243     public java.util.List<com.liferay.portal.model.Address> findAll(int start,
244         int end) throws com.liferay.portal.SystemException;
245 
246     public java.util.List<com.liferay.portal.model.Address> findAll(int start,
247         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException;
249 
250     public void removeByCompanyId(long companyId)
251         throws com.liferay.portal.SystemException;
252 
253     public void removeByUserId(long userId)
254         throws com.liferay.portal.SystemException;
255 
256     public void removeByC_C(long companyId, long classNameId)
257         throws com.liferay.portal.SystemException;
258 
259     public void removeByC_C_C(long companyId, long classNameId, long classPK)
260         throws com.liferay.portal.SystemException;
261 
262     public void removeByC_C_C_M(long companyId, long classNameId, long classPK,
263         boolean mailing) throws com.liferay.portal.SystemException;
264 
265     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
266         boolean primary) throws com.liferay.portal.SystemException;
267 
268     public void removeAll() throws com.liferay.portal.SystemException;
269 
270     public int countByCompanyId(long companyId)
271         throws com.liferay.portal.SystemException;
272 
273     public int countByUserId(long userId)
274         throws com.liferay.portal.SystemException;
275 
276     public int countByC_C(long companyId, long classNameId)
277         throws com.liferay.portal.SystemException;
278 
279     public int countByC_C_C(long companyId, long classNameId, long classPK)
280         throws com.liferay.portal.SystemException;
281 
282     public int countByC_C_C_M(long companyId, long classNameId, long classPK,
283         boolean mailing) throws com.liferay.portal.SystemException;
284 
285     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
286         boolean primary) throws com.liferay.portal.SystemException;
287 
288     public int countAll() throws com.liferay.portal.SystemException;
289 }