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.EmailAddress;
18  
19  /**
20   * <a href="EmailAddressPersistence.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       EmailAddressPersistenceImpl
29   * @see       EmailAddressUtil
30   * @generated
31   */
32  public interface EmailAddressPersistence extends BasePersistence<EmailAddress> {
33      public void cacheResult(com.liferay.portal.model.EmailAddress emailAddress);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses);
37  
38      public com.liferay.portal.model.EmailAddress create(long emailAddressId);
39  
40      public com.liferay.portal.model.EmailAddress remove(long emailAddressId)
41          throws com.liferay.portal.NoSuchEmailAddressException,
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.EmailAddress update(
48          com.liferay.portal.model.EmailAddress emailAddress)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.EmailAddress updateImpl(
52          com.liferay.portal.model.EmailAddress emailAddress, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.EmailAddress findByPrimaryKey(
56          long emailAddressId)
57          throws com.liferay.portal.NoSuchEmailAddressException,
58              com.liferay.portal.SystemException;
59  
60      public com.liferay.portal.model.EmailAddress fetchByPrimaryKey(
61          long emailAddressId) throws com.liferay.portal.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
64          long companyId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
67          long companyId, int start, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
71          long companyId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portal.model.EmailAddress findByCompanyId_First(
76          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.NoSuchEmailAddressException,
78              com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.EmailAddress findByCompanyId_Last(
81          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchEmailAddressException,
83              com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext(
86          long emailAddressId, long companyId,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.NoSuchEmailAddressException,
89              com.liferay.portal.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
92          long userId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
95          long userId, int start, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
99          long userId, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.EmailAddress findByUserId_First(
104         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchEmailAddressException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.EmailAddress findByUserId_Last(
109         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.NoSuchEmailAddressException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext(
114         long emailAddressId, long userId,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.NoSuchEmailAddressException,
117             com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
120         long companyId, long classNameId)
121         throws com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
124         long companyId, long classNameId, int start, int end)
125         throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
128         long companyId, long classNameId, int start, int end,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException;
131 
132     public com.liferay.portal.model.EmailAddress findByC_C_First(
133         long companyId, long classNameId,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.NoSuchEmailAddressException,
136             com.liferay.portal.SystemException;
137 
138     public com.liferay.portal.model.EmailAddress findByC_C_Last(
139         long companyId, long classNameId,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchEmailAddressException,
142             com.liferay.portal.SystemException;
143 
144     public com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext(
145         long emailAddressId, long companyId, long classNameId,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.NoSuchEmailAddressException,
148             com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
151         long companyId, long classNameId, long classPK)
152         throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
155         long companyId, long classNameId, long classPK, int start, int end)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
159         long companyId, long classNameId, long classPK, int start, int end,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException;
162 
163     public com.liferay.portal.model.EmailAddress findByC_C_C_First(
164         long companyId, long classNameId, long classPK,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.NoSuchEmailAddressException,
167             com.liferay.portal.SystemException;
168 
169     public com.liferay.portal.model.EmailAddress findByC_C_C_Last(
170         long companyId, long classNameId, long classPK,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.NoSuchEmailAddressException,
173             com.liferay.portal.SystemException;
174 
175     public com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext(
176         long emailAddressId, long companyId, long classNameId, long classPK,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.NoSuchEmailAddressException,
179             com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
182         long companyId, long classNameId, long classPK, boolean primary)
183         throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
186         long companyId, long classNameId, long classPK, boolean primary,
187         int start, int end) throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
190         long companyId, long classNameId, long classPK, boolean primary,
191         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException;
193 
194     public com.liferay.portal.model.EmailAddress findByC_C_C_P_First(
195         long companyId, long classNameId, long classPK, boolean primary,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.NoSuchEmailAddressException,
198             com.liferay.portal.SystemException;
199 
200     public com.liferay.portal.model.EmailAddress findByC_C_C_P_Last(
201         long companyId, long classNameId, long classPK, boolean primary,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.NoSuchEmailAddressException,
204             com.liferay.portal.SystemException;
205 
206     public com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext(
207         long emailAddressId, long companyId, long classNameId, long classPK,
208         boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.NoSuchEmailAddressException,
210             com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portal.model.EmailAddress> findAll()
213         throws com.liferay.portal.SystemException;
214 
215     public java.util.List<com.liferay.portal.model.EmailAddress> findAll(
216         int start, int end) throws com.liferay.portal.SystemException;
217 
218     public java.util.List<com.liferay.portal.model.EmailAddress> findAll(
219         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException;
221 
222     public void removeByCompanyId(long companyId)
223         throws com.liferay.portal.SystemException;
224 
225     public void removeByUserId(long userId)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeByC_C(long companyId, long classNameId)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeByC_C_C(long companyId, long classNameId, long classPK)
232         throws com.liferay.portal.SystemException;
233 
234     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
235         boolean primary) throws com.liferay.portal.SystemException;
236 
237     public void removeAll() throws com.liferay.portal.SystemException;
238 
239     public int countByCompanyId(long companyId)
240         throws com.liferay.portal.SystemException;
241 
242     public int countByUserId(long userId)
243         throws com.liferay.portal.SystemException;
244 
245     public int countByC_C(long companyId, long classNameId)
246         throws com.liferay.portal.SystemException;
247 
248     public int countByC_C_C(long companyId, long classNameId, long classPK)
249         throws com.liferay.portal.SystemException;
250 
251     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
252         boolean primary) throws com.liferay.portal.SystemException;
253 
254     public int countAll() throws com.liferay.portal.SystemException;
255 }